by taegee · 2w ago · 0 comments
Unfortunately AFAIK there is no way to query the current compression level. You just write zstd(level=2) into some config file and hope for the best …
sudo cat /sys/kernel/debug/zswap/pool_total_size
getconf PAGESIZE
ratio = (stored pages * PAGESIZE) / pool total size
I have 3.6 right now
Sorry for the confusion.