S6-SOFTLIMIT(8)

NAME
s6-softlimit - change process limits, then execute into another program

SYNOPSIS
s6-softlimit [-H | -h] [-a allmem] [-c core] [-d data] [-f fsize] [-l lock] [-m mem] [-o ofiles] [-P prio] [-p proc] [-r res] [-s stack] [-t cpusecs] prog...

DESCRIPTION
s6-softlimit parses its options and sets process (soft) resource limits accordingly.

A value of ‘=’ for any option means “set that limit to the hard limit”.

Depending on your operating system, an option may do nothing.

When s6-softlimit has modified all the limits successfully, it executes into prog....

OPTIONS

  Hard limit options

-H  Set the hard limit (as well as the soft limit). This is only usable by root if you're raising the limit, and should generally not be used, except once at boot time. The “hard limit” should be a system-wide setting that is never touched after being set once.

-h  Set the hard limit, without touching the soft limit. If you're lowering the hard limit to a value that's lower than the current soft limit, the soft limit will be lowered to the new value of the hard limit.

  Resource selection options

-a allmem
    Limit the total available memory to allmem bytes.

-c core
    Limit the core file size to core bytes.

-d data
    Limit the available heap memory to data bytes.

-f fsize
    Limit the file size to fsize bytes.

-l lock
    Limit the available locked memory to lock bytes.

-m mem
    Limit all types of memory to mem bytes.

-o ofiles
    Limit the number of open fds to ofiles.

-P prio
    Limit the real-time priority to prio.

-p proc
    Limit the number of processes to proc (per user).

-r res
    Limit the available physical memory to res bytes.

-s stack
    Limit the available stack memory to stack bytes.

-t cpusecs
    Limit the available CPU time to cpusecs seconds.

SEE ALSO
s6-applyuidgid(8), s6-envdir(8), s6-envuidgid(8), s6-fghack(8), s6-setsid(8), s6-setuidgid(8), s6-tai64n(8), s6-tai64nlocal(8)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-softlimit.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)