From: Lennart Poettering Date: Tue, 31 Jan 2012 19:35:07 +0000 (+0100) Subject: journal: increase compression threshold for objects from 64 to 512 X-Git-Tag: v40~24 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be19b7df6ebe9cc521e929c5de2fe74ef84f7f80;p=systemd journal: increase compression threshold for objects from 64 to 512 Apparently the perfomance price for compression is to steep to apply it for all objects >= 64 and < 512 in size, as measured by Arjan Van De Ven, hence increase the threshold to 512 which yields better results. --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 59ad84e2..20ca3f61 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -37,7 +37,7 @@ #define DEFAULT_WINDOW_SIZE (128ULL*1024ULL*1024ULL) -#define COMPRESSION_SIZE_THRESHOLD (64ULL) +#define COMPRESSION_SIZE_THRESHOLD (512ULL) /* This is the minimum journal file size */ #define JOURNAL_FILE_SIZE_MIN (64ULL*1024ULL)