[PATCH] procd: don't let the user choose to mount /tmp on zram
rsalvaterra at gmail.com
Sun Jul 12 13:42:49 EDT 2020
The /tmp directory is mounted as tmpfs. The tmpfs filesystem is backed by
anonymous memory, which means it can be swapped out at any time, if there is
memory pressure . For this reason, a zram swap device is a much better
choice than mounting /tmp on zram, since it's able to compress all anonymous
memory, and not just the memory assigned to /tmp. We already have the zram-swap
package for this specific purpose, which means procd's tmp-on-zram is both
redundant and more limited.
For the time being, don't allow the user to select this feature. Follow-up
patches will remove procd tmp-on-zram support altogether.
Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
package/system/procd/Makefile | 1 -
1 file changed, 1 deletion(-)
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 3b88c76144..78b2450a04 100644
@@ -90,7 +90,6 @@ config PROCD_SHOW_BOOT
- prompt "Mount /tmp using zram."
More information about the openwrt-devel