journald Storage Budget Planner
Turn a filesystem size, a free-space figure and a daily log volume into the [Journal] size limits for systemd-journald, and see how many days of logs they hold.
| SystemMaxUse | |
|---|---|
| SystemKeepFree | |
| Room above the reserve | |
| Largest journal file | |
| Files the limit needs | |
| Retention at this volume |
—
How journald scales RateLimitBurst with available space
| up to 1 MB | ×1 |
|---|---|
| up to 16 MB | ×2 |
| up to 256 MB | ×3 |
| up to 4 GB | ×4 |
| up to 64 GB | ×5 |
| up to 1 TB | ×6 |
The defaults are 10 % for the size limit and 15 % for the KeepFree reserve, each capped at 4 GiB; journald honours both and uses the smaller, so a filesystem can be too full for the journal to reach its limit. The largest file defaults to one eighth of the limit, capped at 128 MiB, which is why a 4 GiB budget is kept in 32 files. Only archived files are deleted when journald vacuums, so a journal can sit above its limit until the active file rotates, and compression is on by default, so the days printed here are a floor rather than a ceiling. Sizes are written to whole MiB. systemd-journald reads this file at start-up, so a change takes effect on a restart of the service. Everything is computed in your browser; nothing is sent anywhere else.