[RFC PATCH] procd: don't let the user choose to mount /tmp on zram

Rui Salvaterra rsalvaterra at gmail.com
Mon Jun 29 13:53:23 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 [1]. 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.

[1] https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt

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 5647a47326..8553b4e304 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -82,7 +82,6 @@ config PROCD_SHOW_BOOT
 	default n
-	prompt "Mount /tmp using zram."

More information about the openwrt-devel mailing list