From: Colin Guthrie Date: Tue, 30 Apr 2013 10:48:11 +0000 (+0100) Subject: journal: Set the default keep free value to 15% (up from 5%) X-Git-Tag: v203~26 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8621b1109b0bbe097f2b3bfce2211fe8474c567b journal: Set the default keep free value to 15% (up from 5%) As some SSDs are still seeing performance degredation when reaching 85% usage the default value of 5% seems a little low. Set this to 15% by default. --- diff --git a/man/journald.conf.xml b/man/journald.conf.xml index 0b9de65fe..6d54c94b5 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -246,7 +246,7 @@ configured in SystemMaxUse= and RuntimeMaxUse= is - available. Defaults to 5% of the size + available. Defaults to 15% of the size of the respective file system. SystemMaxFileSize= and diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 876224dc9..f0be24c85 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2769,7 +2769,7 @@ void journal_default_metrics(JournalMetrics *m, int fd) { if (m->keep_free == (uint64_t) -1) { if (fs_size > 0) { - m->keep_free = PAGE_ALIGN(fs_size / 20); /* 5% of file system size */ + m->keep_free = PAGE_ALIGN(fs_size * 3 / 20); /* 15% of file system size */ if (m->keep_free > DEFAULT_KEEP_FREE_UPPER) m->keep_free = DEFAULT_KEEP_FREE_UPPER;