[SOLVED] Difference in CPU consumption

Vasilisc

Well-Known Member
Jun 29, 2017
34
3
48
45
vasilisc.com
Please help me and explain the observed CPU consumption.
The ProxmoxVE + Ceph (Hyper-converged Infrastructure) cluster is built on five physical servers.

For the test, one virtual machine is running on the server, which shows ~10% CPU load on the Proxmox VE host.
Inside the virtual machine, the CPU load is ~0%.

pve_graph3.png

Info about PVE:
pve-manager/6.2-14/2001b502 (running kernel: 5.4.65-1-pve)
openvswitch-switch: 2.12.0-1
ceph: 14.2.11-pve1

agent: 1
bootdisk: scsi0
cores: 1
cpu: kvm64,flags=+pcid
description: AptCacherNg
memory: 2048
name: aptcacherng
net0: virtio=E6:DE:B3:70:1C:60,bridge=vmbr0,tag=3
numa: 0
ostype: l26
scsi0: rbd:vm-100-disk-0,discard=on,size=32G
scsi1: rbd:vm-100-disk-1,discard=on,size=256G
scsihw: virtio-scsi-pci
smbios1: uuid=a035aa63-941a-481d-a63d-d36098cb1e36
sockets: 1

qemu-guest-agent:
Installed: 1:2.11+dfsg-1ubuntu7.32
Candidate: 1:2.11+dfsg-1ubuntu7.32
Version table:
*** 1:2.11+dfsg-1ubuntu7.32 500
500 http://ru.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
100 /var/lib/dpkg/status
1:2.11+dfsg-1ubuntu7 500
500 http://ru.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
 
Hey,

PVE uses information in /proc/stat, which is about as accurate as it gets in terms of CPU utilization. I am not sure how exactly htop calculates CPU utilization, therefore the difference you observed probably comes from how htop calculates the current CPU load.
 
Hey,

PVE uses information in /proc/stat, which is about as accurate as it gets in terms of CPU utilization. I am not sure how exactly htop calculates CPU utilization, therefore the difference you observed probably comes from how htop calculates the current CPU load.
There is no information about any process in the /proc/stat command! The question was asked not about the CPU load of the Proxmox VE host, but about the load of the kvm process (~10%), while the guest operating system reports ~0%.
 
My friend helped me with advice. I disabled the "Use tablet for pointer" option (= No) and the problem went away. The guest operating system Ubuntu 18.04 LTS also shows ~0% CPU load inside. Proxmox VE host now shows ~0%.
pve_graph5.png
 
  • Like
Reactions: bananajoe75

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!