:: [DNG] use zram for /tmp - how?
Top Page
Delete this message
Reply to this message
Author: emninger
Date:  
To: dng
Subject: [DNG] use zram for /tmp - how?
Anyone of you knows a way how to use zram for /tmp ?

(I inherited a sony_vaio with 16 gb of ram - which i never ever
will/could use, so i thought to use the excessive ram configuring zram).

For OpenRc there are scripts to utilize zram either/and for swap and/or
for tmp. They are looking like this:

-----
# /tmp - 2G
# If you use this, you should put zram-init into the boot runlevel,
# and services using /tmp should be in the default runlevel and/or have
# rc_need=zram-init in their /etc/conf.d/... file
type1=/tmp
flag1=ext4
size1=2048
opts1="strictatime,nosuid,nodev,noexec" # e.g. "relatime" or "noatime"
are also reasonable choices mode1=1777
owgr1= # No reason to change the default "root:root"
notr1= # keep the default on linux-3.15 or newer
maxs1=4
algo1=lz4
-----

I did not find anything for debian. Only zram for swap like here
(https://wiki.debian.org/ZRam) and here
(http://forum.linuxvillage.org/index.php?topic=92.0)

Thanks a lot in advance for any pointer.