lkml.org 
[lkml]   [2004]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mmap vs. O_DIRECT
From
Date
On Mer, 2004-11-10 at 00:05, Bill Davidsen wrote:
> I have an application which does a lot of mmap to process its data. The
> huge waitio time makes me think that mmap isn't doing direct i/o even
> when things are alligned.

Make sure you are using MAP_SHARED in such cases so that the object you
have is the page cache object, also remember to use madvise

-
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 14:07    [W:0.436 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site