Debunking zswap and zram myths

38 points by javierhonduco


hayalci

There is no link but this seems to be the article referred in the quote. https://chrisdown.name/2018/01/02/in-defence-of-swap.html

Lt_Riza_Hawkeye

What a surprise to find out cdown has a blog. I accidentally paged Chris as an intern at Meta in 2019, there was a wiki article telling you to run the IRC command !chirp cdown test (Chris was on webfoundation at the time) to test out sending a page. It was 9pm his time, and he was kind enough to get online, explain what I had done, and update the wiki page to show the current employee's username instead of his.

LeahNeukirchen

I ran both zram and zswap for some time without issues, but after some updates it frequently locked up in OOM situations. I disabled zram for now and set

echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms

This seems to make the OOM trigger fine again.

singpolyma

In current year I'm obviously not using a disk swap at all, yet it sort of sounds like zswap would be architecturally preferable? Could I use zswap in front of a small ramdisk? Or should I stick with zram