Hi,
I need a way to set a hard limit on processor usage on the server. A user had spawned three processes, one on each processor (the fourth one got fried a long time ago), which kept them 90% busy. The result was that the server became to slow to even reply to ping packets, not to mention loss of DNS service.
The command "ulimit" has an option "-t" that can set a limit on processor usage in seconds ... what does that mean?
I want to say something like "only x% on only y processors" if possible. Is there a way to do that?
Will simply limiting processor usage help solve the problem we faced?
Sameer.
On Wed, Jul 17, 2002 at 09:24:55AM +0530, Sameer D. Sahasrabuddhe wrote:
Hi,
I need a way to set a hard limit on processor usage on the server. A user had spawned three processes, one on each processor (the fourth one got fried a long time ago), which kept them 90% busy. The result was that the server became to slow to even reply to ping packets, not to mention loss of DNS service.
The command "ulimit" has an option "-t" that can set a limit on processor usage in seconds ... what does that mean?
I want to say something like "only x% on only y processors" if possible. Is there a way to do that?
Will simply limiting processor usage help solve the problem we faced?
look in /etc/security/limits.conf file. ( location of the limits.conf file on RH systems. Dunno about others )
Also, modify the PAM settings to read the limits file.
On Wed, 2002-07-17 at 13:16, Ravindra Jaju wrote:
I want to say something like "only x% on only y processors" if possible. Is there a way to do that?
look in /etc/security/limits.conf file.
The limits file also has settings that put a limit on the /time/ for the CPU usage ... I don't that is so useful. But it does have control on the prioriy assigned to processes on a per-user basis. So if I set high priority for users like "apache", "tinydns", etc then these servers will not be affected by those heavy users, right?
Sameer.