Ask HN: Wish Linux tmpfs support compression option

2 points by gry_gh ↗ HN
I run lots of unprivileged containers, and apps inside create tons of temporary files. tmpfs is perfect for this (easy to mount in unprivileged containers). Adding a compression feature would help a lot.

zram needs root to manage. mkfs.btrfs setup feels way too heavy for what is basically “compressed /tmp”.

Why has tmpfs never gotten an official compression feature?

1 comment

[ 3.1 ms ] story [ 14.2 ms ] thread
I would guess its because it is an vital system. Initrd depends on it, a lot of paths are backed by tmpfs, ... An error in that subsystem could make it unbootable