FUNCTION::PROC_MEM_S(3stap)
π FUNCTION::PROC_MEM_S(3stap) π
okay bestie, welcome to the Memory Tapset corner of the SystemTap Tapset Reference β yes this is a 3stap page, we're in manual-page-land, come sit with me π«Ά
β¨ NAME β¨
function::proc_mem_size β literally the total program virtual memory size in pages π
πΈ SYNOPSIS πΈ
1) proc_mem_size:long()
2) proc_mem_size:long(pid:long)
two whole flavors, pick your fighter π
π¦ ARGUMENTS π¦
pidβ the pid of the process you wanna examine π (like, whose memory are we snooping on, bestie)
π DESCRIPTION π
1) Returns the total virtual memory size in pages of the current process β that's your process, the one right there in the room with you. But bestie, if there is no current process, or if the number of pages couldn't be retrieved, you get zero. Not an error, not a crash, just a lil 0 π
2) Returns the total virtual memory size in pages of the given process, the one you named with pid. Same deal: if that process doesn't exist, or the number of pages couldn't be retrieved, it's zero o'clock π
no cap, "zero" here is doing a lot of emotional labor β it means "couldn't get it" AND "nothing there" AND "nobody home." that's the vibe. that's the API. periodt π
π SEE ALSO π
tapset::proc_mem(3stap)β go read the whole family, iykyk π
okay that's the page!! π written up in the SystemTap Tapset Reference, version Ver, dated September 2026 β mwah, love u, go check ur process memory πβ¨π¦
π¦ 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