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:
- 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. π
- 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
pidthat'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 π
tapset::proc_mem(3stap)β go read the whole tapset fam, it's worth it. iykyk β
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
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms