[lkml]   [2004]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: mmap vs. O_DIRECT
On Tue, 2004-11-09 at 19:05 -0500, 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. Before I start poking the code, is there a
> reason why direct is not default for i/o in page-size transfers on page
> size file offsets? I don't have source code, but the parameters of the
> mmap all seem to satisfy the allignment requirements.
> I realize there may be a reason for forcing the i/o through kernel
> buffers, or for not taking advantage of doing direct i/o whenever
> possible, it just doesn't jump out at me.

Direct I/O (O_DIRECT) will almost assuredly increase I/O wait and
degrade I/O performance, not improve it.

I don't think direct I/O is what you want and I am sure that we don't
want aligned mmaps to not go through the page cache and be synchronous.

Robert Love

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