zram-swap: Add "max compression streams" configuration option
authorEmil Muratov <[email protected]>
Wed, 1 Aug 2018 22:05:14 +0000 (01:05 +0300)
committerJo-Philipp Wich <[email protected]>
Tue, 18 Dec 2018 16:22:05 +0000 (17:22 +0100)
commit24326581281361f0d66f8bd40ac4c598d16fbc4b
tree9093cc68fb53f80da0b00baa8cff6011df96d47b
parent2d4b52707dd6892a1d42a3aced04ebec76cf9b52
zram-swap: Add "max compression streams" configuration option

Config option to limit maximum compression streams per zram dev for
multicore CPU's. This could be defined via 'zram_comp_streams' option in
the 'system' section of '/etc/config/system' file or via cli (for e.x.
with 'uci set system.@System[0].zram_comp_streams=2 && uci commit
system'). Default is number of logical CPU cores.

Signed-off-by: Emil Muratov <[email protected]>
(backported from 70d3ffb47fcef901e4d86da4c9077ba8b8e2ba10)
package/system/zram-swap/files/zram.init