jaegeuk / f2fs-tools

Other
40 stars 31 forks source link

In some cases, fsck.f2fs takes very long time > 90s, how to improve ? #23

Open rockcarry opened 9 months ago

rockcarry commented 9 months ago

Test condition: Allwinner A133 Android 10 tablet.

Steps to reproduce:

  1. create 20GB file on data partition: belsito:/data # dd if=/dev/urandom of=/data/test.bin bs=1k count=20m 20971520+0 records in 20971520+0 records out 21474836480 bytes (20 G) copied, 679.607325 s, 30 M/s
  2. create 500MB file on data partition: dd if=/dev/urandom of=/data/test2.bin bs=1k count=500k don't wait this command finish, open another adb shell, type command: reboot # this makes device reboot
  3. after reboot fsck.f2fs found data corruption, and took very long time >90s to finish check:

image

rockcarry commented 9 months ago

Is any way to improve to reduce the check time ?