Re: vmware timekeeping
Uwe Laverenz wrote: On Fri, Jun 06, 2008 at 04:23:41PM -0400, Jeff Dickens wrote: option turned on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" in my FreeBSD guest's /boot/loader.conf. This shouldn't be necessary in FreeBSD >= 6.2. hmm. I used to have "kern.hz=100" in loader.conf, but that caused the guest to gain time even faster. "100" is ok, I'm using this value on all virtual machines. Does anyone have a good recipe for decent timekeeping in this config? Is it possible to upgrade your ESX from 3.0.2 to 3.5x? If not, there is another setting on the ESX side that helps with timing problems (FreeBSD or Linux guests): change "Advanced Settings/Misc/Misc.Timer/MinHardPeriod" from 400 to 100 (this is default on ESX 3.5x). Unfortunately IBM has not certified my hardware (xSeries 226) with ESX 3.5, and the installation just hangs, so I'm stuck on 3.0.2 for now. Thanks, I will try that suggestion. Uwe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
Sean Cavanaugh wrote: Date: Fri, 6 Jun 2008 15:48:46 -0500 To: freebsd-questions@freebsd.org From: [EMAIL PROTECTED] Subject: Re: vmware timekeeping At 03:23 p.m. 06/06/2008, you wrote: I'm running FreeBSD 6.3-release as a guest on VMware ESX 3.0.2. My problem is that the clock keeps *gaining* time. I have the "timesync" option turned on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" in my FreeBSD guest's /boot/loader.conf. I used to have "kern.hz=100" in loader.conf, but that caused the guest to gain time even faster. Does anyone have a good recipe for decent timekeeping in this config? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" Hello all. Here is something similar. Running 6.2 stable... but the clock lose around 6 hours each day JB The only good way of keeping time pretty set is to set up an NTP sync on the image to go off at decently constant rate (once every 3 hours or so). the vmware-tools will not synchronize the system clock. The tools do attempt to improve timekeeping if you put tools.syncTime = "TRUE" in the guest's .vmx file. However, the tools will only move the time forward. It is attempting to compensate for "lost ticks". Without using syncTime the guest's clock can run slow, depending on the host's overall load. With syncTime on, my Linux guest machines stay synchronized perfectly. Well, they're within one second anyway, which is fine for my application. The recipe for this success was to turn on syncTime, and use the following linux boot options: clock=pit nosmp noapic nolapic However, I have not been able to achieve the same success with FreeBSD. The clock doesn't lose time, but it gains time, very slowly. It's probably load dependent, but it's around 10 seconds a day. What's the FreeBSD equivalent of "clock=pit" ? Meaning to use the PIT and not the APIC. In general, but also in this application in particular, one does not one time to move backwards. The Dovcot IMAP server immediately exits if it detects that time went backwards. In order to use NTP, you'd probably have to turn off syncTime, which probably does a better job anyway except for the gaining time problem. I haven't tried actually running ntpd instead of a periodic sync, as this is not recommended by VMware's timekeeping white paper: http://www.vmware.com/pdf/vmware_timekeeping.pdf. My last-ditch strategy will be to start monkeying with the knobs for syncTime, like these: timeTracker.catchupPercentage timeTracker.catchupIfBehindByUsec timeTracker.giveupIfBehindByUsec But I'd rather fix it the same way I have with Linux. I heard of someone trying to change the clock in BSD to only use the hardware clock as VMWare can reset that but never heard anything beyond that. -Sean___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
On Sat, Jun 7, 2008 at 8:06 PM, Duane Hill <[EMAIL PROTECTED]> wrote: > On Sat, 07 Jun 2008 09:30:27 -0400 > Peter Thoenen <[EMAIL PROTECTED]> confabulated: > >> > I run FreeBSD 7.0 inside VMware Workstation-6.0.4 (ACE Edition) and >> > I don't have to setup anything. The time is the always same as the >> > host >> >> How long do you keep it up though Odhiambo and how intensive are you >> using your native OS? I have a similar setup and while it sync's on >> boot, I routinely lose 15 minutes a day (I keep it up 24x7). I think >> it is not so much a bug in VMware as opposed to the host OS running >> slower than it thinks (e.g. maybe a second of OS time is really >> 1.01 seconds of real time adding up over long periods) if the >> native OS is under moderate to heavy use. > > I'm running FreeBSD 7.0-RELEASE within Vmware v6.0.4 build 93057 with > the host OS being XP-Home-SP2. I also have two jails running within the > FreeBSD VM. > > I have within /boot/loader.conf: > kern.hz="50" Oh, this explains why I never has issues with time. I always have kern.hz="100" in loader.conf and I run ntpdate on startup. Sorry if I mislead others. -- EB White - "Genius is more often found in a cracked pot than in a whole one." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
On Sat, 07 Jun 2008 09:30:27 -0400 Peter Thoenen <[EMAIL PROTECTED]> confabulated: > > I run FreeBSD 7.0 inside VMware Workstation-6.0.4 (ACE Edition) and > > I don't have to setup anything. The time is the always same as the > > host > > How long do you keep it up though Odhiambo and how intensive are you > using your native OS? I have a similar setup and while it sync's on > boot, I routinely lose 15 minutes a day (I keep it up 24x7). I think > it is not so much a bug in VMware as opposed to the host OS running > slower than it thinks (e.g. maybe a second of OS time is really > 1.01 seconds of real time adding up over long periods) if the > native OS is under moderate to heavy use. I'm running FreeBSD 7.0-RELEASE within Vmware v6.0.4 build 93057 with the host OS being XP-Home-SP2. I also have two jails running within the FreeBSD VM. I have within /boot/loader.conf: kern.hz="50" And within root's crontab: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin @reboot ntpdate us.pool.ntp.org I do not have the Vmware tools loaded. Nor do I have ntpd running. Time has not been a big issue. The host OS (XP) is used more than average for the irreplaceable Windoe$ software I have yet to find replacements for native to FreeBSD. I just decided to do an ntpdate and here are the results: plz# ntpdate -b us.pool.ntp.org 7 Jun 17:04:06 ntpdate[57748]: step time server 208.53.158.34 offset 2.433443 sec plz# uptime 4:59PM up 6 days, 18:47, 1 user, load averages: 0.00, 0.00, 0.00 -- "If at first you don't succeed, so much for skydiving!" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
On Sat, Jun 7, 2008 at 4:30 PM, Peter Thoenen <[EMAIL PROTECTED]> wrote: >> I run FreeBSD 7.0 inside VMware Workstation-6.0.4 (ACE Edition) and I >> don't have to setup anything. The time is the always same as the host > > How long do you keep it up though Odhiambo and how intensive are you using > your native OS? I have a similar setup and while it sync's on boot, I > routinely lose 15 minutes a day (I keep it up 24x7). I think it is not so > much a bug in VMware as opposed to the host OS running slower than it thinks > (e.g. maybe a second of OS time is really 1.01 seconds of real time > adding up over long periods) if the native OS is under moderate to heavy > use. I keep mine running non-stop (as long as the host OS is running)). I never shut down my workstation at all, unless stupid Windows install some updates and reboots itself. And besides FreeBSD, there are other guest OSes installed, but these others are run once in a while, and would be on for 2 days or so. I've never realized any time loss. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Oh My God! They killed init! You Bastards!" --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
I run FreeBSD 7.0 inside VMware Workstation-6.0.4 (ACE Edition) and I don't have to setup anything. The time is the always same as the host How long do you keep it up though Odhiambo and how intensive are you using your native OS? I have a similar setup and while it sync's on boot, I routinely lose 15 minutes a day (I keep it up 24x7). I think it is not so much a bug in VMware as opposed to the host OS running slower than it thinks (e.g. maybe a second of OS time is really 1.01 seconds of real time adding up over long periods) if the native OS is under moderate to heavy use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
On Fri, Jun 6, 2008 at 11:23 PM, Jeff Dickens <[EMAIL PROTECTED]> wrote: > I'm running FreeBSD 6.3-release as a guest on VMware ESX 3.0.2. My problem > is that the clock keeps *gaining* time. I have the "timesync" option turned > on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" in my FreeBSD > guest's /boot/loader.conf. > > I used to have "kern.hz=100" in loader.conf, but that caused the guest to > gain time even faster. > > Does anyone have a good recipe for decent timekeeping in this config? I run FreeBSD 7.0 inside VMware Workstation-6.0.4 (ACE Edition) and I don't have to setup anything. The time is the always same as the host OS. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Oh My God! They killed init! You Bastards!" --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
On Fri, Jun 06, 2008 at 04:23:41PM -0400, Jeff Dickens wrote: > option turned on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" > in my FreeBSD guest's /boot/loader.conf. This shouldn't be necessary in FreeBSD >= 6.2. > I used to have "kern.hz=100" in loader.conf, but that caused the guest > to gain time even faster. "100" is ok, I'm using this value on all virtual machines. > Does anyone have a good recipe for decent timekeeping in this config? Is it possible to upgrade your ESX from 3.0.2 to 3.5x? If not, there is another setting on the ESX side that helps with timing problems (FreeBSD or Linux guests): change "Advanced Settings/Misc/Misc.Timer/MinHardPeriod" from 400 to 100 (this is default on ESX 3.5x). Uwe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: vmware timekeeping
> Date: Fri, 6 Jun 2008 15:48:46 -0500 > To: freebsd-questions@freebsd.org > From: [EMAIL PROTECTED] > Subject: Re: vmware timekeeping > > At 03:23 p.m. 06/06/2008, you wrote: >>I'm running FreeBSD 6.3-release as a guest on VMware ESX 3.0.2. My >>problem is that the clock keeps *gaining* time. I have the >>"timesync" option turned on in ESX's .vmx file, and I have >>"hint.apic.0.disabled=1" in my FreeBSD guest's /boot/loader.conf. >> >>I used to have "kern.hz=100" in loader.conf, but that caused the >>guest to gain time even faster. >> >>Does anyone have a good recipe for decent timekeeping in this config? >> >>Thanks. >>___ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > Hello all. > > Here is something similar. Running 6.2 stable... but the clock lose > around 6 hours each day > > JB > The only good way of keeping time pretty set is to set up an NTP sync on the image to go off at decently constant rate (once every 3 hours or so). the vmware-tools will not synchronize the system clock. I heard of someone trying to change the clock in BSD to only use the hardware clock as VMWare can reset that but never heard anything beyond that. -Sean___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: vmware timekeeping
At 03:23 p.m. 06/06/2008, you wrote: I'm running FreeBSD 6.3-release as a guest on VMware ESX 3.0.2. My problem is that the clock keeps *gaining* time. I have the "timesync" option turned on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" in my FreeBSD guest's /boot/loader.conf. I used to have "kern.hz=100" in loader.conf, but that caused the guest to gain time even faster. Does anyone have a good recipe for decent timekeeping in this config? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" Hello all. Here is something similar. Running 6.2 stable... but the clock lose around 6 hours each day JB ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
vmware timekeeping
I'm running FreeBSD 6.3-release as a guest on VMware ESX 3.0.2. My problem is that the clock keeps *gaining* time. I have the "timesync" option turned on in ESX's .vmx file, and I have "hint.apic.0.disabled=1" in my FreeBSD guest's /boot/loader.conf. I used to have "kern.hz=100" in loader.conf, but that caused the guest to gain time even faster. Does anyone have a good recipe for decent timekeeping in this config? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"