- Posted on
- Featured Image
Pragmatic, Bash-first playbook for taming AI memory on Linux: install core tools (smem, htop, sysstat, nvtop, valgrind, numactl), measure the right stats (RSS/PSS/VSS), log trends and catch OOMs, rein in page cache and /dev/shm, enforce limits with cgroups/Docker and NUMA, and debug leaks/VRAM issues with tracemalloc, Memray, Massif, and PyTorch allocator tips—plus a 10-minute triage workflow.