We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.

u/rlimits (vs2.0)

Limit ProcFS config Code Unit Description
-t CPU   cpu U- s amount of cpu time in seconds
-f FSIZE   fsize U- kb size of files created by the shell
-d DATA   data U- kb size of a process's data segment
-s STACK   stack U- kb stack size
-c CORE   core U- kb size of core files created
-m RSS RSS rss -R page resident set size
-u NPROC PROC nproc UR 1 number of processes
-n NOFILE FILES nofile UR 1 number of file handles
-l MEMLOCK VML memlock UR page pages locked into memory
-v AS/VM VM as -R page virtual memory pages
-? LOCKS LOCKS locks UR 1 file system locks
-? SIGPENDING    Ur 1 pending signals
-p MSGQUEUE MSGQ   -r 512b message queue size
-? NICE    U- 1 minimum nice level
-? RTPRIO    U- 1 maximum realtime prio
VLimit      
-- NSOCK (16) SOCK   -R 1 number of sockets
-- OPENFD (17) OFD   -R 1 number of file descriptors
-- ANON (18) ANON   -r page anonymous memory pages
-- SHMEM (19) SHM   -r page shared memory pages

Code Description
U ... ulimit (supported)
R ... rlimit (fully supported)
r ... rlimit (accounted/planned)
- ... unsupported

For example, if RSS (the real memory) and VM (the virtual address space) should be restricted, the appropriate config files should be defined:

# ls -al /etc/vservers/vs27/rlimits
total 28
drwxr-xr-x  2 root root 4096 2005-08-24 12:37 .
drwxr-xr-x  6 root root 4096 2005-08-24 00:22 ..
-rw-r--r--  1 root root    6 2005-08-24 12:43 as.hard
-rw-r--r--  1 root root    6 2005-08-24 00:36 memlock.hard
-rw-r--r--  1 root root    6 2005-08-24 00:36 nofile.hard.old
-rw-r--r--  1 root root    5 2005-08-24 12:42 nproc
-rw-r--r--  1 root root    6 2005-08-24 12:37 rss.hard

# cat /etc/vservers/vs27/rlimits/rss.hard
10000

# cat /etc/vservers/vs27/rlimits/as.hard
90000

# vserver vs27 restart

# cat /proc/virtual/27/limit
PROC:            6              18            5000           0
VM:           3705           23158           90000           0
VML:             0               0           10000           0
RSS:          1344            7965           10000           0
ANON:          205             205              -1           0
FILES:          87             150              -1           0
OFD:            37              37              -1           0
LOCKS:           2               6              -1           0
SOCK:            3               3              -1           0
MSGQ:            0               0              -1           0
SHM:             0               0              -1           0

To be continued ...