From e91d5cfe697741148ddb95a70d94e528df25f652 Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 23 Jun 2009 20:57:27 +0000 Subject: Usermode portion of the support for swap allocation accounting: - update for getrlimit(2) manpage; - support for setting RLIMIT_SWAP in login class; - addition to the limits(1) and sh and csh limit-setting builtins; - tuning(7) documentation on the sysctls controlling overcommit. In collaboration with: pho Reviewed by: alc Approved by: re (kensmith) --- lib/libc/sys/getrlimit.2 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index d3550d2..48feea0 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -97,6 +97,15 @@ mbufs, that this user may hold at any time. The maximum size (in bytes) of the stack segment for a process; this defines how far a program's stack segment may be extended. Stack extension is performed automatically by the system. +.It Dv RLIMIT_SWAP +The maximum size (in bytes) of the swap space that may be reserved or +used by all of this user id's processes. +This limit is enforced only if bit 1 of the +.Va vm.overcommit +sysctl is set. +Please see +.Xr tuning 7 +for a complete description of this sysctl. .It Dv RLIMIT_NPTS The maximum number of pseudo-terminals created by this user id. .El -- cgit v1.1