Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

You should read the documentation first: https://www.kernel.org/doc/html/latest/admin-guide/mm/zswap.html

Basically, zswap reserves 20% of your memory by default for compressed cache. Using a type of LRU algorithm, pages can be pushed to the backing swap device if the memory pool reserved is fully saturated. This means your zram setup is probably fine, but your zram devices will tend to get receive pages that are statistically unlikely to be read again.

The part about double compression is not quite right. If pages came from the compressed cache as a result of eviction, they'll be decompressed then recompressed by zram. If the pages skipped the compression pool in zswap, then they're comp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cuteistfox
Comment options

Answer selected by Cuteistfox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants