SMEMSTAT(8)
π SMEMSTAT β the manual page, but make it cute β¨
okay bestie, welcome to smemstat(8), a System Manager's Manual situation. this is the girl who reports memory usage with shared memory divided proportionally, and honestly? she ate. let's get into it π«Ά
β¨ NAME β¨
smemstat β report memory usage with shared memory divided proportionally π
πΈ SYNOPSIS πΈ
smemstat [options] [delay [count]]
π¦ DESCRIPTION π¦
so smemstat reports the physical memory usage, taking shared memory into consideration. like, it does the math so you don't have to. iconic behaviour fr fr.
Swap reports memory that is swapped out to disk. Unshared memory is reported as USS (Unique Set Size). Unshared memory including the proportion of shared memory is reported as the PSS (Proportional Set Size). And the non-swapped physical memory is reported as the RSS (Resident Set Size). three acronyms, all besties, all telling you a different little piece of the story. π
Running with root privilege will report all user space processes. Running without it? you just get the current user's processes. no cap, that's just how it is π
If a delay and count are not specified, you get a snapshot of the current memory used by the user's processes. one and done, a little polaroid of your RAM πΈ
If a delay in seconds is specified, smemstat will periodically show any per-process changes in memory β the interval being the specified delay. and the way that it runs indefinitely until a SIGINT is caught... main character energy honestly. Specifying count will repeat the periodic output count number of times, so it actually knows when to stop. π
π OPTIONS π
smemstat options are as follow, bestie:
-aβ show memory size change with up arrowβ(increase) and down arrowβ(decrease)-cβ get command information from processescommfield-dβ strip directory basename off command information-gβ report memory in gigabytes-hβ show help-kβ report memory in kilobytes-lβ show long (full) command information-mβ report memory in megabytes-ofile β output data into a JSON formatted file-pproclist β specify a comma separated list of processes to monitor. The process list may contain one or more PIDs or process names.-qβ run quietly, only really makes sense with-ooption-sβ show short command information-tβ top mode, show top changes of memory-Tβ top mode, show top consumers of memory
π When running in 'top mode', pressingqwill quit,atoggles the memory change arrow, andttoggles the top consumers of memory view. keyboard shortcuts, we love to see it. β¨
π SEE ALSO π
cpustat(8), eventstat(8), forkstat(8), top(1), vmstat(8)
the whole friend group, go say hi π«Ά
π AUTHOR π
smemstat was written by Colin Ian King <colin.i.king@gmail.com>
This manual page was written by Colin Ian King <colin.i.king@gmail.com>, for the Ubuntu project (but may be used by others).
β COPYRIGHT β
Copyright Β© 2014-2021 Canonical Ltd, Copyright Β© 2021-2024 Colin Ian King.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
π okay so that last bit is the serious one β no warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read it, know it, respect it. it's giving legal realness.
and that's the whole page, bestie π this was the January 11, 2024 edition of SMEMSTAT(8), from the System Manager's Manual β go forth and measure your memory, you absolute icon ππ¦β¨
π¦ where this page comes from
- debian trixie: smemstat 0.02.13-1 Β· GPL-2.0-or-later
- nixos 26.05: smemstat 0.02.13
- nixpkgs unstable: smemstat 0.02.13
- opensuse-leap 16.0: smemstat 0.02.13-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: smemstat 0.02.13-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: smemstat 0.02.13-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: smemstat 0.02.13-bp160.1.13 Β· GPL-2.0-or-later
- ubuntu noble: smemstat 0.02.13-1 Β· GPL-2.0-or-later
- ubuntu questing: smemstat 0.02.13-1
- ubuntu resolute: smemstat 0.02.13-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: smemstat 0.02.13-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms