Opened 6 months ago

Last modified 6 months ago

#18936 new bug

[kernel] high cpu usage with multiple cores in vbox

Reported by: diver Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/beta4
Keywords: Cc:
Blocked By: #14979 Blocking:
Platform: All

Description

hrev57801 x86_64 running in vbox 6.1.48 on macOS Mojave 10.14.6

Long boot times and extremely hight cpu usage is observed when running in that environment.

Trying to bisect when it started. hrev57391 is ok

Change History (3)

comment:1 by diver, 6 months ago

Connected hrev57801 iso to the same VM I was bisecting it with made the issue disappear completely. Next step is to somehow compare vm settings.

comment:2 by diver, 6 months ago

Summary: [kernel] high cpu usage with multiple cores in vbox (regression)[kernel] high cpu usage with multiple cores in vbox

So I compared VM settings with VBoxManage list vms --long

Turns out VMs created with Other/Unknown (64-bit) profile have x2APIC disabled which causes massive slowdown in Haiku and high cpu usage.

You can't enable it from the GUI so you need to run VBoxManage modifyvm "name" --x2apic on.

When creating a VM with Ubuntu (64-bit) profile x2APIC is enabled by default. So I think we need to mention it here https://github.com/haiku/website/blob/master/content/guides/virtualizing/virtualbox.md

I wonder if Haiku can do better without x2apic being enabled?

Last edited 6 months ago by diver (previous) (diff)

comment:3 by waddlesplash, 6 months ago

Blocked By: 14979 added

This is probably the same as #14979 then. The patch I posted to Gerrit was supposed to potentially help with this, but I guess it didn't.

Note: See TracTickets for help on using tickets.