zram-swap: Add zram compaction and statistics info output
authorEmil Muratov <gpm@hotplug.ru>
Wed, 31 Oct 2018 21:16:58 +0000 (00:16 +0300)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:24:36 +0000 (13:24 +0200)
commit86735992c8afa34393aade4e0e03d2a40b8497f2
tree9841c1126dbb237a5e1accc4026d9de30d5ec592
parent7580357dc0ab001c7f2a3f6f2a63e0780dc5814b
zram-swap: Add zram compaction and statistics info output

Executing '/etc/init.d/zram start' during runtime (with a swap being already
mounted) triggers zram device compaction and prints out nice stats info about
zram memory usage

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [use IEC's MiB unit]
(cherry picked from commit b062c90f47dd0745562a8f2618c2a43136a4c7e1)
package/system/zram-swap/Makefile
package/system/zram-swap/files/zram.init