SMEMCAP(8)
πΎ SMEMCAP πΎ
okay bestie, so this is the manual page for smemcap β it lives in section 8 of the manual, and it is genuinely one of the most lowkey iconic little tools out there. no cap.
β¨ NAME β¨
smemcap β capture memory usage data so smem can snack on it later π
π«Ά SYNOPSIS π«Ά
that's it. that's the whole thing. she's simple, she's small, she's perfect. π
πΈ DESCRIPTION πΈ
so here's the vibe: smemcap grabs data off your system so that smem can process it later. that's literally her whole job and she does it flawlessly.
she captures all the /proc entries that smem needs, and then outputs them as an uncompressed .tar file straight to STDOUT. yes, STDOUT. she's not writing files behind your back, she's just yeeting that tar right at your terminal, main character energy. π
then later, smem can analyze that output if you hit it with the --source option. teamwork makes the dream work, fr fr. π
and here's the part that ate: smemcap is small, and it does not require Python. not even a little. zero Python. she's lean, she's portable, she's that girl. β¨
π OPTIONS π
ngl there are none. this program does not accept any options.
not one. not a single flag. she said "I come as I am" and honestly? respect. π¦
π§ EXAMPLE π§
here's the whole workflow in one line, bestie:
look at that. redirect the tar to a file, and boom, you've got yourself a memorycapture.tar. slay. π₯
π FILES π
these are the /proc entries she's scooping up, in order:
/proc/$pid/cmdline/proc/$pid/smaps/proc/$pid/stat/proc/meminfo/proc/version
that's the whole shopping list. no more, no less. π
π RESOURCES π
want to slide into her DMs? here's where to find her:
- Main Web Site:
http://www.selenic.com/smem - Source code repository:
http://selenic.com/repo/smem - Mailing list:
http://selenic.com/mailman/listinfo/smem
π SEE ALSO π
go read these too, they're all part of the same friend group:
smem(8), free(1), pmap(1), proc(5), ps(1), top(1), vmstat(8)
β COPYING β
Copyright (C) 2008-2009 Matt Mackall. Free use of this software is granted under the terms of the GNU General Public License version 2 or later.
so basically: free to use, just keep the license terms. periodt. π
π AUTHOR π
smem was written by Matt Mackall. king behaviour, honestly. π
and that's the whole page, bestie!! this version of the smemcap manual page (section 8, the one and only) was dated 17/06/2013 β yes that's the 17/06/2013 you see at the bottom of the original, she's a classic. mwah, love u, go capture some memory πβ¨
π¦ where this page comes from
- debian bookworm: smemcap 1.5-2
- debian trixie: smemcap 1.5-3
- ubuntu jammy: smemcap 1.5-1.1
- ubuntu noble: smemcap 1.5-2
- ubuntu questing: smemcap 1.5-3
- ubuntu resolute: smemcap 1.5-5 Β· GPL-2.0-or-later
- ubuntu stonking: smemcap 1.5-5 Β· 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