mystilleef / FedoraZram

Scripts that enable zram for Fedora
73 stars 48 forks source link

Support new, faster lz4 compression in 3.15 kernel #10

Closed binarybana closed 9 years ago

binarybana commented 10 years ago

By writing to /sys/block/zram$i/comp_algorithm, ZRAM can be made to use the faster lz4 compression algorithm (if available).

Right now I've just put a line: echo lz4 > /sys/block/zram$i/comp_algorithm

in the first line of the last for loop in zramstart, but since this is compilation dependent, then I'm not sure how this change could/should best be made. But I figured I would document my changes here for anyone interested.

mystilleef commented 10 years ago

I don't think the latest default Fedora Kernel is compiled with the lz4 option. At least it doesn't work for me. lzo the default seems to be good enough.

On Mon, Jul 14, 2014 at 12:28 AM, Jason Knight notifications@github.com wrote:

By writing to /sys/block/zram$i/comp_algorithm, ZRAM can be made to use the faster lz4 compression algorithm (if available).

Right now I've just put a line: echo lz4 > /sys/block/zram$i/comp_algorithm

in the first line of the last for loop in zramstart, but since this is compilation dependent, then I'm not sure how this change could/should best be made. But I figured I would document my changes here for anyone interested.

— Reply to this email directly or view it on GitHub https://github.com/mystilleef/FedoraZram/issues/10.

Hubbitus commented 9 years ago

My kernels compiled for Fedora with lz4 support. So it will be cool see it used. Thanks.