[Bug 655516] New: kvm time drift seen in virtuals (winxp, win7 32 & 64)

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c0 Summary: kvm time drift seen in virtuals (winxp, win7 32 & 64) Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: bruno@ioda-net.ch QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=401805) --> (http://bugzilla.novell.com/attachment.cgi?id=401805) Smolt profile (smolt server done) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-1.2 Firefox/3.6.12 Actually we saw time drifts in virtuals machine. Not always the same. Varying from vm to vm, activity or not. Reproducible: Always Steps to Reproduce: 1.install kvm oss+update or /repositories/Virtualization/openSUSE_11.3/ 2.build an windows xp32 vm with 2Gb ram, and lvm disk virtio driver for disk & net 3.start the vm, and apply the tests describe here https://bugzilla.redhat.com/show_bug.cgi?id=555727 Actual Results: net time \\dumbo /set /Y Y:\>ntpdate -b -q dumbo.disney.interne server 192.168.50.1, stratum 3, offset 0.983696, delay 0.02554 23 Nov 15:31:50 ntpdate[2580]: step time server 192.168.50.1 offset 0.983696 sec Y:\>ntpdate -b -q dumbo.disney.interne server 192.168.50.1, stratum 3, offset 28.509063, delay 0.02554 23 Nov 15:43:38 ntpdate[3004]: step time server 192.168.50.1 offset 28.509063 se c during that time drift_test.exe is running alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second alarm_handler called, interrupt rate = 999.50 interrupts/second stable at 999.50 Expected Results: no time drift ( or something like <=1minutes/hour Will attach also a qemu xml definition file. We see that with 0.12.5 and now 0.13 Booting windows with the /usepmtimer or without doesn't change fondamentaly the pb. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c1 --- Comment #1 from Bruno Friedmann <bruno@ioda-net.ch> 2010-11-23 15:00:35 UTC --- Created an attachment (id=401806) --> (http://bugzilla.novell.com/attachment.cgi?id=401806) Example of how the vm are define -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c2 --- Comment #2 from Bruno Friedmann <bruno@ioda-net.ch> 2010-11-23 15:01:22 UTC --- If it has some importance we have 7 running vm running actually at the same time. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c3 --- Comment #3 from Bruno Friedmann <bruno@ioda-net.ch> 2010-11-24 12:48:43 UTC --- Created an attachment (id=401989) --> (http://bugzilla.novell.com/attachment.cgi?id=401989) boot.msg with hpet active in bios with hpet active in bios, the drift time exist -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c4 --- Comment #4 from Bruno Friedmann <bruno@ioda-net.ch> 2010-11-24 12:50:09 UTC --- Created an attachment (id=401990) --> (http://bugzilla.novell.com/attachment.cgi?id=401990) boot.msg without hpet enable in bios Without the hpet enable in bios, this time, the vm aren't causing time drifts -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c5 --- Comment #5 from Bruno Friedmann <bruno@ioda-net.ch> 2010-11-24 12:53:21 UTC --- After searching in other forums & case. We try to restart the server without the hpet enabled in bios. This time the vm are working correctly. Now my questions : is hpet disabled are affecting other process ? is that normal and we consider it a hardware supplier's bug ? (if yes you can close that bug ) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c Yang Bo <boyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kernel-maintainers@forge.pr | |ovo.novell.com AssignedTo|kernel-maintainers@forge.pr |boyang@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c Yang Bo <boyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c6 Yang Bo <boyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |bruno@ioda-net.ch --- Comment #6 from Yang Bo <boyang@novell.com> 2011-05-30 15:50:59 UTC --- Can you try to start qemu with the option -rtc base=localtime,clock=host,driftfix=slew? It probably can resolve the time drift issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c7 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|bruno@ioda-net.ch | --- Comment #7 from Bruno Friedmann <bruno@ioda-net.ch> 2011-05-31 07:18:56 UTC --- Hi Bo, actually we didn't have anymore those time drift here what is launched with libvirt/kvm /usr/bin/qemu-kvm -S -M pc-0.12 -enable-kvm -m 2512 -smp 2,sockets=2,cores=1,threads=1 -name prof -uuid 1504d0bd-56e9-bb85-7abb-a23643f5a168 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/prof.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=localtime -boot c -device lsi,id=scsi0,bus=pci.0,addr=0x4 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/dev/vgadaptec/lvprof,if=none,id=drive-virtio-disk0,boot=on,format=raw -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=23,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:0c:29:c8:26:f4,bus=pci.0,addr=0x5 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:6 -vga vmware -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 and the kvm/libvirtd installed zypper se -si kvm libvirt Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+----------------+---------+---------------+--------+------------------ i | kvm | package | 0.14.0.0-91.2 | x86_64 | (System Packages) i | kvm | patch | 4582 | noarch | 11.3 Updates i | kvm | patch | 3299 | noarch | 11.3 Updates i | libvirt | package | 0.9.1-122.1 | x86_64 | (System Packages) i | libvirt | patch | 4321 | noarch | 11.3 Updates i | libvirt | patch | 4164 | noarch | 11.3 Updates i | libvirt | patch | 2903 | noarch | 11.3 Updates i | libvirt-client | package | 0.9.1-122.1 | x86_64 | (System Packages) i | libvirt-python | package | 0.9.1-122.1 | x86_64 | (System Packages) Motherboard is a Gigabytes GA-890GPA-UD3H with 16Go Ram DDR3 and a phenom X6-3200Ghz & bios level is FE actually throtling is enabled, and cpu-gov is set to ondemand. In the meantime the kernel has been updated to 2.6.34.8-0.2-default ( latest stable 11.3) proc cmd line is root=/dev/vgsystem/lvsuse instmode=http keyboard=fr-ch-latin1 resume=/dev/vgsystem/lvswap splash=none verbose elevator=cfq rootfstype=ext4 rootflags=data=writeback SCSIBeforeUSB nomodeset blacklist=radeon vga=0x317 The thing we change on that computer is stopping using the usb3 from the mainboard. I attach the dmesg output in case of. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c8 --- Comment #8 from Bruno Friedmann <bruno@ioda-net.ch> 2011-05-31 07:20:06 UTC --- Created an attachment (id=432192) --> (http://bugzilla.novell.com/attachment.cgi?id=432192) dmesg with hpet and no more time drift in vm no more time drift with kvm/libvirtd vms -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=655516 https://bugzilla.novell.com/show_bug.cgi?id=655516#c9 Yang Bo <boyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #9 from Yang Bo <boyang@novell.com> 2011-06-01 10:15:50 UTC --- So the lastes kvm package already fixed the issue. Close as fixed.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com