mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
systemd: journald: more tweaks to make rpi/atv happy
This commit is contained in:
parent
0be5e72e57
commit
0249df9500
@ -118,9 +118,10 @@ post_makeinstall_target() {
|
||||
# tune journald.conf
|
||||
sed -e "s,^.*Compress=.*$,Compress=no,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*SplitMode=.*$,SplitMode=none,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*MaxRetentionSec=.*$,MaxRetentionSec=1week,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*MaxRetentionSec=.*$,MaxRetentionSec=1day,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*RuntimeMaxUse=.*$,RuntimeMaxUse=2M,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*SystemMaxUse=.*$,SystemMaxUse=20M,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*RuntimeMaxFileSize=.*$,RuntimeMaxFileSize=128K,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
sed -e "s,^.*SystemMaxUse=.*$,SystemMaxUse=10M,g" -i $INSTALL/etc/systemd/journald.conf
|
||||
|
||||
# replace systemd-machine-id-setup with ours
|
||||
mkdir -p $INSTALL/bin
|
||||
|
@ -0,0 +1,31 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user