diff options
author | Rui Salvaterra <rsalvaterra@gmail.com> | 2021-03-02 09:31:22 +0000 |
---|---|---|
committer | Rui Salvaterra <rsalvaterra@gmail.com> | 2021-03-14 12:24:15 +0000 |
commit | 02cadf67b23806b37ea71c0a16459876817b337b (patch) | |
tree | 6ad1ce39b1ad926881765cb930f57fb200edbd3a /modules | |
parent | aa439dbed7be369a9d6d3f9dd05c425cf363df32 (diff) |
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>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js index 2e087f5f4c..14a15052ea 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js @@ -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; |