[Beowulf] User resource limits
Lombard, David N
dnlombar at ichips.intel.com
Fri Jun 13 18:58:40 EDT 2008
On Fri, Jun 13, 2008 at 04:03:49PM -0400, Prentice Bisbal wrote:
> Lombard, David N wrote:
> > On Mon, Jun 09, 2008 at 11:41:29AM -0400, Prentice Bisbal wrote:
> >> I would like to impose some CPU and memory limits on users that are hard
> >> limits that can't be changed/overridden by the users. What is the best
> >> way to do this? All I know is environment variables or shell commands
> >> done as the user (ulimit, for example).
> > pam_limits and /etc/security/limits.conf
> In limits.conf, what is the units for as, is it bytes, or kb? It doesn't
> say in the man page for limits.conf, and the page for setrlimit says
> bytes RLIMIT_AS.
As does the kernel's mm/mmap.c and, for >=2.6.25, fs/proc/base.c
Note, mmap.c has been validating memory requests against RLIMIT_AS since
at least 2.6.3 (earliest kernel sources I have online); 2.6.25 includes
a /proc file "limits" that displays the limits (see fs/proc/base.c).
David N. Lombard, Intel, Irvine, CA
I do not speak for Intel Corporation; all comments are strictly my own.
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Beowulf