public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Stewart Smith <stewart@flamingspork.com>
To: Stan Hoeppner <stan@hardwarefreak.com>, xfs@oss.sgi.com
Subject: Re: NOW: o_direct   --  WAS: Re: WARNING in xfs_lwr.c, xfs_write()
Date: Fri, 28 May 2010 00:05:05 +1000	[thread overview]
Message-ID: <87mxvlbfu6.fsf@willster.local.flamingspork.com> (raw)
In-Reply-To: <4BFD3926.6040208@hardwarefreak.com>

On Wed, 26 May 2010 10:07:18 -0500, Stan Hoeppner <stan@hardwarefreak.com> wrote:
> Please educate the ignorant a little bit Dave.  I'm not a programmer, or at
> least, haven't been one for a couple of decades.  If o_direct is superior to
> mmap, why then don't, say, Postfix and Dovecot use it instead of mmap?  Email
> servers are some of the most disk I/O bound applications on the planet.  I
> would think on heavily loaded mail servers (smtp or imap), at $big_isp for
> example, buffer cache would yield very little performance gain, and may even
> slow the system down due to buffer cache thrashing.

email servers are metadata heavy workloads, not data heavy. They do lots
of create/rename/delete of small files.

O_DIRECT requires you to do IO in multiples of 512bytes aligned to
512byte boundaries.

things like email servers... generally don't need/do that.

Database servers tend to do that, so they use O_DIRECT.

Also, email smtpd delivering a message on a machine, you could quite
likely have imapd come along and read that soon after, so using the
cache makes sense.

> Why do you think Wietse and Timo don't use o_direct instead of mmap?  Timo is
> working on a complex and aggressive totally asynchronous I/O subsystem for a
> future Dovecot release in an effort to speed up I/O on loaded systems.  Could
> o_direct not be the solution?  AFAIK, both Postfix and Dovecot support running
> on just about every Unix like OS on the planet.  Is o_direct not a portable
> interface, limited to Linux only?  Is o_direct a POSIX standard?

not posix.

but you can get the functionality out of linux through opening with
O_DIRECT, solaris by doing o_direct(), and who cares about the rest :)

-- 
Stewart Smith

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2010-05-27 14:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23  5:20 WARNING in xfs_lwr.c, xfs_write() Roman Kononov
2010-05-23 10:18 ` Dave Chinner
2010-05-23 14:23   ` Roman Kononov
2010-05-24  1:19     ` Dave Chinner
2010-06-12  5:00       ` Ilia Mirkin
2010-06-13 22:47         ` Dave Chinner
2010-06-13 23:10           ` Ilia Mirkin
2010-06-14  1:29             ` Dave Chinner
2010-06-14  3:27               ` Ilia Mirkin
2010-06-14 15:11                 ` Roman Kononov
2010-05-24  4:12     ` Stan Hoeppner
2010-05-24  5:16       ` Stewart Smith
2010-05-24 19:34       ` Roman Kononov
2010-05-26  7:06         ` Dave Chinner
2010-05-26 15:07           ` NOW: o_direct -- WAS: " Stan Hoeppner
2010-05-27 11:05             ` Michael Monnerie
2010-05-27 11:47             ` Christoph Hellwig
2010-05-27 13:58               ` Stewart Smith
2010-05-27 14:57                 ` Christoph Hellwig
2010-05-27 15:45                   ` Stewart Smith
2010-05-28  0:25               ` Stan Hoeppner
2010-05-27 14:05             ` Stewart Smith [this message]
2010-05-28  0:42               ` Stan Hoeppner

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=87mxvlbfu6.fsf@willster.local.flamingspork.com \
    --to=stewart@flamingspork.com \
    --cc=stan@hardwarefreak.com \
    --cc=xfs@oss.sgi.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox