Files
Arch-R/packages/sysutils/systemd/patches/systemd-05_journald-decrease-limits.patch
2013-11-30 13:32:50 +02:00

32 lines
1.2 KiB
Diff

From 1550bc60a53e4812723db5d7a8aefa825d4e9c78 Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Sat, 30 Nov 2013 13:16:37 +0200
Subject: [PATCH] journald: decrease limits
reallly? I mean really?? y u no care about embedded / lowmem devices...
---
src/journal/journal-file.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 1236403..87dc1ae 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -44,11 +44,11 @@
#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 (128ULL*1024ULL) /* 128 K */
/* These are the lower and upper bounds if we deduce the max_use value
* from the file system size */
-#define DEFAULT_MAX_USE_LOWER (1ULL*1024ULL*1024ULL) /* 1 MiB */
+#define DEFAULT_MAX_USE_LOWER (512ULL*1024ULL) /* 512 K */
#define DEFAULT_MAX_USE_UPPER (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */
/* This is the upper bound if we deduce max_size from max_use */
--
1.7.2.5