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: RuntimeMaxUse in journald.conf limits a journal that lives in memory

Linux
~/tips/tip-journalctl-runtime-max-use-memory

[Journal]

Caps the size of the in-memory journal, which matters on small machines such as a Raspberry Pi.

When logs are stored in memory, they eat RAM, and a small machine feels it first.

The settings with a Runtime prefix apply to the journal under /run/log/journal, which is the in-memory one. RuntimeMaxUse= sets how much space it may take. The System counterparts apply to /var/log/journal once persistent storage is on.

[Journal]
RuntimeMaxUse=50M

Which pair of settings is used depends on where the journal currently lives, so setting only the System limits changes nothing on a machine that logs to memory.

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