diff options
author | kib <kib@FreeBSD.org> | 2009-06-23 20:57:27 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-06-23 20:57:27 +0000 |
commit | e91d5cfe697741148ddb95a70d94e528df25f652 (patch) | |
tree | df8535674eb8cd6e5891dc1421be5690320af396 /contrib/tcsh | |
parent | fa686c638eece83a18de058d1934f4722487818b (diff) | |
download | FreeBSD-src-e91d5cfe697741148ddb95a70d94e528df25f652.zip FreeBSD-src-e91d5cfe697741148ddb95a70d94e528df25f652.tar.gz |
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)
Diffstat (limited to 'contrib/tcsh')
-rw-r--r-- | contrib/tcsh/sh.func.c | 4 | ||||
-rw-r--r-- | contrib/tcsh/tcsh.man | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/tcsh/sh.func.c b/contrib/tcsh/sh.func.c index 92e2447..f3a1fb0 100644 --- a/contrib/tcsh/sh.func.c +++ b/contrib/tcsh/sh.func.c @@ -1796,6 +1796,10 @@ struct limits limits[] = { RLIMIT_SBSIZE, "sbsize", 1, "" }, # endif /* RLIMIT_SBSIZE */ +# ifdef RLIMIT_SWAP + { RLIMIT_SWAP, "swaplimit", 1024, "kbytes" }, +# endif /* RLIMIT_SWAP */ + { -1, NULL, 0, NULL } }; diff --git a/contrib/tcsh/tcsh.man b/contrib/tcsh/tcsh.man index 0c9c3b6..ac0de18 100644 --- a/contrib/tcsh/tcsh.man +++ b/contrib/tcsh/tcsh.man @@ -2921,6 +2921,9 @@ the maximum number of simultaneous processes for this user id .TP \fIsbsize\fR the maximum size of socket buffer usage for this user +.TP +\fIswaplimit\fR +the maximum amount of swap space reserved or used for this user .PP \fImaximum-use\fR may be given as a (floating point or integer) number followed by a scale factor. For all limits |