- Published on
Investigation · Part 17 of 20 · What survives a crash
Writing Through mmap: Who Decides When Data Reaches the Disk
I changed 64 MiB of a file without one write call, through a shared memory mapping. The pages became dirty like in the first part, kill -9 kept them, msync or fsync made them durable, and a truncated file killed my program with SIGBUS. The kernel decides the rest.