softlimit(8)
β¨ softlimit(8) β¨
okay bestie, this is the manual page for softlimit, from the System Manager's Manual β she's an 8, which means she's a system-admin girlie, not your average little user command. sit down, grab a strawberry π, and let's get into it.
π NAME π
softlimit β runs another program with new resource limits.
that's it. that's her whole job. she puts a little leash on your program and then sends it out into the world. iconic honestly.
π¦ SYNOPSIS π¦
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.
so like β the way that it works is, she does the limiting thing first, and then she hands off to child. no cap. the limit is already in place by the time your program even breathes its first breath. π
π OPTIONS π
okay so this is the part where you have to actually pay attention, bestie. in each of the following opts, n may be =, indicating that the soft limit should be set equal to the hard limit.
yes, literally the character =. it's giving "just give me the max, I'm not doing math". π
π§ opts controlling memory use
-m nβ Same as-d n -s n -l n -a n. it's the girlboss combo option, sets a whole bunch at once.-d nβ Limit the data segment per process tonbytes.-s nβ Limit the stack segment per process tonbytes.-l nβ Limit the locked physical pages per process tonbytes. This option has no effect on some operating systems. π-a nβ Limit the total of all segments per process tonbytes. This option has no effect on some operating systems. yeah, same situation, she's just not universally respected.-o nβ Limit the number of open file descriptors per process ton. This option has no effect on some operating systems.-p nβ Limit the number of processes per uid ton.
π opts controlling file sizes
-f nβ Limit output file sizes tonbytes.-c nβ Limit core file sizes tonbytes.
β‘ Efficiency opts
-r nβ Limit the resident set size tonbytes. This limit is not enforced unless physical memory is full. so like, she's technically there but only shows up when things get real. π-t nβ Limit the CPU time tonseconds. This limit is not enforced except that the process receives aSIGXCPUsignal afternseconds. so she doesn't hard-stop you, she just sends a little signal to let you know your time is up. β¨
π SEE ALSO π
the whole friend group, fr fr β go read these next:
supervise(8), svc(8), svok(8), svstat(8), svscanboot(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), tai64nlocal(8), setuidgid(8), envuidgid(8), envdir(8), setlock(8)
and if you wanna go straight to the source: http://cr.yp.to/daemontools.html π«Ά
and that's the whole page, bestie π this one came out of the System Manager's Manual, it's softlimit(8), and if you ever need to look her up again just search that exact name. mwah. π
πβ¨
π¦ where this page comes from
- debian bookworm: daemontools 1:0.76-8.1 Β· LicenseRef-public-domain
- debian trixie: daemontools 1:0.76-14 Β· LicenseRef-public-domain
- nixpkgs unstable: daemontools 0.76
- ubuntu jammy: daemontools 1:0.76-7
- ubuntu noble: daemontools 1:0.76-10 Β· LicenseRef-public-domain
- ubuntu questing: daemontools 1:0.76-15
- ubuntu resolute: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- ubuntu stonking: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms