Please try kvm.git and
report, it's likely fixed.
With kvm.git kernel it works.
Here's what I did:
git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git
cd kvm
cp /boot/config-$(uname -r) .config
# set LOCALVERSION to -kvm.git.20110309
make modules bzImage
make modules_install install
#
Hi
I am playing with cgroups and try to limit block io for guests.
The proof of concept is:
# mkdir /dev/cgroup/blkio
# mount -t cgroup -o blkio blkio /dev/cgroup/blkio/
# cd blkio/
# mkdir test
# cd test/
# ls -l /dev/vdisks/kirk
lrwxrwxrwx 1 root root 7 2011-01-06 13:46 /dev/vdisks/kirk -
Did you just echo the main qemu-kvm PID, or did you also
add the PIDs of every thread too ? From this description
of the problem, I'd guess you've only confined the main
process thread and thus the I/O VCPU threads are not
confined.
That was indeed correct. I was mislead by the fact that no
qemu consists of several threads. Cgroup works per thread now.
Could you double check all threads for qemu are in a cgroup ?
I think you have to write all thread-ID to tasks file when you
move qemu after starting it.
As stated yesterday: Yes, that was the problem. Works as expected now,