Skip to content

Commit

Permalink
Update conf.d comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Jun 7, 2020
1 parent 16da995 commit 52e4424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for zram-init:

*zram-init-10.2:
Martin Väth <martin at mvath.de>:
- Yet another docu fix: update conf.d comments

*zram-init-10.1:
Mattéo Rossillol‑‑Laruelle <beatussum at protonmail.com>:
- Fixes in docu
Expand Down
6 changes: 4 additions & 2 deletions openrc/conf.d/zram-init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52e4424

Please sign in to comment.