ecdye / zram-config

A complete zram-config utility for swap, directories, and logs to reduce SD, NAND and eMMC block wear.
MIT License
412 stars 53 forks source link

It doesn't sync on Ubuntu x86_64. #46

Closed yutayu closed 3 years ago

yutayu commented 3 years ago

$ uname -r 5.4.0-52-generic

Are there any suggestions?

yutayu commented 3 years ago

dir lzo-rle 128M 256M /home/ippan /ippan.bind I tried zstd,lz4,lzo .

yutayu commented 3 years ago

[ 12.419770] zram: Added device: zram0 [ 12.422130] zram0: detected capacity change from 0 to 2147483648 [ 12.512014] Adding 2097148k swap on /dev/zram0. Priority:75 extents:1 across:2097148k SSFS [ 13.133959] zram: Added device: zram1 [ 13.134625] zram1: detected capacity change from 0 to 268435456 [ 13.475665] EXT4-fs (zram1): mounted filesystem with ordered data mode. Opts: errors=remount-ro,commit=60 [ 13.475674] ext4 filesystem being mounted at /opt/zram/zram1 supports timestamps until 2038 (0x7fffffff) [ 14.249769] zram: Added device: zram2 [ 14.251735] zram2: detected capacity change from 0 to 33554432 [ 14.259329] EXT4-fs (zram2): mounted filesystem with ordered data mode. Opts: errors=remount-ro,commit=60 [ 14.259338] ext4 filesystem being mounted at /opt/zram/zram2 supports timestamps until 2038 (0x7fffffff)

yutayu commented 3 years ago

