Re: problem with time and cronjobs in Qemu guest

2009-05-31 Thread Miroslav Lachman

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)
r...@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:


r...@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
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


problem with time and cronjobs in Qemu guest

2009-05-12 Thread Miroslav Lachman

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)
r...@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?

Miroslav Lachman
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"