OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: smurfb on July 27, 2015, 02:31:37 pm

Title: High cpu usage in virtual environment
Post by: smurfb on July 27, 2015, 02:31:37 pm
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?
Title: Re: High cpu usage in virtual environment
Post by: opnsenseFAN on April 10, 2016, 05:41:12 pm
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
Title: Re: High cpu usage in virtual environment
Post by: 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.
Title: Re: High cpu usage in virtual environment
Post by: opnsenseFAN on April 10, 2016, 06:02:37 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?
Title: Re: High cpu usage in virtual environment
Post by: weust on April 10, 2016, 06:07:23 pm
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 :-)