Closed rialpa84 closed 9 months ago
I'm sorry, but that's not quite right. LZ4 is used as a second, secondary page compression algorithm, not as the main one. We still prefer to use zstd.
May I ask why Zstd-3 is the default?
It's slower than LZ4 for write speeds and if a person has a lot of memory, 64GB in my case, then the default 16GB allotted towards Zram using Zstd-3 for a higher compression ratio is moot and unnecessary. If a person has 8GB of ram, sure, Zstd is great to assist a 2GB Zram, but when you have a lot of ram the higher write performance of LZ4 should take precedence.
LZ4 is what is configured to be used in /etc/udev/rules.d/30-zram.rules so this is just to sync up with that.