public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: xfs@oss.sgi.com
Subject: Re: High latencies writing to a memory mapped file
Date: Tue, 27 Jul 2010 08:00:33 -0500	[thread overview]
Message-ID: <4C4ED871.1090108@hardwarefreak.com> (raw)
In-Reply-To: <20100727124750.30bb3209@harpe.intellique.com>

Emmanuel Florac put forth on 7/27/2010 5:47 AM:
> Le Tue, 27 Jul 2010 11:24:52 +0200
> Matthias Schniedermeyer <ms@citd.de> écrivait:
> 
>> In case anybody has an idea what i could do to identify and/or
>> isolate the root-cause, i'm open for suggestions.
>>
> 
> I'd thought that the io scheduler is the culprit. I've generally found
> that the default CFQ scheduler (default) is terrible for file servers.

Agreed.  The scheduler may not be the cause of his issue, but switching to
deadline or noop should certainly help overall I/O a bit.  I'm no fan of CFQ
either.  I've been using deadline for quite a while and it seems to be good
for local single disk and JBOD,  as well as for Linux software RAID to local
disks.  Deadline and noop are both good choices if using a good intelligent
PCI RAID controller, or if doing I/O over a FC/iSCSI HBA to a SAN controller;
in fact noop probably shouldn't be used with anything but intelligent I/O
controllers.

My informal testing some time ago revealed that deadline will pick up some of
the performance slack if you're unable to use NCQ due to a crappy SATA
chipset/HBA and/or drive firmware (or both).  Testing also showed that it
basically ties noop when used with Qlogic 4Gb FC HBAs and IBM and Nexsan SAN
array controllers.  Deadline just seems to work pretty well with anything,
picking up slack when lacking intelligent I/O hardware, and not really getting
in the way when you have it.

** Testing will reveal which is better for a given server/storage and
application mix.  Such testing is why I only include deadline in my custom
kernels (that and the fact I like to keep my kernels tight, as small as
possible--dropping CFQ and noop simply cuts a little more dead weight from the
binary).

-- 
Stan

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

  parent reply	other threads:[~2010-07-27 12:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 14:47 High latencies writing to a memory mapped file Shawn Bohrer
2010-07-22 23:28 ` Dave Chinner
2010-07-26 22:09   ` Shawn Bohrer
2010-07-26 23:22     ` Dave Chinner
2010-08-03 22:03       ` Shawn Bohrer
2010-07-27  9:24 ` Matthias Schniedermeyer
2010-07-27 10:47   ` Emmanuel Florac
2010-07-27 11:27     ` Matthias Schniedermeyer
2010-07-27 13:06       ` Emmanuel Florac
2010-07-27 13:00     ` Stan Hoeppner [this message]
     [not found]   ` <4C4EDEFD.7000401@hardwarefreak.com>
2010-07-27 14:49     ` Matthias Schniedermeyer
2010-07-27 19:59       ` Kinzel, David
2010-07-27 21:02         ` Matthias Schniedermeyer

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=4C4ED871.1090108@hardwarefreak.com \
    --to=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