zram-config: Write-error on swap-device

Running Raspian Buster on a RPi4 4GB.

Zram-config works brilliantly until one or two days of uptime, when dmesg gets flooded with “write-error on swap-devices”. Here’s a sample of the last few lines:

[101734.099250] Write-error on swap-device (254:0:1134984) [101734.099300] Write-error on swap-device (254:0:1135016) [101734.099420] Write-error on swap-device (254:0:1135088) [101734.099473] Write-error on swap-device (254:0:1135104) [101734.099526] Write-error on swap-device (254:0:1135120) [101734.099577] Write-error on swap-device (254:0:1135136) [101734.099631] Write-error on swap-device (254:0:1135152) [101734.101754] Write-error on swap-device (254:0:1135448) [101734.339315] systemd-journald[119]: /dev/kmsg buffer overrun, some messages l ost. [101734.794086] oom_reaper: reaped process 581 (rclone), now anon-rss:0kB, file- rss:0kB, shmem-rss:0kB

I’m using the following (although default settings show the same error):

NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT /dev/zram1 lz4 450M 427.3M 92M 96.2M 4 /opt/zram/zram1 /dev/zram0 lz4 1.5G 271.7M 124.3M 128.5M 4 [SWAP] I have deactivated the swap and am only using zram.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 46 (15 by maintainers)

Most upvoted comments

and I should make post and no spam anymore 😛

@StuartIanNaylor Okay. I think that you did great job some japanese rely on your script. 😃

@StuartIanNaylor I agree with you. and I leave it a while.

No.Several error with zram is reported.

MEM_FACTOR=50 seems good.