VR-25 / zram-swap-manager

A versatile zRAM swap manager with dynamic swappiness - for Android and GNU/Linux systems.
GNU General Public License v3.0
183 stars 15 forks source link

defualt service arguments causing infinite boot.log #11

Open axet opened 9 months ago

axet commented 9 months ago

Default ./service.sh starts zram with following arguments '-dr' which causing infinite log spamming:

https://paste.debian.net/1306119/

65: '[' -x /data/adb/vr25/bin/swapoff ']'
65: >/dev/null 
65: which /data/adb/vr25/bin/swapoff
65: '[' -x /vendor/bin/swapoff ']'
66: eval /vendor/bin/swapoff /dev/block/zram0
66: /vendor/bin/swapoff /dev/block/zram0
66: echo '(i) Trying alternative: /vendor/bin/swapoff...'
(i) Trying alternative: /vendor/bin/swapoff...
65: '[' -x /system/bin/swapoff ']'
66: eval /system/bin/swapoff /dev/block/zram0
66: /system/bin/swapoff /dev/block/zram0
66: echo '(i) Trying alternative: /system/bin/swapoff...'
(i) Trying alternative: /system/bin/swapoff...
65: '[' -x /vendor/bin/swapoff ']'
66: eval /vendor/bin/swapoff /dev/block/zram0
66: /vendor/bin/swapoff /dev/block/zram0
66: echo '(i) Trying alternative: /vendor/bin/swapoff...'
(i) Trying alternative: /vendor/bin/swapoff...
65: '[' -x /sbin/swapoff ']'

'zsm -n' works tho..

EDIT: that why I recommend have 'sleep 1' in a loop scripts to prevent 100% CPU load and battery drain.