public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mmap vs. O_DIRECT
@ 2004-11-10  0:05 Bill Davidsen
  2004-11-10 21:13 ` Robert Love
  2004-11-10 22:19 ` Alan Cox
  0 siblings, 2 replies; 8+ messages in thread
From: Bill Davidsen @ 2004-11-10  0:05 UTC (permalink / raw)
  To: linux-kernel

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.

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-11 18:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-10  0:05 mmap vs. O_DIRECT Bill Davidsen
2004-11-10 21:13 ` Robert Love
2004-11-11 14:50   ` Bill Davidsen
2004-11-11 15:41     ` Robert Love
2004-11-11 17:13       ` Robert Love
2004-11-11 17:19         ` Avi Kivity
2004-11-11 17:22           ` Robert Love
2004-11-10 22:19 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox