VirtualBox

Ticket #2449 (closed enhancement: wontfix)

Opened 6 years ago

Last modified 4 years ago

adjustable CPU frequency/usage

Reported by: AndCycle Owned by:
Priority: minor Component: other
Version: Keywords:
Cc: Guest type: other
Host type: other

Description (last modified by frank) (diff)

I am wondering is this possible to be implement in virtual machine?

There are some ancient program just run too fast at modern PC or some busy loop program that just exhaust host CPU.

Change History

comment:1 follow-up: ↓ 2 Changed 6 years ago by frank

  • Description modified (diff)

This is theoretically possible but the effort to do this properly is quite high if not impossible. In ideal case some would like to set up the amount of CPU cycles spent for a dedicated VM. So if you want to configure the VM to reflect a 500MHz CPU and your host CPU has 2GHz, the VM should be executed with every fourth CPU cycle. Which is of course not possible due to the scheduling overhead. You can argue that we could implement in a way that the CPU is working for 10,000 cycles on the guest, then for 30,000 cycles doing some other jobs and so on. This is easier to do but this will not meet your requirements as the busy loop in the guest might only take 5,000 cycles.

The only option you currently have is to slowdown the guest significantly by forcing the complete guest code to be recompiled. You can achieve that by specifying the -norawr0 -norawr3 command line options to VBoxSDL.

comment:2 in reply to: ↑ 1 Changed 6 years ago by AndCycle

Replying to frank: thanks for your reply, gonna try out the command line options :)

comment:3 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use