CPU capping?

This is for discussing general topics about how to use VirtualBox.
Post Reply
smartysmart34
Posts: 101
Joined: 21. Apr 2008, 20:56

CPU capping?

Post by smartysmart34 »

Hi all,

I remember having read somewhere, that VB 4-series would introduce something like CPU capping. This would allow assigning less then one CPU core to a guest system. I have not found anything like that in the gui and I'm using 4.0.8 right now. Did I miss something or did I misunderstand that feature? is it there? If so. Where?

Cheers,
Martin
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CPU capping?

Post by Perryg »

cpuexecutioncap Is a function of VBoxManage controlvm. It is not in the GUI.
smartysmart34
Posts: 101
Joined: 21. Apr 2008, 20:56

Re: CPU capping?

Post by smartysmart34 »

OK. So I do this from the command line. Is this a permanent change then, even if I change further VM-settings in the GUI? Or will it be overwritten by "whole increments" once the GUI comes into play again?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CPU capping?

Post by Perryg »

All functions in the GUI are written to the *.vbox file and so are the VBoxManage commands. Since these are separate they should not conflict. Ones that are in both the GUI and VBoxManage will of course change to the latest edit.
smartysmart34
Posts: 101
Joined: 21. Apr 2008, 20:56

Re: CPU capping?

Post by smartysmart34 »

perryg, thank you for the information.

Final question: Wouldn't it be of great help for people, if the GUI would allow assignment of fractions of CPU? Either by numeric field (which is allready there and linked to the slider) or by the slider itself? One could have the "1" position somewhere 30% through the slider and have 0.1-steps left of it. Should be sufficient for most usecases.

Cheers and have a good weekend,
Martin
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CPU capping?

Post by Perryg »

VirtualBox has so many features that it would be impossible to put them all in the GUI. Presently the only features in the GUI are those that affect all users the most.
smartysmart34
Posts: 101
Joined: 21. Apr 2008, 20:56

Re: CPU capping?

Post by smartysmart34 »

Well, yes, but: # of CPUs is allready there. It would just be a modification to the scale...

Anyway. I now know where to find it.
If I adjust it via commandline to say 0.5 CPUs. Will the GUI show that value? Otherwise I might forget having set it months ago...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CPU capping?

Post by Perryg »

What you see as a modification to the scale is only the reporting part. The actual code is far greater. Anyway you can ask the DEVs if you like but I can tell you from experience it usually falls on deaf ears. As for the CLI change showing in the GUI I am not sure but would doubt it since it is a capping feature and not the processor count.
Post Reply