FUNCTION::PROC_MEM_R(3stap)

πŸ’– FUNCTION::PROC_MEM_R(3stap) πŸ’–

okay bestie, welcome to the Memory Tapset corner of the SystemTap Tapset Reference and lemme tell you, this lil function is lowkey iconic. it's proc_mem_rss, and it's here to tell you how much memory a process is actually holding down in RAM, measured in pages. no cap. 🫢


✨ NAME ✨

function::proc_mem_rss β€” program resident set size, in pages, fr fr 🌸


πŸŽ€ SYNOPSIS πŸŽ€

two whole flavors, pick your fighter:

1) proc_mem_rss:long()

2) proc_mem_rss:long(pid:long)

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pid β€” the pid of the process you wanna examine, bestie. that's the one. πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea, and it's giving thorough:

  1. Returns the resident set size in pages of the current process, or zero when there is no current process or the number of pages couldn't be retrieved. like, no process, no vibes, no number. zero. πŸ™ˆ
  2. Returns the resident set size in pages of the given process, or zero when the process doesn't exist or the number of pages couldn't be retrieved. so if you pass a pid that's already gone ghost? you get zero. if the page count just refuses to load? also zero. that's the whole deal. πŸ’€
reminder bestie: this is pages, not bytes. don't come for me later being like "why is the number so small" β€” that's the units, not a bug. 🧚

🌈 SEE ALSO 🌈


SystemTap Tapset Reference, Ver, September 2026 β€” that's the version and the date, babes, and the page is FUNCTION::PROC_MEM_R(3stap). mwah, go measure some memory, ily πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from