HN 用户提问:希望 Linux tmpfs 支持压缩选项
1 分•作者: gry_gh•6 个月前
我运行着大量非特权容器,容器内的应用程序会创建大量的临时文件。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 /tmp”.<p>Why has tmpfs never gotten an official compression feature?