On Jan 20, 2011, at 10:25 AM, Taavi Sannik wrote:

> Hello!
> 
> On 20.01.2011 2:23, Hannes Landeholm wrote:
>> Instead, I think this should be
>> implemented by a nice level setting which should be supported by all
>> kernels. The nice level basically sets the priority of the threads, so
>> if one environment is running with a lower nice level, it will get
>> more CPU time if it currently competing with another environment that
>> has a higher nice level. This is basic CPU time resource management
>> and prevents idle cycles.
> 
> Peruser has this already. Just use NiceLevel <level> in your processor 
> configuration.Do note that the nice level is more for prioritizing load 
> rather than blocking rogue workers.
> 
> You can also use kernel cgroups to monitor and limit cpu/memory. There is 
> also the PAM patch mentioned here previously (I'm not sure if anyone has 
> modified it to work with the latest peruser).


The PAM patch can control cpu time, but not cpu use.



_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to