lkml.org 
[lkml]   [2003]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: statfs() / statvfs() syscall ballsup...
    From
    On Fri, Oct 10, 2003 at 11:05:35AM -0700, Joel Becker wrote:

    > The problem we have with msync() and friends is not 'quick
    > population', it's "page is in the page cache already; another node
    > writes to the storage; must mark page as !uptodate so as to force a
    > re-read from disk". I can't find where sys_readahead() checks for
    > uptodate, so perhaps calling sys_readahead() on a range always causes
    > I/O. Correct me if I missed it.
    >

    Wouldn't this be solvable by giving userspace a way of invalidating
    a range of mmapped pages? I.e. a "minvalidate();" to use when
    the other node tells you it is about to write?

    This will cause the pages to be paged in again on next reference,
    or you can issue a read in advance if you believe you'll need them.

    Helge Hafting
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:49    [W:0.030 / U:0.704 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site