Comment 6 for bug 933712

Revision history for this message
Adam Conrad (adconrad) wrote :

To elaborate on Oli's "no known drawbacks" comment, I think it's clear that some people don't understand how zram works. While you're telling it that you can use up to 50% of your RAM for compressed swap, that doesn't actually kick in until you run out of RAM, precisely the point where you'd normally be hitting disk for swap instead.

So, if you only ever commit 3.9G on a 4G system, zram does essentially nothing. If you overcommit, it'll start swapping from ram to zram and eating memory, but this all happens so much faster than you can swap to disk that I have yet to see it be a bad thing (in fact, I've been arguing for a while that we should just enable zram on all machines, regardless of configuration).