Mehdi Akiki

Posts tagged "reliability"

  • Published on

    Investigation · Part 7 of 20 · What survives a crash

    Building a Tiny Crash Simulator From strace Output

    kill -9 could not tell a save with fsync from a save without it. So I wrote a small Python simulator that replays the strace output of a program and lists what a machine crash could leave at every moment. It found the zero-length file and the missing directory fsync.
  • Published on

    Investigation · Part 6 of 20 · What survives a crash

    What a Crash in the Middle of a Write Leaves Behind

    One write() call of 1 GiB, killed after 50 ms, left a file of 110 MB. I measured what a single call leaves after kill -9, what another process sees during it, and when appends from four processes mix. Power loss is worse, and I explain why from documentation.
  • Published on

    Investigation · Part 5 of 20 · What survives a crash

    The Zero-Length File Problem and What ext4 Does About It

    In 2009, ext4 users found empty files after crashes, and ext4 got a heuristic called auto_da_alloc. I watched it work on my laptop: a rename over an existing file starts the writeback at once. It protects against the worst case, but it is not durability.