luci-mod-system/zram: replace deflate with zstd
Deflate is just too slow for zram. Replace it with zstd, which is much faster at similar compression ratios. As a side note, this is an ugly hack. We're hard-coding compression algorithms which might not be available in the system. The availability should be parsed from /sys/block/zram0/comp_algorithm. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
This commit is contained in:
parent
aa439dbed7
commit
02cadf67b2
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ return view.extend({
|
|||
o.default = 'lzo';
|
||||
o.value('lzo', 'lzo');
|
||||
o.value('lz4', 'lz4');
|
||||
o.value('deflate', 'deflate');
|
||||
o.value('zstd', 'zstd');
|
||||
|
||||
o = s.taboption('zram', form.Value, 'zram_comp_streams', _('ZRam Compression Streams'), _('Number of parallel threads used for compression'));
|
||||
o.optional = true;
|
||||
|
|
Loading…
Reference in a new issue