Re: Restricting CPU and memory usage

Jeff Hanson <[email protected]> Mon, 07 Aug 2006 08:08:51 -0400
Newsgroups gmane.linux.suse.ia64,gmane.linux.suse.general
Organization SGI
Message-ID <[email protected]>
Marc Lanctot wrote:
> Hello,
> 
> I'm a system admin for the department of Atmospheric and Oceanic
> Sciences ant McGill University. I have recently become in charge of an
> SGI Altix Itanium machine running SUSE Enterprise Linux 9.0.
> 
> I'm looking for a way to control/restrict memory and CPU usage on this
> server. I know about nice and ulimit, but I need something more flexible
> that can:
> 
> - restrict the CPU usage time for a process (or user)
> 
> - limit the percentage/amount of the CPU allocated to a given user, and
> not just for a single process
> 
> - limit the percentage/amount of RAM allocated to a given use, and not
> just for a single process
> 
> I suspect to do so would require turning on some flags in the kernel and
> maybe using a tool to set these limits for each user, but I don't know
> if this exists.
> 
> Could someone recommend a tool or procedure to implement this?

Do your users work in batch jobs?  If so a batch scheduler such as
Platform LSF or PBSPro will be able to accomplish much of what you want.
-- 
-----------------------------------------------------------------------
Jeff Hanson - [email protected] - Field Technical Analyst

You can choose a ready guide in some celestial voice.
If you choose not to decide, you still have made a choice.
You can choose from phantom fears and kindness that can kill;
I will choose a path that's clear
I will choose freewill. - Lee/Lifeson/Peart