CachyOS / CachyOS-Settings

Settings used for CachyOS
GNU General Public License v3.0
91 stars 22 forks source link

Update zram-generator.conf to use LZ4 #36

Closed rialpa84 closed 9 months ago

rialpa84 commented 12 months ago

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.

ventureoo commented 12 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.

rialpa84 commented 12 months ago

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.