All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: linux-kernel@vger.kernel.org
Subject: mmap vs. O_DIRECT
Date: Tue, 09 Nov 2004 19:05:13 -0500	[thread overview]
Message-ID: <cmtsoo$j55$1@gatekeeper.tmr.com> (raw)

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

             reply	other threads:[~2004-11-10 20:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-10  0:05 Bill Davidsen [this message]
2004-11-10 21:13 ` mmap vs. O_DIRECT 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cmtsoo$j55$1@gatekeeper.tmr.com' \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.