Tech Support > Operating Systems > Linux / Variants > Specifying the maximum resource usage for a process
Specifying the maximum resource usage for a process
Posted by Madhusudan Singh on February 23rd, 2004


The subject line says it all. Is it possible ?

Lets say I have a single CPU with XXX MB of RAM. Can I specify that a
certain process use no more than 40 % of the CPU and / or RAM ?

Posted by Eric Moors on February 24th, 2004


Madhusudan Singh wrote:

Yes, some maxima can be set.

You can set ulimit for memory constraints.
For the cpu usage I'd look into nice, although it does not do exactly
what you are asking for.

I don't know of any tool that can restrict a process to
use only 40% CPU capacity.

Eric

Posted by Matt H on February 25th, 2004


Madhusudan Singh wrote:

man limit

You can restrict memory usage and CPU time (not %).



Similar Posts