News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by taegee on Thursday November 19, 2026 @04:17PM (#50566510)
Exactly. It defaults to lz4 but zstd gives quite a bit more compression.

Unfortunately AFAIK there is no way to query the current settings. You just write zstd(level=2) into some config file and hope for the best …

Re:Do not buy RAM, compress by el_isma on Thursday November 19, 2026 @06:13PM (#50567918)
sudo cat /sys/kernel/debug/zswap/stored_pages

sudo cat /sys/kernel/debug/zswap/pool_total_size

getconf PAGESIZE

ratio = (stored pages * PAGESIZE) / pool total size

I have 3.6 right now

Re:Do not buy RAM, compress by taegee on Friday November 20, 2026 @01:08PM (#50579202)
I was talking about zram and I didn't mean the compression ratio but the compression level used by the algorithm (2 in my example).

Sorry for the confusion.

Re:Do not buy RAM, compress by impact123 on Friday November 20, 2026 @05:15AM (#50572619)
Re:Do not buy RAM, compress by taegee on Friday November 20, 2026 @01:07PM (#50579175)
I was talking about zram.