qemu-kvm: ksmd should have a less CPU-hogging default config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
Wishlist
|
Dustin Kirkland | ||
Maverick |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
Lucid 64 bits
Expected: have qemu-kvm propose adquate default values
Found: using kvm, running 2 VMs , ksmd constantly eats 20 to 30%CPU
Lucid script used to tune ksm (/etc/init.
-> Suggest modify qemu-kvm.conf
either to deactivate ksm
or have 200 for SLEEP_MILLISECONDS
Similar issue found on proxmox (debian) proposing default values:
http://
System:
# lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04
#uname -a
Linux freuan0l000075 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux
Package: qemu-kvm 0.12.3+
Changed in qemu-kvm (Ubuntu): | |
assignee: | nobody → Dustin Kirkland (kirkland) |
status: | Triaged → In Progress |
Hi there-
You can actually set it to whatever you want, and have it persist across boots. Just modify the values in the file /etc/default/ qemu-kvm.
We're just using the default, upstream kernel value for SLEEP_MILLISECONDS, which is 20. It does seem a bit aggressive, but it's the upstream default. We should have a discussion with them to see if it makes sense to change it.
However, I'm going to mark this won't-fix against the qemu-kvm package, since we have an easy configuration file where you can tune this value to your liking.