meminfolog(8)
β¨ meminfolog(8) β¨
okay so bestie, this is a page from ClusterTools2 and it's about meminfolog β a lil script that writes down your memory info with a timestamp so you can look back later and be like "hmm π what was RAM doing at 3am". It's a section 8 page (system administration, iykyk), so let's get into it π
π NAME π
meminfolog β log the meminfo with timestamp. literally that's the whole job. no cap.
πΈ SYNOPSIS πΈ
meminfolog [ logfile ]
π DESCRIPTION π
meminfolog logs the meminfo with timestamp. That's it, that's the vibe π¦
Basically the script just puts the output of date +%F %T in front of each line for the output of cat /proc/meminfo. so every single line of your memory stats gets its own little timestamp glow-up β¨ iconic behaviour honestly.
π₯ EXAMPLES π₯
β run it every 10 minutes
To run meminfolog every 10 minutes, the crontab entry could look like this:
-01-56/10 * * * * root /usr/sbin/meminfolog /var/log/meminfo.log
π§ rotate and compress the log
To rotate and compress the log from time to time, the logrotate entry could look like this:
/var/log/meminfo.log {
compress
dateext
maxage 365
rotate 99
size +2M
notifempty
missingok
copytruncate
}
π EXIT STATUS π
0β Successful program execution. slay, everything worked π>0β Usage, syntax or execution errors. π something went sideways.
π¦ FILES π¦
/usr/sbin/meminfologβ the script itself. the main character π/var/log/meminfo.logβ the default logfile. your go-to spot for the receipts π/etc/cron.d/ClusterTools2β the cron entry./etc/logrotate.d/ClusterTools2β the logrotate entry.
π BUGS π
Feedback is welcome, please mail to feedback@suse.com π¬ β fr fr, they wanna hear from you.
π SEE ALSO π
proc(5), vmstat(8), crontab(5), logrotate(8), ClusterTools2(7)
π COPYRIGHT π
(c) 2011-2019 L.Pinne, Germany.
meminfolog comes with ABSOLUTELY NO WARRANTY. π«Ά
For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html
ok that's the whole page bestie, go timestamp some meminfo π β¨
kisses, this edition dropped 01 Nov 2019 β from the ClusterTools2 source, page meminfolog(8). byeee ππ
π¦ where this page comes from
- opensuse-leap 16.0: ClusterTools2 3.1.3-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms