Date: Sun, 31 May 2009 15:59:05 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: freebsd-virtualization@freebsd.org Subject: Re: problem with time and cronjobs in Qemu guest Message-ID: <4A228D29.30804@quip.cz> In-Reply-To: <4A096517.7020104@quip.cz> References: <4A096517.7020104@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Miroslav Lachman wrote: > Hi, > > I have Qemu 0.10.1 installed on my old Windows 2000 PC and I am running > FreeBSD 7.2-RC1 i386 in it for some testing purposes. Today I realized > that some cron task was not run at specified time nor some commands in > endless loop. > > This is simple example of strange behavior (written in tcsh shell) > root@firstbsd ~/# while 1 > while?date > while?sleep 10 > while?end > Tue May 12 13:43:20 CEST 2009 > Tue May 12 13:43:58 CEST 2009 > Tue May 12 13:44:35 CEST 2009 > Tue May 12 13:45:12 CEST 2009 > Tue May 12 13:45:50 CEST 2009 > Tue May 12 13:46:27 CEST 2009 > Tue May 12 13:47:04 CEST 2009 > Tue May 12 13:47:42 CEST 2009 > Tue May 12 13:48:20 CEST 2009 > Tue May 12 13:48:57 CEST 2009 > Tue May 12 13:49:37 CEST 2009 > Tue May 12 13:50:19 CEST 2009 > Tue May 12 13:50:58 CEST 2009 > Tue May 12 13:51:37 CEST 2009 > > As you can see - the date command in not executed every 10 seconds. > > Are there some settings (in FreeBSD guest or in Qemu itself) to fix this? It is better after adding kern.hz="50" in to loader.conf, but still not perfect: root@firstbsd ~/# while 1 while?date while?sleep 10 while?end Sun May 31 15:55:13 CEST 2009 Sun May 31 15:55:23 CEST 2009 Sun May 31 15:55:34 CEST 2009 Sun May 31 15:55:46 CEST 2009 Sun May 31 15:56:06 CEST 2009 Sun May 31 15:56:17 CEST 2009 Sun May 31 15:56:28 CEST 2009 Sun May 31 15:56:39 CEST 2009 Sun May 31 15:56:49 CEST 2009 Sun May 31 15:57:00 CEST 2009 any other workaround? Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A228D29.30804>