On Mon, Jan 11, 2021 at 9:55 PM ElXreno <elxreno(a)gmail.com> wrote:
I apologize for the possible duplicate message, the past didn't show up
for reasons I don't understand.
I think it's a bad idea. It is better to make `zram-fraction` equal to
0.8 or 0.9, but not 1.0.
For example, if you run Darktable, load a floating-point TIFF image into
it, and try to export it, on systems with little RAM, it will fill both
RAM itself and zram, and cause the system to freeze completely because
the memory is almost incompressible.
Also, other data (video editors, for example) which are not compressible
can get into RAM.
Different question: This sounds like you're handling data that won't
fit into RAM+Swap anyway, using zram isn't going to help (or hurt),
because with or without compression, your data just doesn't fit in
memory.
What does the maximum fraction of zram have to do with that? Either
way, this sounds like you just don't have enough physical RAM for your
workload. In that case, adding physical swap (on disk) is probably the
only way to make that work (other than buying more RAM).
Fabio