OpenVZ Forum


Home » General » Support » Running procs in VPS context :: possible to limit/throttle?
Re: Running procs in VPS context :: possible to limit/throttle? [message #5227 is a reply to message #5205] Wed, 16 August 2006 20:40 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

it is exactly the same for OVZ - we have 2-level CPU scheduer. On the first level VE to run is selected, on the second level a processes inside VE is selected.

So the first level CPU scheduler _limits_ and _makes_ sure that no VE can consume more CPU then it is allowed to. And VE is limited in CPU both due to cpulimits and its weight.

So what happens if you run 50 processes inside VE and 1 process on the node itself? Your loadavg on the node is 51 (/proc/loadavg or uptime output). But it has nothing to do with the _real_ load. It has nothing to do with the real load even on std Linux. It is just one of the parameters. And if your VE is limited to 10% of CPU these 50 processes won't be able to get more then 10% of CPU altogether. And the ONLY! process in host system will be able to consume 90% of CPU regardless of those 50.


http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon11.gif
Previous Topic: vzctl 3.0.11 and CPUS parameter
Next Topic: Reference for the UBC values?
Goto Forum:
  


Current Time: Fri Aug 30 19:12:54 GMT 2024

Total time taken to generate the page: 0.03303 seconds