]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: reduce minimum journal file size to 512 KiB 1796/head
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 6 Nov 2015 10:32:34 +0000 (11:32 +0100)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 6 Nov 2015 11:10:34 +0000 (12:10 +0100)
For low end embedded systems 4 MiB for each journal file is a lot of
memory. Journald will use at least 512 KiB even if JOURNAL_FILE_SIZE_MIN is
set to less than that so just use 512 KiB.

src/journal/journal-file.c

index e00a0d711d8aada410c855e5c15451d05648f7dd..f9ff9545dddd7493e500ff32b2060ff53bfa3a7a 100644 (file)
@@ -48,7 +48,7 @@
 #define COMPRESSION_SIZE_THRESHOLD (512ULL)
 
 /* This is the minimum journal file size */
-#define JOURNAL_FILE_SIZE_MIN (4ULL*1024ULL*1024ULL)           /* 4 MiB */
+#define JOURNAL_FILE_SIZE_MIN (512ULL*1024ULL)                 /* 512 KiB */
 
 /* These are the lower and upper bounds if we deduce the max_use value
  * from the file system size */