VirtualBox

Opened 16 years ago

Last modified 14 years ago

#2449 closed enhancement

adjustable CPU frequency/usage — at Version 1

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

Description (last modified by Frank Mehnert)

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 (1)

comment:1 by Frank Mehnert, 16 years ago

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.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use