<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - Linux time ahead with clock=pit</title>
    <link>http://communities.vmware.com/community/vmtn/general/vm-guest?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 06 Mar 2008 14:11:30 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-03-06T14:11:30Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/879732?tstart=0#879732</link>
      <description>That sounds quite interesting. I suspected, that there is some Problem with RHEL. Do you know if there is a fix for 5.1 as well?&lt;br /&gt;
&lt;br /&gt;
raoulst</description>
      <pubDate>Thu, 06 Mar 2008 14:11:30 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/879732?tstart=0#879732</guid>
      <dc:date>2008-03-06T14:11:30Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/879055?tstart=0#879055</link>
      <description>&lt;br /&gt;
After a lot of research and work with redhat I've tested divider=10 using the hotfix provided for RHEL4.6 (it will be officially included in 4.7) with very good results. Clock is not longer going faster that real time, and combined with vmware tools or ntp we have an acceptable accuracy, time offset is about one second in the worst case. &lt;br /&gt;
&lt;p /&gt;
Be aware that using ntp together with vmware tools may lead the systems to go ahead of system time (i've seen about 0,3 secs) and ntp stepping that time backwards. If this ca be a problem for you, use only vmware tools.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 05 Mar 2008 20:29:29 GMT</pubDate>
      <author>amoralejo</author>
      <guid>http://communities.vmware.com/message/879055?tstart=0#879055</guid>
      <dc:date>2008-03-05T20:29:29Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/867510?tstart=0#867510</link>
      <description>Unfortunatelly setting divider=10 made things much worse. Where we gained about 1sec within 24hs it's now 8 secs in 10 hs.&lt;br /&gt;
I think I will now recommend using ntpd together with vmware-tools time-synch to all our linux admins, since we had by far the best results with that combination.&lt;br /&gt;
&lt;br /&gt;
raoulst</description>
      <pubDate>Wed, 20 Feb 2008 10:42:44 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/867510?tstart=0#867510</guid>
      <dc:date>2008-02-20T10:42:44Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/866258?tstart=0#866258</link>
      <description>&lt;br /&gt;
A new kernel option has been added to RHEL 5.1, the tick divider, so that you can effectively&lt;br /&gt;
run a machine at a lower HZ than 1000 without recompiling the kernel:&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="https://bugzilla.redhat.com/show_bug.cgi?id=427302"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=427302&lt;/a&gt; &lt;br /&gt;
&lt;p /&gt;
Be aware there was some bugs, corrected already in a errata for x86-.64&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="https://bugzilla.redhat.com/show_bug.cgi?id=305011"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=305011&lt;/a&gt; &lt;br /&gt;
&lt;p /&gt;
I guess adding divider=10 (remove clock=pit or clocksource=pit) may help.&lt;br /&gt;
&lt;p /&gt;
Be aware that  locksource=pit with divider may prevent the server to boot in x86_64 arch (not your case): &lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="https://bugzilla.redhat.com/show_bug.cgi?id=427588"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=427588&lt;/a&gt;</description>
      <pubDate>Mon, 18 Feb 2008 21:36:18 GMT</pubDate>
      <author>amoralejo</author>
      <guid>http://communities.vmware.com/message/866258?tstart=0#866258</guid>
      <dc:date>2008-02-18T21:36:18Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/866078?tstart=0#866078</link>
      <description>hello alfredo.&lt;br /&gt;
&lt;br /&gt;
all the VMs I am having problems with are 32-bit /&lt;br /&gt;
&lt;p /&gt;
raoulst</description>
      <pubDate>Mon, 18 Feb 2008 18:17:04 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/866078?tstart=0#866078</guid>
      <dc:date>2008-02-18T18:17:04Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/862864?tstart=0#862864</link>
      <description>&lt;br /&gt;
Have you installed it in 32 or 64 bits ?&lt;br /&gt;
&lt;p /&gt;
Alfredo</description>
      <pubDate>Wed, 13 Feb 2008 19:11:20 GMT</pubDate>
      <author>amoralejo</author>
      <guid>http://communities.vmware.com/message/862864?tstart=0#862864</guid>
      <dc:date>2008-02-13T19:11:20Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/853752?tstart=0#853752</link>
      <description>I'm running ESX Server 3.0.2. Don't know what exactly you mean by what distro I'm using.&lt;br /&gt;
&lt;br /&gt;
raoulst</description>
      <pubDate>Fri, 01 Feb 2008 08:45:13 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/853752?tstart=0#853752</guid>
      <dc:date>2008-02-01T08:45:13Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/853432?tstart=0#853432</link>
      <description>What distro are you running? and what VMware version?</description>
      <pubDate>Thu, 31 Jan 2008 22:11:19 GMT</pubDate>
      <author>Joel Duckworth</author>
      <guid>http://communities.vmware.com/message/853432?tstart=0#853432</guid>
      <dc:date>2008-01-31T22:11:19Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/852654?tstart=0#852654</link>
      <description>I believe that the problem is only for 2.6.21 and greater kernels. It was a feature added to the kernel for reducing power consumption in a idle state by stopping clock ticks if there were no timers outstanding. See &lt;a class="jive-link-external" href="http://kerneltrap.org/node/7749"&gt;http://kerneltrap.org/node/7749&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Using Ubuntu Feisty which is supported for ESX doesn't have this built into the kernel (2.6.20), whereas Gutsy runs 2.6.22 which does have this feature and would explain when clocksource=pit wouldn't work by itself.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Please let me know if this fixes clock racing issues for anyone. Cheers, Joel</description>
      <pubDate>Thu, 31 Jan 2008 01:20:06 GMT</pubDate>
      <author>Joel Duckworth</author>
      <guid>http://communities.vmware.com/message/852654?tstart=0#852654</guid>
      <dc:date>2008-01-31T01:20:06Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/852835?tstart=0#852835</link>
      <description>I did try clocksource=pit nohz=off on one of the VMs and it had no effect at all. It seems as if the kernel parameters would simply be ignored on those machines, because they show the same timing behavior as if I would't have set any kernel parameter at all.&lt;br /&gt;
&lt;br /&gt;
raoulst</description>
      <pubDate>Thu, 31 Jan 2008 10:12:25 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/852835?tstart=0#852835</guid>
      <dc:date>2008-01-31T10:12:25Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/851456?tstart=0#851456</link>
      <description>I might have got to the bottom of this&lt;br /&gt;
&lt;br /&gt;
add the following argument to kernel parameters: &lt;b&gt;nohz=off&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
From &lt;a class="jive-link-external" href="http://www.kernel.org/doc/Documentation/kernel-parameters.txt"&gt;http://www.kernel.org/doc/Documentation/kernel-parameters.txt&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;nohz= KNL Boottime enable/disable dynamic ticks &lt;br clear="all" /&gt; Valid arguments: on, off &lt;br clear="all" /&gt; Default: on&lt;/blockquote&gt;
&lt;br /&gt;
Use this along with clocksource=pit, no need to disable apic lapic and smp&lt;br /&gt;
&lt;p /&gt;
The clock appears to be stable (with VMware tools and synctime keeping it up to date when it lags)</description>
      <pubDate>Wed, 30 Jan 2008 01:09:53 GMT</pubDate>
      <author>Joel Duckworth</author>
      <guid>http://communities.vmware.com/message/851456?tstart=0#851456</guid>
      <dc:date>2008-01-30T01:09:53Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/850398?tstart=0#850398</link>
      <description>&lt;br /&gt;
I'm also getting issues with Ubuntu Gutsy. I've tried varying combinations of kernel parameters and it seems to be a bit random on how much time the clock will gain or if it will run on time. I've got two guests running that were created from the same template, on is running slow but the VMware tools is adjusting it forward so it's fine, however the other runs fast and gains 10 seconds a day. I've laos noticed that even though both machines are running on the same ESX server the cpuinfo is different between both, specifically the bogomips and mhz. I wonder if the kernel detects this at boot time and is calculating wrong and throwing the clocks out because of that?&lt;br /&gt;
&lt;p /&gt;
Please post if you do find the source of this problem.&lt;br /&gt;
&lt;p /&gt;
Thanks &lt;br /&gt;
&lt;p /&gt;
Using cat /proc/cpuinfo &lt;br /&gt;
&lt;p /&gt;
 VM 1:&lt;br /&gt;
&lt;p /&gt;
processor       : 0&lt;br /&gt;
vendor_id       : GenuineIntel&lt;br /&gt;
cpu family      : 15&lt;br /&gt;
model           : 4&lt;br /&gt;
model name      : Intel(R) Xeon(TM) CPU 3.00GHz&lt;br /&gt;
stepping        : 8&lt;br /&gt;
cpu MHz         : &lt;b&gt;2991.291&lt;/b&gt;&lt;br /&gt;
cache size      : 2048 KB&lt;br /&gt;
fdiv_bug        : no&lt;br /&gt;
hlt_bug         : no&lt;br /&gt;
f00f_bug        : no&lt;br /&gt;
coma_bug        : no&lt;br /&gt;
fpu             : yes&lt;br /&gt;
fpu_exception   : yes&lt;br /&gt;
cpuid level     : 5&lt;br /&gt;
wp              : yes&lt;br /&gt;
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up pni ds_cpl&lt;br /&gt;
bogomips        : &lt;b&gt;6060.95&lt;/b&gt;&lt;br /&gt;
clflush size    : 64&lt;br /&gt;
&lt;br /&gt;
VM 2:&lt;br /&gt;
&lt;p /&gt;
processor       : 0&lt;br /&gt;
vendor_id       : GenuineIntel&lt;br /&gt;
cpu family      : 15&lt;br /&gt;
model           : 4&lt;br /&gt;
model name      : Intel(R) Xeon(TM) CPU 3.00GHz&lt;br /&gt;
stepping        : 8&lt;br /&gt;
cpu MHz         : &lt;b&gt;2991.354&lt;/b&gt;&lt;br /&gt;
cache size      : 2048 KB&lt;br /&gt;
fdiv_bug        : no&lt;br /&gt;
hlt_bug         : no&lt;br /&gt;
f00f_bug        : no&lt;br /&gt;
coma_bug        : no&lt;br /&gt;
fpu             : yes&lt;br /&gt;
fpu_exception   : yes&lt;br /&gt;
cpuid level     : 5&lt;br /&gt;
wp              : yes&lt;br /&gt;
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up pni ds_cpl&lt;br /&gt;
bogomips        : &lt;b&gt;6013.04&lt;/b&gt;&lt;br /&gt;
clflush size    : 64&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 29 Jan 2008 02:36:04 GMT</pubDate>
      <author>Joel Duckworth</author>
      <guid>http://communities.vmware.com/message/850398?tstart=0#850398</guid>
      <dc:date>2008-01-29T02:36:04Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Linux time ahead with clock=pit</title>
      <link>http://communities.vmware.com/message/837846?tstart=0#837846</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
after solving all of my Linux time issues using the clock=pit parameter combined with vmware-tools time sync,&lt;br /&gt;
I now have 2 RHEL 5.1 VMs that are constantly getting ahead of time.&lt;br /&gt;
Other RHEL 5.1 VMs that seem to have an identical configuration seem to keep their time well using that method.&lt;br /&gt;
I tried setting clocksource=acpi_pm bit&lt;br /&gt;
as sugested in &lt;a class="jive-link-external" href="http://theether.net/kb/100039"&gt;http://theether.net/kb/100039&lt;/a&gt; that had exactly no effect. &lt;br /&gt;
So any ideas what could be the problem?&lt;br /&gt;
&lt;br /&gt;
raoulst&lt;br /&gt;
&lt;p /&gt;
vm configs:&lt;br /&gt;
&lt;p /&gt;
+++++vm01&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;cat /etc/redhat-release&lt;/li&gt;
&lt;/ol&gt;
Red Hat Enterprise Linux Server release 5.1 (Tikanga)&lt;br /&gt;
kernel /boot/vmlinuz-2.6.18-53.1.4.el5 ro root=LABEL=/ nosmp noapic nolapic&lt;br /&gt;
clock=pit&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; time is OK&lt;br /&gt;
&lt;br /&gt;
+++++vm02&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;cat /etc/redhat-release&lt;/li&gt;
&lt;/ol&gt;
Red Hat Enterprise Linux Server release 5.1 (Tikanga)&lt;br /&gt;
kernel /boot/vmlinuz-2.6.18-53.el5 ro root=LABEL=/ clock=pit&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; time is ahead&lt;br /&gt;
&lt;br /&gt;
+++++vm03&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;cat /etc/redhat-release&lt;/li&gt;
&lt;/ol&gt;
Red Hat Enterprise Linux Server release 5.1 (Tikanga)&lt;br /&gt;
kernel /boot/vmlinuz-2.6.18-53.el5 ro root=LABEL=/ clock=pit nosmp noapic&lt;br /&gt;
nolapic&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; time is ahead</description>
      <pubDate>Fri, 11 Jan 2008 16:07:37 GMT</pubDate>
      <author>raoulst</author>
      <guid>http://communities.vmware.com/message/837846?tstart=0#837846</guid>
      <dc:date>2008-01-11T16:07:37Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
  </channel>
</rss>

