CPU Utilisation 2.6.18 vs 2.6.24

littletiger

New Member
Jan 15, 2009
26
0
1
Is anyone else experiencing higher CPU utilization running the same KVMs under 2.6.24 (and 2.6.32) instead of 2.6.18 ?

I am getting more than twice as much CPU utilization even under idle conditions with no real load (e.g. 0.8% on 2.6.18 compared with 1.8% on 2.6.24 and 2.6.32).

Note, KSM has already been turned off when running 2.6.32.
 
What process needs 1.8% CPU? (ps auxww)

Thanks very much for your reply.

That was just the KVM process itself (the rest of the processes are all showing zero).
Sorry, I made a mistake before it was not 1.8%, it was actually 4% with 2.6.24 and 2.6.32 kernels (compared with 1% of 2.6.18)

You can see very clearly when we were using 2.6.18 (1% CPU Usage) and when we were using 2.6.32 (4% CPU Usage) from the graph below. Note the higher "CPU Usage" also affected the "Load Average".

View attachment 254CPU_Load.png

In terms of "ps auxww" outputs, I have attached the 2 relevant outputs (highlighting the differences):

2.6.18:
root 8892 1.0 6.1 4363632 500880 ? Sl 16:30 0:47 /usr/bin/kvm -monitor unix:/var/run/qemu-server/401.mon,server,nowait -vnc unix:/var/run/qemu-server/401.vnc,password -pidfile /var/run/qemu-server/401.pid -daemonize -usbdevice tablet -name test -smp 2 -boot c -vga cirrus -tdf -k en-us -drive if=ide,index=2,media=cdrom -drive file=/dev/drbdvg0/vm-401-disk-1,if=virtio,index=0,boot=on -drive file=/dev/drbdvg2/vm-401-disk-1,if=virtio,index=1 -m 4096 -net tap,vlan=1,ifname=vmtab401i1,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=1,model=virtio,macaddr=3E:5D:17:69:22:91

2.6.32:
root 3295 3.9 6.1 4423064 501540 ? Sl 17:58 10:12 /usr/bin/kvm -monitor unix:/var/run/qemu-server/401.mon,server,nowait -vnc unix:/var/run/qemu-server/401.vnc,password -pidfile /var/run/qemu-server/401.pid -daemonize -usbdevice tablet -name test -smp sockets=1,cores=2 -nodefaults -boot menu=on,order=c -vga cirrus -tdf -k en-us -drive if=ide,index=2,media=cdrom -drive file=/dev/drbdvg0/vm-401-disk-1,if=virtio,index=0,boot=on -drive file=/dev/drbdvg2/vm-401-disk-1,if=virtio,index=1 -m 4096 -net tap,vlan=1,ifname=vmtab401i1,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=1,model=virtio,macaddr=3E:5D:17:69:22:91

For all 3 kernels, we are running the another copy of Proxmox 1.5 (with 2.6.24 kernel) inside that KVM. When we run "ps auxww" inside the KVM, all the processes have %CPU value of 0.0 for all 3 kernels. So the 1% to 4% CPU Usage difference does not seemed to be contributed by processes inside the KVM, but by the KVM process itself.

I can post the full output of the "ps auxww" commands ran from the host and from inside the KVM, if they are of interest.

Thanks again for your help.
 
Maybe you can try to disable USB tablet, for this put "tablet: no" in /etc/pve/qemu-server.cfg then STOP and restart your guest.

Thanks for your detailed help, that worked great!

CPU% dropped from about 3.9 to about 1.6.

Although not as good as with 2.6.18 kernel, it is still a significant improvement for the 2.6.32 kernel.

Thanks again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!