[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Tue Jan 31 11:39:01 PST 2012


 src/journal/journal-file.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit be19b7df6ebe9cc521e929c5de2fe74ef84f7f80
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Jan 31 20:35:07 2012 +0100

    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 59ad84e..20ca3f6 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)



More information about the systemd-commits mailing list