ps_mem(1)
π ps_mem β the memory profiling tool bestie π
okay so like, this is ps_mem(1), the manual for the memory profiling tool, and we're gonna get you so comfy with it. pull up a chair, grab a strawberry π, and let's vibe check your RAM.
β¨ NAME β¨
ps_mem β the memory profiling tool. that's it, that's the name, iconic. π
πΈ SYNOPSIS πΈ
ps_mem [OPTION]...
yep. that's the whole thing. options go in, memory facts come out. slay.
π¦ DESCRIPTION π¦
so what this actually does: it displays the core memory used per program β not per process, bestie, that distinction is doing so much heavy lifting here.
in detail it reports:
sum (private RAM for program processes) +
sum (shared RAM for program processes)
and now for the part that's giving main character energy: the shared RAM is genuinely problematic to calculate π, so the tool automatically picks the most accurate method available for the running kernel. it's out here adapting. it's flexible. we love that for it. β¨
π OPTIONS π
-h,--helpβ show the help message. literally just asks for help and it gives it to you. π«Ά--versionβ show version info. who are you? what are you? this tells you. π-p PID[,PID2,...PIDN]β show memory consumption for the specified processes. you hand it a pid (or a whole little comma-separated list of them) and it tells you what they're eating. π½οΈ-S,--swapβ show swap information of each item (and Shared swap too, but only if the kernel supportsSwapPss). no cap, kernel-dependent. π-d,--discriminate-by-pidβ show and separate memory usage entries by process rather than by program. the pettiest possible breakup of your memory usage. π-s,--split-argsβ show and separate memory usage entries by command line arguments, not just the program name. detail-oriented queen behavior. π-t,--totalβ only display the total number of bytes for the selected processes. one number. no chaos. just the total. β-w Nβ report memory consumption every N seconds. it'll just keep checking in on you like a good friend. π§
π AUTHOR π
PΓ‘draig Brady <P@draigBrady.com> β the legend who made all of this. we stan. π
and that's the whole page, bestie! every flag, every detail, every number β all here, all yours. go profile some memory. you're gonna do great. π₯
this was ps_mem(1), from the 25 May 2018 era of the page itself β so like, vintage, but in a chic way π
β¨
π¦ where this page comes from
- alpine 3.24: ps_mem-doc 3.14-r0 Β· LGPL-2.1-or-later
- centos-stream 10: ps_mem 3.14-9.el10 Β· LGPL-2.1-only
- fedora 43: ps_mem 3.14-10.fc43 Β· LGPL-2.1-only
- fedora 44: ps_mem 3.14-11.fc44 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms