No success. I found no setting for zram that improved performance. I tried lz4 and zstd algorithms and different sizes of the zram but seems to work better without zram for some reason. zram was able to cram a lot of into RAM, compression ratio was between 3 and 5 so normal swap was barely used at all, but "system" cpu usage got higher (because all compression/decompression?).
Tried lowering swappiness and increasing vfs_cache_pressure but that I think made performance worse.
Seems default settings have worked the best, how sad.
iostat -c on default settings:
avg-cpu: %user %nice %system %iowait %steal %idle
38.69 0.49 42.71 15.94 0.02 2.15
iostat -c with zram (zstd). iowait is lower but %system higher (and %user lower):
avg-cpu: %user %nice %system %iowait %steal %idle
12.33 0.17 83.96 2.83 0.01 0.70
(post is archived)