Page 1 of 1

Host XP SP3 Guest FreeBSD 7.2 High CPU

Posted: 14. Jun 2009, 22:34
by Jamik
Host OS: XP SP3
Guest OS: FreeBSD 7.2
Processor: C2D (CPU with 2 cores)

I use FreeBSD without X. FreeBSD consumes practically no resources when in idle. But in my host OS VB always consumes 100% of one core of my two core CPU. So it uses 50% CPU constantly!

Any solution suggested to repair this?

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Posted: 14. Jun 2009, 23:21
by Perryg
From other posts that have this problem.
To fix this, you have to build guest kernel with HZ=100 (kernel timer) and without tickless mode.
http://forums.virtualbox.org/viewtopic.php?f=4&t=18251

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Posted: 15. Jun 2009, 00:41
by Jamik
Thanks for advice.

This does the job.

echo kern.hz=100 >> /boot/loader.conf

So in /boot/loader.conf a line should be added kern.hz=100

Then reboot and CPU load in HOST OS is down to zero in idle. So no rebuilding kernel or other stuff just this line does the job!

http://www.freesoftwaremagazine.com/art ... or_freebsd

Here is where i found where to put the line. Problem solved!

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Posted: 27. Jul 2009, 06:09
by zero1eye
This worked perfectly, thank you.

--Sprawl