From: "Grant Grundler" <grundler@google.com>
To: "Marin Mitov" <mitov@issp.bas.bg>
Cc: "Mikael Pettersson" <mikpe@it.uu.se>,
linux-kernel@vger.kernel.org, "Jeff Garzik" <jgarzik@pobox.com>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH] pci_try_set_mwi() in sata_promise
Date: Wed, 23 Apr 2008 07:46:49 -0700 [thread overview]
Message-ID: <da824cf30804230746o74e8de0bxbcb31d4b13e98b6@mail.gmail.com> (raw)
In-Reply-To: <200804231633.24603.mitov@issp.bas.bg>
On Wed, Apr 23, 2008 at 6:33 AM, Marin Mitov <mitov@issp.bas.bg> wrote:
...
> > 2. What improvement does that pci_try_set_mwi() cause? Speed? Fewer errors?
>
> May be speed, but practically hardly observable.
I expect the difference to be in available memory BW.
MWI (Memory Write Invalidate) allows the IO controller to write
partial cachlines without having to do a read/modify/write sequence.
R/W/M means the cacheline has to cross the memory bus twice.
The difference in performance will depend on how often the
Promise SATA controller was doing partial cachline
transactions with the wrong cacheline size.
This should be measurable if you run a memory test at the same time
as you stress the SATA controller with fio. Re-read the same 128KB block
repeatedly from the Promise controller (I'm expecting that to be cached)
and measure the available memory BW (e.g. see lmbench for a memtest).
Repeat with MWI enabled.
> > 3. Why call pci_try_set_mwi()? Can't you set the cache line size directly?
>
> pci_set_cacheline_size() is NOT exported, while pci_try_set_mwi() IS and
> sets (as a side effect) the cache line size.
Setting the cachline size only makes sense if MWI is enabled.
Drivers should not longer directly set the cacheline size since it might
not be what they think it is.
hth,
grant
next prev parent reply other threads:[~2008-04-23 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 18:26 Marin Mitov
2008-04-23 7:57 ` Mikael Pettersson
2008-04-23 12:31 ` Marin Mitov
2008-04-23 12:34 ` Marin Mitov
2008-04-23 13:33 ` Marin Mitov
2008-04-23 14:46 ` Grant Grundler [this message]
2008-04-23 18:15 ` Marin Mitov
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=da824cf30804230746o74e8de0bxbcb31d4b13e98b6@mail.gmail.com \
--to=grundler@google.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@it.uu.se \
--cc=mitov@issp.bas.bg \
/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
all inboxes | Powered by JetHome®