Skip to content

Releases: rmk40/memlimit

v1.1.1

21 Feb 20:24

Choose a tag to compare

v1.0.0

21 Feb 19:16

Choose a tag to compare

Initial release of memlimit -- a zero-dependency, single-binary memory limiter for macOS and Linux.

Features

  • Platform-correct memory metrics: phys_footprint on macOS (the Activity Monitor metric), PSS on Linux (proportional shared page accounting)
  • Process group tracking: monitors the entire process tree spawned by the command, not just the top-level process
  • Graceful kill: SIGTERM first, configurable grace period, then SIGKILL
  • Verbose monitoring: optional periodic memory and process count reporting
  • TUI support: hands terminal foreground to the child process group
  • Unprivileged: no root, no cgroups, no kernel modules

Install

brew install rmk40/tap/memlimit

Or build from source:

make
sudo make install

Platforms

  • macOS (Apple Silicon and Intel)
  • Linux (kernel 4.14+)
  • WSL2