pvesh get /nodes/{node}/qemu & qm list very slow since Proxmox 9

Decco1337

Member
Apr 12, 2023
49
3
13
I have upgraded several hosts from Proxmox 8 to 9 and since then I have very long loading times when I use the command

Code:
pvesh get /nodes/{node}/qemu

and the same for

Code:
qm list

The problem is it takes 40-60s to get a result on different hosts, also with hosts with >50 VMs and >60% CPU usage. At Proxmox 8 it just took few (up to 3s) seconds.

How to solve this? Is this an known issue?
 
the change is in qemu-server ,not the kernel, so the only workaround atm is to disable KSM (either globally or selectively for certain VMs).
 
I tried to disable KSM with:
systemctl stop ksmtuned
echo 2 > /sys/kernel/mm/ksm/run


but the problem persists:
time qm list
<...>
real 0m38.411s
user 0m1.136s
sys 0m37.242s
 
Last edited:
I tried to disable KSM with:
systemctl stop ksmtuned
echo 2 > /sys/kernel/mm/ksm/run


but the problem persists:
time qm list
<...>
real 0m38.411s
user 0m1.136s
sys 0m37.242s
yes, even disabling KSM by unmerging does not get rid of all traces of KSM inside the memory mappings, and unfortuantely, this particular slowness requires the VM to be stopped and started again afterwards to get rid of all memory mappings that have been merged in the past.