Opened 16 years ago
Closed 15 years ago
#2449 closed enhancement (wontfix)
adjustable CPU frequency/usage
Reported by: | AndCycle | Owned by: | |
---|---|---|---|
Component: | other | Version: | |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description (last modified by )
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 (3)
follow-up: 2 comment:1 by , 16 years ago
Description: | modified (diff) |
---|
comment:2 by , 16 years ago
Replying to frank: thanks for your reply, gonna try out the command line options :)
comment:3 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.