From 52e4424227c78e0216dc14834d10c18d4a7ffa4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Sun, 7 Jun 2020 06:20:27 +0200 Subject: [PATCH] Update conf.d comments --- ChangeLog | 4 ++++ openrc/conf.d/zram-init | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 98b6519..072ff05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ # ChangeLog for zram-init: +*zram-init-10.2: + Martin Väth : + - Yet another docu fix: update conf.d comments + *zram-init-10.1: Mattéo Rossillol‑‑Laruelle : - Fixes in docu diff --git a/openrc/conf.d/zram-init b/openrc/conf.d/zram-init index 0345d13..f291d3c 100644 --- a/openrc/conf.d/zram-init +++ b/openrc/conf.d/zram-init @@ -51,10 +51,11 @@ num_devices=2 # # Only variables with numbers 0 ... num_devices-1 are used by the script. -# swap - 500M +# swap - 500M (or a fourth of available memory if uncommenting) type0=swap flag0= # The default "16383" is fine for us -size0=`LC_ALL=C free -m | awk '/^Mem:/{print int($2/2)}'` +size0=512 +#size0=`LC_ALL=C free -m | awk '/^Mem:/{print int($2/4)}'` mlim0= # no hard memory limit back0= # no backup device icmp0= # no incompressible page writing to backup device @@ -110,6 +111,7 @@ uuid2= args2= # Artificial example with btrfs +# (Not actually used here: variables are overridden afterwards by other values) type3=- # Only format the filesystem but actually do not mount it flag3=btrfs size3=1024