Gests periodically stuck for ~ 10-15 seconds - what to do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm quite new to virtualization and KVM, I have a 2*4-core Intel machine here 
with 16GB RAM and Debian Lenny as host. I further installed two Debian Lenny 
guests, one with 2 CPUs, the other with one. The guests were installed 
similar to this:

virt-install --connect qemu:///system -n MyVMName -r 1024 --vcpus=2 -f 
path/to/qcow2_file -s 12 -c ~/debian-503-amd64-netinst.iso --vnc -k 
de --noautoconsole --os-type linux --os-variant 
debianLenny --accelerate --network=bridge:br0 --hvm

The guests have the virtio_blk and virtio_net devices installed to improve 
disk/networking performance.

After a while I experienced strange guest lockups, whereas I got the 
famous "CPU #0 stuck for ...seconds". I then upgraded both the host and the 
guest kernel from 2.6.26 (Lenny default) to 2.6.32-bpo.5-amd64, moreover I 
upgraded kvm to qemu-kvm-0.12.5

The "CPU stuck" messages are gone now, but I still experience stucks in the 
guest. They come from time to time, sometimes not for an hour, sometimes 
every 5 seconds. These "stucks" last something between 3 seconds to 30 
seconds.

I am not 100% sure but it seems that these stucks come from the disk I/O. I 
wrote two little scripts, one that outputs the continuity of disk reads, the 
other the continuity of CPU calculations. It's interesting to see that the 
calculations continue while the disk-read script is stuck, which leads me to 
the conclusion that the problem is disk-I/O bound.

It's moreover interesting to see that these stucks happen synchronously at 
both guest systems, while the host seems not to be affected.

Moreover, it's interesting that the read speed is sometimes stable at ~ 
80MB/s, while it is at other times only at ~ 40 MB/s.

During these tests the system is fully idle (apart from the tests, of course). 
The program "iotop" shows the I/O fully idle during these stucks.

Rebooting the guests seem to make the problem go away - but only for some 
time.

The whole issue is quite bad as the guests are virtually unusable with these 
stucks, working is horrific, a simple "ls" takes sometimes up to 30 seconds 
although the whole system (host + other guests) are fully idle and I have no  
clue how to fix this.

Any ideas?

Best Regards,
Hermann

-- 
hermann@xxxxxxx
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux