TheWoozy

joined 1 year ago
[–] TheWoozy@lemmy.dbzer0.com 71 points 1 year ago (1 children)

The rats are beginning to turn on each other. This is good.

[–] TheWoozy@lemmy.dbzer0.com 6 points 1 year ago

I used zram + swap for years. I dedicated 25% of my memory to zram. The problem is that zram would get filled with infrequently used data, and disk swap would get the frequently used data. Once that happens everything slows down.

Zswap tries to fix that be creating a compressed swap buffer in memory. Older/less used data will get written to disk, but fresh/frequently used data will stay in the compressed ram buffer. That's my understanding, at least. I don't remember how to query Zswap usage stats.

[–] TheWoozy@lemmy.dbzer0.com 2 points 1 year ago

It's a compressed ram disk (virtual block device) that is often used for swap.