brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: SystemKeepFree in journald.conf leaves disk space for everything else

Linux
~/tips/tip-journalctl-system-keep-free-space

[Journal]

Tells journald to keep a minimum of disk space free, as a floor next to the size cap.

A size cap on the journal does not help much when the disk is small and shared with databases.

SystemKeepFree= tells journald how much disk space to leave free for other uses, while SystemMaxUse= limits what the journal may take. Used together they set a floor and a ceiling, and journald honours whichever bites first.

[Journal]
SystemKeepFree=2G

Both are read on the persistent file system under /var/log/journal. Restart systemd-journald after a change and check the result with journalctl --disk-usage.

Further reading: journald.conf(5) manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link