]> err.no Git - systemd/commitdiff
journal: increase compression threshold for objects from 64 to 512
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Jan 2012 19:35:07 +0000 (20:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 31 Jan 2012 19:38:53 +0000 (20:38 +0100)
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.

src/journal/journal-file.c

index 59ad84e23b0eb54d31cd992410f4ae1555f6ffbf..20ca3f61cbd446bf10f8b6fbb318cc9b25160937 100644 (file)
@@ -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)