From: Halim Issa <yallaone@gmail.com>
To: James Bottomley <James.Bottomley@hansenpartnership.com>
Cc: linux-scsi@vger.kernel.org, DL-MPTFusionLinux@lsi.com
Subject: Re: sd incorrectly reports write cache disabled on cache-capable drives/controllers
Date: Thu, 31 Jan 2008 11:41:53 +0100 [thread overview]
Message-ID: <200801311141.53367.yallaone@gmail.com> (raw)
In-Reply-To: <1201296801.3119.63.camel@localhost.localdomain>
Hi,
On Friday 25 January 2008 22:33:21 James Bottomley wrote:
> I don't think it would be correct to assume that there actually is a
> problem. Most RAID controllers habitually lie about having a cache in
> their INQUIRY strings because they don't want to deal with the kernel
> sending SYNCHRONIZE_CACHE commands down.
I just tested this with two various Linux-distributions to verify that that
the problem is in the inquiry and is not performance related. Unfortunately
it turns out there's a rather huge performance difference.
When testing this with CentOS, I not only got the "correct" report from the
kernel that write cache enabled (and no warnings about things being
disabled), and also saw a three times increase in write performance when
testing with dd.
The tests, which are far from scientific, I used the following command:
Read test: dd if=/dev/sda of=/dev/zero bs=64k count=10000
Write test: dd if=/dev/zero of/tmp/outfile bs=64k count=10000
CentOS results:
dd READ test 1st run: 64.9MB/s
dd READ test consecutive runs: 2.2 GB/s
dd WRITE test 1st run: 304 MB/s
dd WRITE test consecute runs: 329 MB/s
Other distributions, identical kernel config & initrd setup:
dd READ test 1st run: 65,2MB/s
dd READ test consecutive runs: 3.1 GB/s
dd WRITE test 1st run: 129 MB/s
dd WRITE test consecute runs: 98 MB/s
So to conclude, what I would like to figure out is what LSI Logic / RedHat is
doing to get such a dramatic increase in Write performance and if that is in
any way associated with their system reporting that the write cache is
actually enabled.
Furthermore, I'm highly puzzled to see that the non-RedHat kernels are
actually faster than RedHat on cached read access. I've tried this over long
periods with various loads and uptimes on the systems, and the test results
are quite persistent.
Note that on both setups, the mptfusion drivers are loaded as modules from an
initrd. No special parameters are passed to these drivers in either setup. I
have mirrored the kernel .config between the two, and have also gone through
the patches to the 2.6.18 kernel in RedHat that are relevant to mptfusion
without finding anything that matches.
I have also tried with the very latest drivers from LSI Logic, just recently
released, on both systems, and the performance data remain the same.
I'm sorry to open this issue again as I hoped and believed that it was
resolved as per the description above, but since it turns out to be a very
real performance difference associated with it, it might be of interest to
others as well to get to the bottom of it?
The full dmesg, kernel config and other information is available at
http://www.hiawata.com/linux/
(system is still not in production and is therefor available for wild
experimentation)
Thanks again for your patient and insightful responses
prev parent reply other threads:[~2008-01-31 10:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-25 20:59 sd incorrectly reports write cache disabled on cache-capable drives/controllers Halim Issa
2008-01-25 21:15 ` James Bottomley
2008-01-25 21:28 ` Halim Issa
2008-01-25 21:33 ` James Bottomley
2008-01-25 21:52 ` Halim Issa
2008-01-31 10:41 ` Halim Issa [this message]
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=200801311141.53367.yallaone@gmail.com \
--to=yallaone@gmail.com \
--cc=DL-MPTFusionLinux@lsi.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=linux-scsi@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.