ulimit doesn't cap memory on macOS: stop a job before it swaps
On Linux a job's memory can be capped with ulimit -v , systemd-run -p MemoryMax= or a cgroup, and a job that grows too big fails on its own instead of taking the machine down. macOS has no systemd and no cgroups, and ulimit refuses. This is macOS 26.5.2: $ /bin/bash -c 'ulimit -v 1048576' /bin/bash…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-10-12 14:31 · DEV Community — Machine Learning
ulimit doesn't cap memory on macOS: stop a job before it swaps