meminfolog(8)

πŸ“¦ version 3.1.3, in opensuse-leap 16.0

✨ 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)


(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