Skip to content

v1.0.0

Choose a tag to compare

@rmk40 rmk40 released this 21 Feb 19:16
· 7 commits to main since this release

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