chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8906b20
)
journal: increase compression threshold for objects from 64 to 512
author
Lennart Poettering
<lennart@poettering.net>
Tue, 31 Jan 2012 19:35:07 +0000
(20:35 +0100)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 59ad84e23b0eb54d31cd992410f4ae1555f6ffbf..20ca3f61cbd446bf10f8b6fbb318cc9b25160937 100644
(file)
--- 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 (
64
ULL)
+#define COMPRESSION_SIZE_THRESHOLD (
512
ULL)
/* This is the minimum journal file size */
#define JOURNAL_FILE_SIZE_MIN (64ULL*1024ULL)