All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernardo Innocenti <bernie@develer.com>
To: mpt_linux_developer@lsil.com
Cc: lkml <linux-kernel@vger.kernel.org>,
	Develer IT Infrastructure <it@lists.develer.com>,
	linux-scsi@vger.kernel.org
Subject: Writing performance problem with SAS1068
Date: Tue, 06 Feb 2007 09:58:27 +0100	[thread overview]
Message-ID: <45C84333.709@develer.com> (raw)

Hello,

I've stumbled onto a strange performance problem on a new server:
reading from disks is fast (70-80MB/s), but writing is extremely
slow (13-15MB/s).  I've measured it like this:

 dd if=/dev/zero of=/dev/sdd bs=4096 count=65536 conv=fdatasync
 65536+0 records in
 65536+0 records out
 268435456 bytes (268 MB) copied, 17.7004 seconds, 15.2 MB/s

*but*: if I rebuild the kernel and change CONFIG_FUSION_MAX_SGE
from 40 (Fedora's default) to 128 (maximum value), it suddenly
gets much faster: 31MB/s!

Looks very much like an interrupt problem to me.  Maybe
increasing the scatter gather mitigates the problem of
missing completion notifications.

Evidence:

 Exhibit A: custom kernel config for 2.6.18-1.2257.fc5.bernie
 http://www.codewiz.org/helium_logs/config

 Exhibit B: dmesg output from said kernel
 http://www.codewiz.org/helium_logs/dmesg

 Exhibit C: misc proc files, and all that
 http://www.codewiz.org/helium_logs/

 Exhibit D: motherboard and chipset specification
 http://www.supermicro.com/products/motherboard/Xeon3000/3010/PDSME+.cfm


Circumstantial evidence:

 - Seems to affect just the LSI SAS1068 PCI-X controller.
   The on-board AHCI controller writes very fast (>60MB/s)

 - I've seen a very similar writing bottleneck with a
   Promise TX4 SATA controller (not PCI-X) on a server with
   a similar motherboard (Supermicro with Mukilteo 3000).

 - Passing mpt_msi_enable=1 doesn't change anything

 - FreeBSD 6.2 is even slower: writes at 7MB/s

 - OpenSolaris is much, much slower... less than 1MB/s.

 - Windows Vista (rc something) writes at 90MB/s.  Too
   fast to believe, maybe dd from Cygwin is misbehaving.

-- 
   // Bernardo Innocenti - Develer S.r.l., R&D dept.
 \X/  http://www.develer.com/

             reply	other threads:[~2007-02-06  8:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-06  8:58 Bernardo Innocenti [this message]
2007-02-06 19:27 ` Writing performance problem with SAS1068 Douglas Gilbert
2007-02-07 20:57   ` Bernardo Innocenti

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=45C84333.709@develer.com \
    --to=bernie@develer.com \
    --cc=it@lists.develer.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mpt_linux_developer@lsil.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 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.