From: Matthew Wilcox <willy@debian.org>
To: kuznet@ms2.inr.ac.ru
Cc: Matthew Wilcox <willy@debian.org>,
linux-scsi@vger.kernel.org, davem@redhat.com
Subject: Re: softscsi patch
Date: Fri, 5 Jul 2002 16:41:21 +0100 [thread overview]
Message-ID: <20020705164121.B27706@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <200207051453.SAA05954@sex.inr.ac.ru>; from kuznet@ms2.inr.ac.ru on Fri, Jul 05, 2002 at 06:53:07PM +0400
On Fri, Jul 05, 2002 at 06:53:07PM +0400, kuznet@ms2.inr.ac.ru wrote:
> Well, it was difficult to make not introducing interaction between
> cpus (which was main goal of softirq core).
sure, but it's fine to synchronise all CPUs at subsystem unload...
> I think it is possible using ideas sort of brlock or using detection
> of quiescent intervals introduced with RCU. Anyway, I still do not see
> how to make this in clean way.
Hmm, I'll investigate.
> BTW are you sure that scsi layer really needs bare softirq?
No, but davem said we should ;-)
> Networking is very special in this sense, with local traffic
> the first spinlock is hit at socket level (very high granularity!).
> However, even in this case we are switching to tasklets (NAPI uses
> per-device tasklet in fact). Maybe, scsi will feel better with
> per-controller tasklets too.
I didn't know NAPI was doing that... we could embed a tasklet in each
Scsi_Host and trigger it at the end of scsi_done. Might give better
performance than using a softirq.
If we have a controller finishing four requests in rapid succession,
each interrupt going to a different CPU then three CPUs will spin waiting
for that controller's lock... and then waste time pingponging the cache
lines between themselves as each gets its turn. Would be more efficient
to use a tasklet for this case. With multiple controllers it should
get even better as they can be handled on different CPUs.
Time for the third rewrite of the scsi completion handler in the last
month? :-)
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2002-07-05 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-30 21:20 softscsi patch Matthew Wilcox
2002-07-01 20:04 ` James Bottomley
2002-07-02 16:19 ` James Bottomley
2002-07-05 14:53 ` kuznet
2002-07-05 15:41 ` Matthew Wilcox [this message]
2002-07-05 15:58 ` kuznet
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=20020705164121.B27706@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox