ps_mem(1)

πŸ“¦
version 3.14 Β· 2 versions
, in alpine 3.24, centos-stream 10, fedora 43, fedora 44

πŸ’– 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 supports SwapPss). 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