10月 31 18:14:18 ippan-Express5800-S70-N8100-9023 systemd[1]: Stopping zram-config... 10月 31 18:14:18 ippan-Express5800-S70-N8100-9023 zram-config[2168]: grep: /boot/cmdline.txt: No such file or directory 10月 31 18:14:18 ippan-Express5800-S70-N8100-9023 zram-config[2176]: umount: /home/ippan: target is busy. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[822]: dev-zram0.swap: Succeeded. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: dev-zram0.swap: Succeeded. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Deactivated swap /dev/zram0. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 kernel: zram: Removed device: zram0 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: zram-config.service: Succeeded. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Stopped zram-config. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounting /opt/zram/ippan.bind... 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounting /opt/zram/zram1... 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: opt-zram-ippan.bind.mount: Succeeded. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounted /opt/zram/ippan.bind. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: opt-zram-zram1.mount: Succeeded. 10月 31 18:14:19 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounted /opt/zram/zram1. 10月 31 18:14:43 ippan-Express5800-S70-N8100-9023 systemd[1]: Starting zram-config... 10月 31 18:14:43 ippan-Express5800-S70-N8100-9023 zram-config[524]: grep: /boot/cmdline.txt: No such file or directory 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 zram-config[540]: grep: /tmp/zram-device-list: No such file or directory 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 zram-config[541]: mv: cannot stat '/tmp/zram-device-list.new': No such file or directory 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 kernel: zram: Added device: zram0 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 kernel: zram0: detected capacity change from 0 to 2147483648 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 kernel: Adding 2097148k swap on /dev/zram0. Priority:75 extents:1 across:2097148k SSFS 10月 31 18:14:44 ippan-Express5800-S70-N8100-9023 zram-config[611]: mv: cannot stat '/tmp/zram-device-list.new': No such file or directory 10月 31 18:14:45 ippan-Express5800-S70-N8100-9023 zram-config[614]: stat: cannot stat 'stat': No such file or directory 10月 31 18:14:45 ippan-Express5800-S70-N8100-9023 zram-config[621]: stat: cannot stat 'stat': No such file or directory 10月 31 18:14:45 ippan-Express5800-S70-N8100-9023 zram-config[622]: stat: cannot stat 'stat': No such file or directory 10月 31 18:14:45 ippan-Express5800-S70-N8100-9023 kernel: zram: Added device: zram1 10月 31 18:14:45 ippan-Express5800-S70-N8100-9023 kernel: zram1: detected capacity change from 0 to 268435456 10月 31 18:14:46 ippan-Express5800-S70-N8100-9023 kernel: EXT4-fs (zram1): mounted filesystem with ordered data mode. Opts: errors=remount-ro,commit=60 10月 31 18:14:46 ippan-Express5800-S70-N8100-9023 kernel: ext4 filesystem being mounted at /opt/zram/zram1 supports timestamps until 2038 (0x7fffffff) 10月 31 18:14:46 ippan-Express5800-S70-N8100-9023 systemd[1]: Finished zram-config. 10月 31 18:19:08 ippan-Express5800-S70-N8100-9023 systemd[1]: Stopping zram-config... 10月 31 18:19:08 ippan-Express5800-S70-N8100-9023 zram-config[2106]: grep: /boot/cmdline.txt: No such file or directory 10月 31 18:19:08 ippan-Express5800-S70-N8100-9023 zram-config[2138]: umount: /home/ippan: target is busy. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: dev-zram0.swap: Succeeded. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Deactivated swap /dev/zram0. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 kernel: zram: Removed device: zram0 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: zram-config.service: Succeeded. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Stopped zram-config. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounting /opt/zram/ippan.bind... 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounting /opt/zram/zram1... 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: opt-zram-ippan.bind.mount: Succeeded. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounted /opt/zram/ippan.bind. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: opt-zram-zram1.mount: Succeeded. 10月 31 18:19:09 ippan-Express5800-S70-N8100-9023 systemd[1]: Unmounted /opt/zram/zram1. 10月 31 18:19:33 ippan-Express5800-S70-N8100-9023 systemd[1]: Starting zram-config... 10月 31 18:19:34 ippan-Express5800-S70-N8100-9023 zram-config[591]: grep: /boot/cmdline.txt: No such file or directory 10月 31 18:19:34 ippan-Express5800-S70-N8100-9023 zram-config[637]: grep: /tmp/zram-device-list: No such file or directory 10月 31 18:19:35 ippan-Express5800-S70-N8100-9023 zram-config[638]: mv: cannot stat '/tmp/zram-device-list.new': No such file or directory 10月 31 18:19:35 ippan-Express5800-S70-N8100-9023 kernel: zram: Added device: zram0 10月 31 18:19:35 ippan-Express5800-S70-N8100-9023 kernel: zram0: detected capacity change from 0 to 2147483648 10月 31 18:19:35 ippan-Express5800-S70-N8100-9023 kernel: Adding 2097148k swap on /dev/zram0. Priority:75 extents:1 across:2097148k SSFS 10月 31 18:19:35 ippan-Express5800-S70-N8100-9023 zram-config[650]: mv: cannot stat '/tmp/zram-device-list.new': No such file or directory 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 zram-config[661]: stat: cannot stat 'stat': No such file or directory 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 zram-config[662]: stat: cannot stat 'stat': No such file or directory 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 zram-config[663]: stat: cannot stat 'stat': No such file or directory 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 kernel: zram: Added device: zram1 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 kernel: zram1: detected capacity change from 0 to 268435456 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 kernel: EXT4-fs (zram1): mounted filesystem with ordered data mode. Opts: errors=remount-ro,commit=60 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 kernel: ext4 filesystem being mounted at /opt/zram/zram1 supports timestamps until 2038 (0x7fffffff) 10月 31 18:19:36 ippan-Express5800-S70-N8100-9023 systemd[1]: Finished zram-config.

yutayu commented 3 years ago

It seems target is busy is strange.

yutayu commented 3 years ago

Oct 31 19:42:18 raspberrypi kernel: [ 1317.592427] zram: Removed device: zram1 Oct 31 19:42:18 raspberrypi kernel: [ 1317.794058] zram: Removed device: zram0

My pi shows only two lines when I shutdown pi.