3 ms·
How would any filesystem help with that? SSDs typically write entire blocks, even if the OS asks them to only write a few bytes. That's just how SSDs work.
by pritambaral 10y ago
How would any filesystem help with that? SSDs typically write entire blocks, even if the OS asks them to only write a few bytes. That's just how SSDs work.
- Terretta 10y agoRethink the file system. Think log-structured.
- pritambaral 10y agoDoesn't matter. Even a log-structured fs, when told to write 4 bytes of new data to disk will have to write those 4 bytes immediately and return. If an application asks the OS (via fsync), and the OS asks the fs and the fs doesn't write to disk but tells the OS it did, then the fs just lied and risked data loss. If power is lost between the fs lying to the OS and its subsequently actually writing to disk, the data that the fs lied about is lost. You don't want that with a DB on top of it.