3 ms·
Nowadays linux has this thing called zram disk. It compresses data in memory on the fly. I think general swapping advice would serve most people better if they
by zzzcpan 9y ago
Nowadays linux has this thing called zram disk. It compresses data in memory on the fly. I think general swapping advice would serve most people better if they always add swap on zram first, before swap on ssd or hdd. The difference is that getting data in and out of zram is so fast that you can actually use it as a tier of a slower ram, transparently compressed.
- warrenm 9y agoNot exactly helpful. Swap is vital in modern systems: https://news.ycombinator.com/item?id=15952447 https://news.ycombinator.com/item?id=15952447
- therealmarv 9y agois this activated per default today? Last information I've got from Ubuntu 16.04 times is that it is not activated by default. I know that macOS and Windows do similar to this by default.
- zzzcpan 9y agoSome systems have it activated by default, on ubuntu it was a matter of installing a package zram-config with default configuration.
- detaro 9y agoDistro-dependent. I think at least some distros for lightweight desktop systems and ChromeOS use it by default, RedHat trusts it enough to officially support it, but I don't think any of the major distros has it on by default.
- LinuxBender 9y agozram is cool, but still considered experimental. Even zswap is still fairly young. I have used both on my own systems. zswap is much easier to conifg.