News for hackers. Stuff that matters.
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.