Skip to content

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

@rockcarry

Description

@rockcarry

Test condition:
Allwinner A133 Android 10 tablet.

  • Data partition is formated to f2fs.
  • fsck enabled during android boot
  • 32GB emmc flash, and data partition size is 28GB+

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions