softlimit 1 user commands djbwares
softlimit runs another program with new resource limits.
`softlimit` opts child

## Description

opts is a series of getopt-style options. child consists of one or more arguments.

`softlimit` sets soft resource limits as specified by opts. It then runs child.

## Options

In each of the following opts, n may be `=`, indicating that the soft limit should be set equal to the hard limit.

### opts controlling memory use:

-m n

  Same as -d n -s n -l n -a n.

-d n

  Limit the data segment per process to n bytes.

-s n

  Limit the stack segment per process to n bytes.

-l n

  Limit the locked physical pages per process to n bytes. This option has no effect on some operating systems.

-a n

  Limit the total of all segments per process to n bytes. This option has no effect on some operating systems.

-o n

  Limit the number of open file descriptors per process to n. This option has no effect on some operating systems.

-p n

  Limit the number of processes per uid to n.

### opts controlling file sizes:

-f n

  Limit output file sizes to n bytes.

-c n

  Limit core file sizes to n bytes.

### Efficiency opts:

-r n

  Limit the resident set size to n bytes. This limit is not enforced unless physical memory is full.

-t n

  Limit the CPU time to n seconds. This limit is not enforced except that the process receives a SIGXCPU signal after n seconds.

## See also

supervise 1
svc 1
svok 1
svstat 1
svscanboot 1
svscan 1
readproctitle 1
fghack 1
pgrphack 1
multilog 1
tai64n 1
tai64nlocal 1
setuidgid 1
envuidgid 1
envdir 1
setlock 1

## Author

Original code and documentation by Daniel J. Bernstein. Converted to manual pages and updated by Gerrit Pape in 2000, 2001, and 2002. Converted to DocBook XML by Jonathan de Boyne Pollard.