summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-04-30 12:48:11 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-03 17:46:44 +0200
commit8621b1109b0bbe097f2b3bfce2211fe8474c567b (patch)
tree917317e3021ad85868491e22874563aa3e9b84f7 /src/journal/journal-file.c
parentcore: bump simultaneous bus connection limit to 512 (diff)
downloadsystemd-8621b1109b0bbe097f2b3bfce2211fe8474c567b.tar.xz
systemd-8621b1109b0bbe097f2b3bfce2211fe8474c567b.zip
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.
Diffstat (limited to '')
-rw-r--r--src/journal/journal-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 876224dc9f..f0be24c85c 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;