Comment 1 for bug 1095154

Revision history for this message
Steve Langasek (vorlon) wrote :

Hi Mélodie,

It's not true that "the ZRAM swap device will be used only if needed." The zram swap device must be pre-allocated, and (of course) takes away from system memory. If the total memory needed by the live system is less than the amount of physical ram, but more than ($physical_ram - $zram_size), enabling zram will result in a performance penalty for memory access because of the added overhead of compression.

So it's by design that we only enable zram in cases where we know we need more RAM than we have available, and when we know we won't have swap.