* Clock running at double speed in guest
@ 2007-01-27 0:31 Tim Chen
[not found] ` <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Tim Chen @ 2007-01-27 0:31 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I notice that when I am testing kvm, the clock on guest is running at
twice the speed. Same thing also happen using qemu without kvm.
I look at my wall clock when I issue the command "time sleep 30". When
the command returns and report 30 sec has elasped, I found that actually
only 15 sec has passed on the wall clock. Perhaps somewhere an extra
clock tick was counted.
I am using 2.6.20-rc5 on host and 2.6.19 on guest. Test is done on a
dual socket woodcrest machine.
Tim
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2007-01-27 8:57 ` Avi Kivity [not found] ` <45BB13EF.1020204-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 2007-03-06 13:34 ` Avi Kivity 1 sibling, 1 reply; 10+ messages in thread From: Avi Kivity @ 2007-01-27 8:57 UTC (permalink / raw) To: tim.c.chen-VuQAYsv1563Yd54FQh9/CA Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Tim Chen wrote: > I notice that when I am testing kvm, the clock on guest is running at > twice the speed. Same thing also happen using qemu without kvm. > > I look at my wall clock when I issue the command "time sleep 30". When > the command returns and report 30 sec has elasped, I found that actually > only 15 sec has passed on the wall clock. Perhaps somewhere an extra > clock tick was counted. > > That's a known issue, I plan to take a look at it soon. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <45BB13EF.1020204-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <45BB13EF.1020204-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-01-28 9:37 ` Dor Laor [not found] ` <64F9B87B6B770947A9F8391472E032160A300FDE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Dor Laor @ 2007-01-28 9:37 UTC (permalink / raw) To: Avi Kivity, tim.c.chen-VuQAYsv1563Yd54FQh9/CA Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f >Tim Chen wrote: >> I notice that when I am testing kvm, the clock on guest is running at >> twice the speed. Same thing also happen using qemu without kvm. >> >> I look at my wall clock when I issue the command "time sleep 30". When >> the command returns and report 30 sec has elasped, I found that actually >> only 15 sec has passed on the wall clock. Perhaps somewhere an extra >> clock tick was counted. >> >> > >That's a known issue, I plan to take a look at it soon. > Mean while try clock=pit in the guest's kernel command line. > >-- >Do not meddle in the internals of kernels, for they are subtle and quick to >panic. > > >----------------------------------------------------------------------- -- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD EV >_______________________________________________ >kvm-devel mailing list >kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <64F9B87B6B770947A9F8391472E032160A300FDE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <64F9B87B6B770947A9F8391472E032160A300FDE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> @ 2007-01-29 19:44 ` Tim Chen 0 siblings, 0 replies; 10+ messages in thread From: Tim Chen @ 2007-01-29 19:44 UTC (permalink / raw) To: Dor Laor; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Sun, 2007-01-28 at 01:37 -0800, Dor Laor wrote: > > Mean while try clock=pit in the guest's kernel command line. > Mmmm..., this does not fix the problem. So perhaps it is not due to missing clock ticks. Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Clock running at double speed in guest [not found] ` <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2007-01-27 8:57 ` Avi Kivity @ 2007-03-06 13:34 ` Avi Kivity [not found] ` <45ED6DE9.4060409-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Avi Kivity @ 2007-03-06 13:34 UTC (permalink / raw) To: tim.c.chen-VuQAYsv1563Yd54FQh9/CA Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Tim Chen wrote: > I notice that when I am testing kvm, the clock on guest is running at > twice the speed. Same thing also happen using qemu without kvm. > > I look at my wall clock when I issue the command "time sleep 30". When > the command returns and report 30 sec has elasped, I found that actually > only 15 sec has passed on the wall clock. Perhaps somewhere an extra > clock tick was counted. > > I am using 2.6.20-rc5 on host and 2.6.19 on guest. Test is done on a > dual socket woodcrest machine. > > I've managed to reproduce this briefly. As soon as I started debugging it, however, it went away. Does this reproduce regularly for you? Do you run kvm as a user that has access to /dev/rtc? -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <45ED6DE9.4060409-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <45ED6DE9.4060409-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-03-06 15:56 ` Tim Chen [not found] ` <1173196568.8383.16.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Tim Chen @ 2007-03-06 15:56 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Tue, 2007-03-06 at 15:34 +0200, Avi Kivity wrote: > > > I've managed to reproduce this briefly. As soon as I started debugging > it, however, it went away. > Does this reproduce regularly for you? This is produced consistently in my environment. > Do you run kvm as a user that > has access to /dev/rtc? > I haven't done anything specifically with respect to /dev/rtc. How do you tell if kvm has access to /dev/rtc? Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <1173196568.8383.16.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <1173196568.8383.16.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2007-03-06 16:52 ` Avi Kivity [not found] ` <45ED9C56.1050906-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 2007-03-06 16:53 ` Dor Laor 1 sibling, 1 reply; 10+ messages in thread From: Avi Kivity @ 2007-03-06 16:52 UTC (permalink / raw) To: tim.c.chen-VuQAYsv1563Yd54FQh9/CA Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Tim Chen wrote: > >> Do you run kvm as a user that >> has access to /dev/rtc? >> >> > > I haven't done anything specifically with respect to /dev/rtc. How do > you tell if kvm has access to /dev/rtc? > > The normal unix permissions on /dev/rtc. If you're running as root, you have them. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <45ED9C56.1050906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <45ED9C56.1050906-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-03-06 17:19 ` Tim Chen 0 siblings, 0 replies; 10+ messages in thread From: Tim Chen @ 2007-03-06 17:19 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Tue, 2007-03-06 at 18:52 +0200, Avi Kivity wrote: > The normal unix permissions on /dev/rtc. If you're running as root, you > have them. > > Yes, I'm running as root. Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Clock running at double speed in guest [not found] ` <1173196568.8383.16.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2007-03-06 16:52 ` Avi Kivity @ 2007-03-06 16:53 ` Dor Laor [not found] ` <64F9B87B6B770947A9F8391472E032160ABD6049-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Dor Laor @ 2007-03-06 16:53 UTC (permalink / raw) To: tim.c.chen-VuQAYsv1563Yd54FQh9/CA, Avi Kivity Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f >> >> >> I've managed to reproduce this briefly. As soon as I started debugging >> it, however, it went away. >> Does this reproduce regularly for you? > >This is produced consistently in my environment. > >> Do you run kvm as a user that >> has access to /dev/rtc? >> > >I haven't done anything specifically with respect to /dev/rtc. How do >you tell if kvm has access to /dev/rtc? ls -la /proc/`pgrep qemu`/fd | grep rtc > >Tim > >----------------------------------------------------------------------- -- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD EV >_______________________________________________ >kvm-devel mailing list >kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <64F9B87B6B770947A9F8391472E032160ABD6049-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>]
* Re: Clock running at double speed in guest [not found] ` <64F9B87B6B770947A9F8391472E032160ABD6049-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> @ 2007-03-06 17:24 ` Tim Chen 0 siblings, 0 replies; 10+ messages in thread From: Tim Chen @ 2007-03-06 17:24 UTC (permalink / raw) To: Dor Laor; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Avi Kivity > >I haven't done anything specifically with respect to /dev/rtc. How do > >you tell if kvm has access to /dev/rtc? > > > ls -la /proc/`pgrep qemu`/fd | grep rtc > I got: lr-x------ 1 root root 64 Mar 6 10:12 4 -> /dev/rtc indicating that qemu has access to /dev/rtc. Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-03-06 17:24 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-27 0:31 Clock running at double speed in guest Tim Chen
[not found] ` <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-01-27 8:57 ` Avi Kivity
[not found] ` <45BB13EF.1020204-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-28 9:37 ` Dor Laor
[not found] ` <64F9B87B6B770947A9F8391472E032160A300FDE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-01-29 19:44 ` Tim Chen
2007-03-06 13:34 ` Avi Kivity
[not found] ` <45ED6DE9.4060409-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-06 15:56 ` Tim Chen
[not found] ` <1173196568.8383.16.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-03-06 16:52 ` Avi Kivity
[not found] ` <45ED9C56.1050906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-06 17:19 ` Tim Chen
2007-03-06 16:53 ` Dor Laor
[not found] ` <64F9B87B6B770947A9F8391472E032160ABD6049-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-03-06 17:24 ` Tim Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox