Re: [gentoo-user] date and gentoo running under vmplayer
On Fri, Mar 07, 2008 at 09:28:01AM +0200, Alan McKinnon wrote: Just for interest, what are the Hz settings on host and guest? Guest - Gentoo - now set at 250Hz and working just fine Host - XP Professional SP2 - I don't have a clue. How do I find out? Thanks, festus -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list pgpgzsDCmvrTC.pgp Description: PGP signature
Re: [gentoo-user] date and gentoo running under vmplayer
On Friday 07 March 2008, John J. Foster wrote: On Fri, Mar 07, 2008 at 09:28:01AM +0200, Alan McKinnon wrote: Just for interest, what are the Hz settings on host and guest? Guest - Gentoo - now set at 250Hz and working just fine Host - XP Professional SP2 - I don't have a clue. How do I find out? I believe you don't :-) I thought you were running a Linux host as well. I seem to remember a thread on lkml about this, something relating to the clock expecting interrupts that were coming in at the wrong speed. But it was a while ago and I forget all the details. At least you found a workaround. -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] date and gentoo running under vmplayer
On Thu, 06. Mar, John J. Foster spammed my inbox with Hi all - it's been awhile snip Is this common? Is there any way around it? I'm not really sure why openntpd didn't work. I tried out vmware with a windows VM and it was always fast. I have recently read an article on virtualization timing problems, and it seems this isn't so easy. So an ntp daemon seems to be your best bet (Strange that openntpd didn't work...), although this is curing the symptons rather than the disease... Regards, Jan -- thenybble.de/blog/ -- four bits at a time pgpov6p4TAYYg.pgp Description: PGP signature
Re: [gentoo-user] date and gentoo running under vmplayer
On Wed, Mar 05, 2008 at 08:25:59PM -0700, John J. Foster wrote: Hi all - it's been awhile This past week I've set up Gentoo running in a VM built by http://www.easyvmx.com/ under a XP host. Installation and configuration went fine. I normally leave the VM running when I walk away from the machine, but when I return, time is way off. Shutting down Gentoo the VM rebooting solvles the problem, as vmplayer must initially get the date and time from the host, but it sure doesn't keep it right after that. I tried openntpd, but it kept setting the time further and further off. I live in Fort Collins, Co and my locatime is set correctly (America/Denver). This is my 1st time playing with VM's. Is this common? Is there any way around it? I'm not really sure why openntpd didn't work. Any and all help appreciated. I need to explain this a little further, me thinks. My Gentoo VM is losing right around 20 seconds every minute! This is not a problem that ntp in any of its incarnations is designed to solve. A couple other thing I have tried are clock=pit noapic appended to the kernel command line. I tried these together and separately with no luck. Right now I'm trying another suggestion I found, which is to change the kernel frequency timer from 1000Hz to 250Hz. I'm recompiling now and will let you know. Any other suggestions still welcome. Thanks, festus pgpOxNVvHGBE9.pgp Description: PGP signature
Re: [gentoo-user] date and gentoo running under vmplayer
On Thu, Mar 06, 2008 at 08:00:00PM -0700, John J. Foster wrote: On Wed, Mar 05, 2008 at 08:25:59PM -0700, John J. Foster wrote: Hi all - it's been awhile This past week I've set up Gentoo running in a VM built by http://www.easyvmx.com/ under a XP host. Installation and configuration went fine. I normally leave the VM running when I walk away from the machine, but when I return, time is way off. Shutting down Gentoo the VM rebooting solvles the problem, as vmplayer must initially get the date and time from the host, but it sure doesn't keep it right after that. I tried openntpd, but it kept setting the time further and further off. I live in Fort Collins, Co and my locatime is set correctly (America/Denver). This is my 1st time playing with VM's. Is this common? Is there any way around it? I'm not really sure why openntpd didn't work. Any and all help appreciated. I need to explain this a little further, me thinks. My Gentoo VM is losing right around 20 seconds every minute! This is not a problem that ntp in any of its incarnations is designed to solve. A couple other thing I have tried are clock=pit noapic appended to the kernel command line. I tried these together and separately with no luck. Right now I'm trying another suggestion I found, which is to change the kernel frequency timer from 1000Hz to 250Hz. I'm recompiling now and will let you know. Switching to 250Hz looks like it has solved the problem. No time lost for a little over an hour now, and ntp is syncing properly, I think. But my reading of the help on this setting led me to believe that 1000Hz was right for a desktop system. Can any explain what this setting actually does, and why it works now? * from make menuconfig help * CONFIG_HZ_1000: 1000 Hz is the preferred choice for desktop systems and other systems requiring fast interactive responses to events. Symbol: HZ_1000 [=n] Prompt: 1000 HZ Defined at kernel/Kconfig.hz:42 Depends on: choice Location: - Processor type and features - Timer frequency (choice [=y]) pgpG30DmnsjHG.pgp Description: PGP signature
Re: [gentoo-user] date and gentoo running under vmplayer
On Friday 07 March 2008, John J. Foster wrote: Switching to 250Hz looks like it has solved the problem. No time lost for a little over an hour now, and ntp is syncing properly, I think. But my reading of the help on this setting led me to believe that 1000Hz was right for a desktop system. More like we think that 1000Hz *should* work better than 250Hz, but we don't really know for sure and YMMV... Can any explain what this setting actually does, and why it works now? From /usr/src/linux/kernel/Kconfig.hz: Allows the configuration of the timer frequency. It is customary to have the timer interrupt run at 1000 Hz but 100 Hz may be more beneficial for servers and NUMA systems that do not need to have a fast response for user interaction and that may experience bus contention and cacheline bounces as a result of timer interrupts. Note that the timer interrupt occurs on each processor in an SMP environment leading to NR_CPUS * HZ number of timer interrupts per second. The timer wakes up x times per second and demands that it get attention. Your VM however, cannot control this on the host and the guest kernel interacts in strange ways with the host kernel. Just for interest, what are the Hz settings on host and guest? -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] date and gentoo running under vmplayer
Hi all - it's been awhile This past week I've set up Gentoo running in a VM built by http://www.easyvmx.com/ under a XP host. Installation and configuration went fine. I normally leave the VM running when I walk away from the machine, but when I return, time is way off. Shutting down Gentoo the VM rebooting solvles the problem, as vmplayer must initially get the date and time from the host, but it sure doesn't keep it right after that. I tried openntpd, but it kept setting the time further and further off. I live in Fort Collins, Co and my locatime is set correctly (America/Denver). This is my 1st time playing with VM's. Is this common? Is there any way around it? I'm not really sure why openntpd didn't work. Any and all help appreciated. Thanks, festus -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] date and gentoo running under vmplayer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you need to make sure ntp-client and ntpd (from openntpd) have been started, and you have a valid time server. Below I have included everything I hope will help you - [EMAIL PROTECTED] ~ $ emerge -vp openntpd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-misc/openntpd-3.9_p1-r1 USE=ssl (-selinux) 150 kB Total: 1 package (1 reinstall), Size of downloads: 150 kB [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntpd # /etc/conf.d/ntpd: config file for openntpd's ntpd NTPD_HOME=/var/empty # See ntpd(8) man page ... some popular options: # -s Set the time immediately at startup NTPD_OPTS= [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntp-client # /etc/conf.d/ntp-client # Command to run to set the clock initially # Most people should just leave this line alone ... # however, if you know what you're doing, and you # want to use ntpd to set the clock, change this to 'ntpd' NTPCLIENT_CMD=ntpdate # Options to pass to the above command # This default setting should work fine but you should # change the default 'pool.ntp.org' to something closer # to your machine. See http://www.pool.ntp.org/ or # try running `netselect -s 3 pool.ntp.org`. NTPCLIENT_OPTS=-s -b -u pool.ntp.org [EMAIL PROTECTED] ~ $ cat /etc/ntp ntp.conf ntp.conf~ ntpd.conf [EMAIL PROTECTED] ~ $ cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * #listen on 127.0.0.1 #listen on ::1 # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org [EMAIL PROTECTED] ~ $ cat /etc/ntp.conf # NOTES: # - you should only have to update the server line below # - if you start getting lines like 'restrict' and 'fudge' #and you didnt add them, AND you run dhcpcd on your #network interfaces, be sure to add '-Y -N' to the #dhcpcd_ethX variables in /etc/conf.d/net # Name of the servers ntpd should sync with # Please respect the access policy as stated by the responsible person. #server ntp.example.tld iburst server pool.ntp.org netselect -s 3 pool.ntp.org ## # A list of available servers can be found here: # http://www.pool.ntp.org/ # http://www.pool.ntp.org/#use # A good way to get servers for your machine is: # netselect -s 3 pool.ntp.org ## # you should not need to modify the following paths driftfile /var/lib/ntp/ntp.drift #server ntplocal.example.com prefer #server timeserver.example.org # Warning: Using default NTP settings will leave your NTP # server accessible to all hosts on the Internet. # If you want to deny all machines (including your own) # from accessing the NTP server, uncomment: #restrict default ignore # To deny other machines from changing the # configuration but allow localhost: restrict default nomodify nopeer restrict 127.0.0.1 # To allow machines within your network to synchronize # their clocks with your server, but ensure they are # not allowed to configure the server or used as peers # to synchronize against, uncomment this line. # restrict 192.168.1.0 mask 255.255.255.0 nomodify nopeer notrap [EMAIL PROTECTED] ~ $ - - EOF John J. Foster wrote: | Hi all - it's been awhile | | This past week I've set up Gentoo running in a VM built by | http://www.easyvmx.com/ under a XP host. Installation and configuration | went fine. I normally leave the VM running when I walk away from the | machine, but when I return, time is way off. Shutting down Gentoo the | VM rebooting solvles the problem, as vmplayer must initially get the | date and time from the host, but it sure doesn't keep it right after | that. I tried openntpd, but it kept setting the time further and further | off. I live in Fort Collins, Co and my locatime is set correctly | (America/Denver). This is my 1st time playing with VM's. Is this common? | Is there any way around it? I'm not really sure why openntpd didn't | work. | | Any and all help appreciated. | | Thanks, | festus -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHz2xd8hUIAnGfls4RAhofAKCKc3nbVbdY7Pu8m7UNu192PuLJ4QCeLpCz suznhio3Jt+UMeQSE4zOwL4= =/XSs -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] date and gentoo running under vmplayer
Hi, What could also help in this is installing vmware-workstation-tools[1] in your Gentoo instance. Not directly related to your specific problem, but I've been running RHEL 5 x86_64 in a VM on a CentOS 5 i386 host. The time in RHEL flows slowly, and soon the clock is way behind. I have tried setting up ntpd to keep the time in sync with the host machine, but it crashed silently right away. To work around this, I have a cron job that sets the correct time with the ntpdate command every 2 minutes. It's good enough for my needs. [1] http://gentoo-portage.com/app-emulation/vmware-workstation-tools Good luck! Mike On Thu, Mar 6, 2008 at 1:00 PM, Chris Brennan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you need to make sure ntp-client and ntpd (from openntpd) have been started, and you have a valid time server. Below I have included everything I hope will help you - [EMAIL PROTECTED] ~ $ emerge -vp openntpd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-misc/openntpd-3.9_p1-r1 USE=ssl (-selinux) 150 kB Total: 1 package (1 reinstall), Size of downloads: 150 kB [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntpd # /etc/conf.d/ntpd: config file for openntpd's ntpd NTPD_HOME=/var/empty # See ntpd(8) man page ... some popular options: # -s Set the time immediately at startup NTPD_OPTS= [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntp-client # /etc/conf.d/ntp-client # Command to run to set the clock initially # Most people should just leave this line alone ... # however, if you know what you're doing, and you # want to use ntpd to set the clock, change this to 'ntpd' NTPCLIENT_CMD=ntpdate # Options to pass to the above command # This default setting should work fine but you should # change the default 'pool.ntp.org' to something closer # to your machine. See http://www.pool.ntp.org/ or # try running `netselect -s 3 pool.ntp.org`. NTPCLIENT_OPTS=-s -b -u pool.ntp.org [EMAIL PROTECTED] ~ $ cat /etc/ntp ntp.conf ntp.conf~ ntpd.conf [EMAIL PROTECTED] ~ $ cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * #listen on 127.0.0.1 #listen on ::1 # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org [EMAIL PROTECTED] ~ $ cat /etc/ntp.conf # NOTES: # - you should only have to update the server line below # - if you start getting lines like 'restrict' and 'fudge' #and you didnt add them, AND you run dhcpcd on your #network interfaces, be sure to add '-Y -N' to the #dhcpcd_ethX variables in /etc/conf.d/net # Name of the servers ntpd should sync with # Please respect the access policy as stated by the responsible person. #server ntp.example.tld iburst server pool.ntp.org netselect -s 3 pool.ntp.org ## # A list of available servers can be found here: # http://www.pool.ntp.org/ # http://www.pool.ntp.org/#use # A good way to get servers for your machine is: # netselect -s 3 pool.ntp.org ## # you should not need to modify the following paths driftfile /var/lib/ntp/ntp.drift #server ntplocal.example.com prefer #server timeserver.example.org # Warning: Using default NTP settings will leave your NTP # server accessible to all hosts on the Internet. # If you want to deny all machines (including your own) # from accessing the NTP server, uncomment: #restrict default ignore # To deny other machines from changing the # configuration but allow localhost: restrict default nomodify nopeer restrict 127.0.0.1 # To allow machines within your network to synchronize # their clocks with your server, but ensure they are # not allowed to configure the server or used as peers # to synchronize against, uncomment this line. # restrict 192.168.1.0 mask 255.255.255.0 nomodify nopeer notrap [EMAIL PROTECTED] ~ $ - - EOF John J. Foster wrote: | Hi all - it's been awhile | | This past week I've set up Gentoo running in a VM built by | http://www.easyvmx.com/ under a XP host. Installation and configuration | went fine. I normally leave the VM running when I walk away from the | machine, but when I return, time is way off. Shutting down Gentoo the | VM rebooting solvles the problem, as vmplayer must initially get the | date and time from the host, but it sure doesn't keep it right after | that. I tried openntpd, but it kept setting the time further and further | off. I live in Fort Collins, Co and my locatime is set correctly | (America/Denver). This is my 1st time playing with VM's. Is this common? | Is there any way