High cpu usage in virtual environment

Started by smurfb, July 27, 2015, 02:31:37 PM

Previous topic - Next topic
Hi.

I run OPNSense 15.7 in a virtual machine (qemu/kvm) on an Ubuntu 15.4 installation.

CPU usage in OPSense is around 3%, but the virtual machine uses about 20-30% CPU.

I do not use virtio-network but rather PCI-passthrough on Intelbased HP NICs.

Anyone else seen this behavior?

Hy.

I noticed the exact same behavior! See screenshot...
In OPNsense you can find 2 Plugins "os-xen" and "os-vmware".
What about KVM?
Anyone an idea?

Thank you in advance.

Cheers!
Jessica

AFAIK KVM is build into the FreeBSD kernel, as is Hyper-V support, hence there are no external packages for them.
I run a VM in Hyper-V 2012 R2 for OPNsense, and it uses 0% when not doing anything.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Quote from: weust on April 10, 2016, 05:56:19 PM
AFAIK KVM is build into the FreeBSD kernel, as is Hyper-V support, hence there are no external packages for them.
I run a VM in Hyper-V 2012 R2 for OPNsense, and it uses 0% when not doing anything.

Ahaaa, that sounds interesting. I am planning to install OPNsense in a Hyper-V enviroment as well. So thanks for that experience!
An why would you say, is KVM showing that much CPU load at this virtual machine?

April 10, 2016, 06:07:23 PM #4 Last Edit: April 11, 2016, 06:37:27 PM by weust
No f*cking clue.

Edit: Just to make sure you don't get me the wrong way, it wasn't an attack or something like that.
I really have no idea why the CPU usage is so high with KVM. Never used it because I don't like the idea of a hobby project running my VM's :-)
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.