[lkml]   [2004]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: clearing filesystem cache for I/O benchmarks
    On Mon, Jul 26, 2004 at 11:40:05PM -0700, Andrew Morton wrote:
    > ...
    > However... If you write any amount of data to a file with O_DIRECT, that
    > will, as a side-effect, remove _all_ of that file's pagecache. In 2.4 as
    > well as 2.6. So you could scrub the pagecache by reading the first 4k then
    > writing it back with O_DIRECT.
    > However O_DIRECT is supported on very few filesystems in 2.4. ext2 and
    > reiserfs have it.
    > XFS in 2.4 has O_DIRECT, I think, but I don't know if the invalidation
    > side-effect works on XFS.

    Yep, it does.


    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 14:04    [W:0.021 / U:0.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site