[lkml]   [2005]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Linux does not care for data integrity
    On Wed, 01 Jun 2005, Bill Davidsen wrote:

    > >It's a matter of enforcing write order. In how far such ordering
    > >constraints are propagated by file systems, VFS layer, down to the
    > >hardware, is the grand question.
    > The problem is that in many options required to make that happen in the
    > o/s, hardware, and application are going to kill performance. And even
    > if you can control order of write, unless you can get write to final
    > non-volatile media control you can get a sane database but still lose
    > transactions.
    > If there was a way for the o/s to know when a physical write was done
    > other than using flushes to force completion, then overall performance
    > could be higher, but individual transaction might have greater latency.
    > And the app could use fsync to force order of write as needed. In many
    > cases groups of writes can be done in any order as long as they are all
    > done before the next logical step takes place.

    I have a déjà-vu, and I do believe that this discussion has taken place
    in this list before, perhaps with a slightly different alignment, and
    likely in the context of mail transfer agents and perhaps synchronous
    directory (data) updates (file creation and such). Exposing a bit of the
    queueing to the user space through new syscalls may be an interesting
    experiment, although I do not have the resources to provide code.
    Something like fsync() that doesn't flush the whole file system (which
    appears to be the most common implementation) but tracks what is needed,
    and that returns when data for a given file is on disk.

    > This would change the meaning of fsync from "force out the data" to
    > "wait for the data to be written" in some implementations.

    Naming suggestion: flazysync()

    Matthias Andree
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-06-02 00:15    [W:0.022 / U:17.168 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site