Hacker News new | ask | show | jobs
by el_isma 15 days ago
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

1 comments

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.