Page 1 of 1

CPU capping?

Posted: 16. Jun 2011, 16:14
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

Re: CPU capping?

Posted: 16. Jun 2011, 16:23
by Perryg
cpuexecutioncap Is a function of VBoxManage controlvm. It is not in the GUI.

Re: CPU capping?

Posted: 16. Jun 2011, 16:31
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?

Re: CPU capping?

Posted: 16. Jun 2011, 16:48
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.

Re: CPU capping?

Posted: 17. Jun 2011, 15:08
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

Re: CPU capping?

Posted: 17. Jun 2011, 15:14
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.

Re: CPU capping?

Posted: 17. Jun 2011, 15:24
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...

Re: CPU capping?

Posted: 17. Jun 2011, 15:29
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.