[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Managing memory usage per *user* (or group) not per *process*?




On Wed, 8 Mar 2006, Dave Ewart wrote:

> On Wednesday, 08.03.2006 at 09:25 -0600, Steve Block wrote:
>
> > >Is there a way to impose resource limits (spec. RAM usage) per user?
> > >Or, even better, per system group (so I could say "all users in group
> > >'staff' are limited to a total memory usage at any one time of 4GB
> > >RAM" or similar)?
> > >
> > >Any suggestions and ideas most welcome!
> >
> > I think /etc/security/limits.conf may be what you're looking for.
>
> Thanks Steve.  In my experience testing this out just now,
> /etc/security/limits.conf still sets limits per process, but these
> limits can be set differently for each user or for each group.
>
> It is still possible to run many processes that are just "under the
> radar", as it were, so this doesn't solve my problem unfortunately.

Design philosophy of UNIX is multiuser and multitasking system.
To achiev what you want is either limit number of user on the
box or rewrite the kernel to your needs.

-ishwar



Reply to: