rctl (FreeBSD)
FreeBSD's rule-based resource limits for processes, users, login classes and jails.
Classic ulimit sets limits per process and forgets the rest. rctl, written by Edward Tomasz Napierała and introduced in FreeBSD 9.0 (2012), instead tallies consumption per subject and acts when a limit is crossed. A rule such as jail:web:memoryuse:deny=2g says most of it: subject, resource, action, amount. The action can be deny, send a signal, log, or throttle.
The accounting is done by racct, which is disabled by default for performance reasons and has to be switched on at boot. It fills roughly the same niche as cgroups on Linux, but was designed around jails rather than retrofitted to them.