aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcsh
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-06-23 20:57:27 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-06-23 20:57:27 +0000
commitc9253e931d306584898f210227172785fe663d45 (patch)
treedf8535674eb8cd6e5891dc1421be5690320af396 /contrib/tcsh
parent3364c323e6ad143e0e95e2d1c7c3c3b880515860 (diff)
downloadsrc-c9253e931d306584898f210227172785fe663d45.tar.gz
src-c9253e931d306584898f210227172785fe663d45.zip
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)
Notes
Notes: svn path=/head/; revision=194767
Diffstat (limited to 'contrib/tcsh')
-rw-r--r--contrib/tcsh/sh.func.c4
-rw-r--r--contrib/tcsh/tcsh.man3
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/tcsh/sh.func.c b/contrib/tcsh/sh.func.c
index 92e2447f3851..f3a1fb04f2f1 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 0c9c3b6a10af..ac0de18a227e 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