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)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:56:19 +0000 (15:56 -0400)
commit56b4b2e9dbfa168f7fae625014ceab550a8fb41e
tree4a551267c1c182e7f54d9dc6944635e0018565c6
parentebad196c438a8650bf06268ba08914b000231571
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