]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journald-server.h
journal: rework vacuuming logic
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2015 21:21:59 +0000 (23:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2015 21:21:59 +0000 (23:21 +0200)
commit8580d1f73db36e9383e674e388b4fb55828c0c66
tree10bc3a9d7bd0f27a7df2b2d32558431ecbae6737
parent0fb398316c6705dfc168733361650fdb6824896d
journal: rework vacuuming logic

Implement a maximum limit on number of journal files to keep around.
Enforcing a limit is useful on this since our performance when viewing
pays a heavy penalty for each journal file to interleve. This setting is
turned on now by default, and set to 100.

Also, actully implement what 348ced909724a1331b85d57aede80a102a00e428
promised: use whatever we find on disk at startup as lower bound on how
much disk space we can use. That commit introduced some provisions to
implement this, but actually never did.

This also adds "journalctl --vacuum-files=" to vacuum files on disk by
their number explicitly.
14 files changed:
man/journalctl.xml
man/journald.conf.xml
src/journal/journal-file.c
src/journal/journal-file.h
src/journal/journal-vacuum.c
src/journal/journal-vacuum.h
src/journal/journalctl.c
src/journal/journald-gperf.gperf
src/journal/journald-server.c
src/journal/journald-server.h
src/journal/journald.c
src/journal/journald.conf
src/journal/test-journal-interleaving.c
src/journal/test-journal.c