问HN:希望Linux的tmpfs支持压缩选项

1作者: gry_gh大约 2 个月前原帖
我运行了很多无特权的容器,里面的应用程序会生成大量临时文件。tmpfs 对此非常合适(在无特权容器中容易挂载)。如果能增加一个压缩功能,那将会有很大帮助。<p>zram 需要 root 权限来管理。mkfs.btrfs 的设置对于基本上是“压缩的 /tmp”来说显得过于繁重。<p>为什么 tmpfs 从未获得过官方的压缩功能?
查看原文
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.<p>zram needs root to manage. mkfs.btrfs setup feels way too heavy for what is basically “compressed &#x2F;tmp”.<p>Why has tmpfs never gotten an official compression feature?