[lkml]   [2003]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Memory mapped files question
    On Mon, Apr 14, 2003 at 04:13:52PM -0400, Richard B. Johnson wrote:
    > Memory mapped files are supposed to be accessed through memory!
    > Any program that needs to know what's on the physical disk is
    > broken. If you need to write to files and know when they are
    > written to the physical media, you use a journaled file-system.

    It is not that simple.
    Shared mmaped files are _never_ flushed, at least in 2.4.x. So,
    without an explicit msync() a process (innd comes to mind) may loose
    years of updates upon a system crash or power outage.

    I have learned to live with it but I still find this a bit awkward.

    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-03-22 13:34    [W:0.025 / U:0.104 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site