public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Andrew Morton <akpm@osdl.org>
Cc: David Miller <davem@davemloft.net>, linux-kernel@vger.kernel.org
Subject: Re: softirq considered harmful
Date: Mon, 14 Aug 2006 09:34:48 +0200	[thread overview]
Message-ID: <20060814073448.GI4231@suse.de> (raw)
In-Reply-To: <20060812174549.9a8f8aeb.akpm@osdl.org>

On Sat, Aug 12 2006, Andrew Morton wrote:
> On Sat, 12 Aug 2006 17:43:24 -0700 (PDT)
> David Miller <davem@davemloft.net> wrote:
> 
> > From: Andrew Morton <akpm@osdl.org>
> > Date: Sat, 12 Aug 2006 16:28:57 -0700
> > 
> > > Maybe I missed the discussion.  But if not, this is yet another case of
> > > significant changes getting into mainline via a git merge and sneaking
> > > under everyone's radar.
> > 
> > Scsi has been doing command completions via a per-cpu softirq handler
> > for as long as we've had an SMP more advanced than lock_kernel() :-)
> 
> Is that also adding 150 usecs to each IO operation?

It is, it's the identical mechanism. SCSI used to do completions via
tasklets, it was converted to softirqs a long time ago but I don't think
anyone ever did timings on it to my knowledge... From the few timings I
showed, 150 usec is a _best_ case time on my hardware. 10 msecs was seen
as well, which is just bad beyond describing.

My suggestion (I'll code this up) is that we scrap the softirq
completion and just do it from the irq event. The typical completion
doesn't even need to grab any locks.

-- 
Jens Axboe


  parent reply	other threads:[~2006-08-14  7:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 11:06 softirq considered harmful Jens Axboe
2006-08-10 11:41 ` David Miller
2006-08-10 12:26   ` Jens Axboe
2006-08-12 23:28 ` Andrew Morton
2006-08-13  0:43   ` David Miller
2006-08-13  0:45     ` Andrew Morton
2006-08-13  1:09       ` David Miller
2006-08-13  1:22         ` Andrew Morton
2006-08-14  7:37           ` Jens Axboe
2006-08-14  8:44             ` David Miller
2006-08-14  8:51               ` Jens Axboe
2006-08-14  7:34       ` Jens Axboe [this message]
2006-08-13 14:31   ` Jens Axboe

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=20060814073448.GI4231@suse.de \
    --to=axboe@suse.de \
    --cc=akpm@osdl.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@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