3 ms·
Almost Always Add Swap Space
- 1_player 5y agoDon't forget Part 2: https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram/ https://haydenjames.io/linux-performance-almost-always-add-s... zram is cool, and I've noticed Fedora uses it out of the box. Much better than regular swap space on a disk. https://wiki.archlinux.org/title/Improving_performance#zram_or_zswap https://wiki.archlinux.org/title/Improving_performance#zram_... Interestingly, my 64GB desktop has 50GB available between free and caches, yet has 95MB of swap space used (out of 8GB zram). How can I tell which process is swapped out? Probably something which I haven't ever needed since I've booted the PC.
- redis_mlc 5y agoSome services expect to find swap enabled but normally don't use it (like mysql around 2010), so I wouldn't worry about the 95 MB. But you can take a look at the smem command: smem -s swap -r https://www.cyberciti.biz/faq/linux-which-process-is-using-swap/ https://www.cyberciti.biz/faq/linux-which-process-is-using-s...
- zadwang 5y agoModern software are just ridiculously hungry for memory that even many GB is not enough. This is just bad considering that we used to work with only GB of disk. I wish all software designs are frugal in resources.