Host XP SP3 Guest FreeBSD 7.2 High CPU

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Jamik
Posts: 5
Joined: 29. May 2009, 15:40
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: FreeBDS XP Puppy...

Host XP SP3 Guest FreeBSD 7.2 High CPU

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Post 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
Jamik
Posts: 5
Joined: 29. May 2009, 15:40
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: FreeBDS XP Puppy...

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Post 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!
zero1eye
Posts: 2
Joined: 25. Jul 2009, 23:38
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Freebsd

Re: Host XP SP3 Guest FreeBSD 7.2 High CPU

Post by zero1eye »

This worked perfectly, thank you.

--Sprawl
Post Reply