KVM performance issues

syadnom

Renowned Member
Oct 19, 2009
26
0
66
v5.1-41

as a cheap benchmark, I'm compiling asterisk on centos7
kvm cpu type = host, numa=on
specs for KVM and LXC vm/container same

In VM, this takes 25 Minutes,
in LXC, this takes 7 Minutes.

Any idea where to start to identify this performance gap?

I'm actually running asterisk on centos7/kvm in production on this box and I'm having performance issues that seem to be this KVM performance problem.

Thanks.
 
No, but I found something peculiar.

running `sysbench --test=memory run`

in LXC I get 277.65MB/s
in KVM I get 41.10MB/s

I did the same tests with CPU and they are nearly identical.

Is there something in KVM that would be limiting memory rates?
 
As a data point: on a Dell T30 pve I've got a mostly idle kvm web server that I just installed sysbench on.

It gave me the following:

upload_2018-4-3_19-51-3.png

Nothing fancy on that server at all, also running Centos 7.
 
No, but I found something peculiar.

running `sysbench --test=memory run`

in LXC I get 277.65MB/s
in KVM I get 41.10MB/s

I did the same tests with CPU and they are nearly identical.

Is there something in KVM that would be limiting memory rates?

Just to note that even your LXC result looks very slow, most modern SSDs will give you double that in sequential reads.
On a Xeon 5600/DDR3 I'm getting ~2400 MB/s on the host and ~2100 MB/s inside a KVM guest (pve 4.3) and that's already aging platform.

Your CPU may lack some of the hardware virtualization features necessary. If the CPU is not that old then double check the BIOS and ensure that there is no option to disable hardware virtualization that is turned on
 
yeah, I'm seeing that. one of my other prox hosts gives 3465MB/s in KVM and 3922MB/s on the host. I'm only getting 267MB/s on LXC and the Host here, I think my LXC results before were not accurate. ECC Ram in this server so I suspect I have a bad chip and ECC is masking that with slow performance. Thanks for the numbers.
 

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!