From: Michael Buesch <mb@bu3sch.de>
To: matthieu castet <castet.matthieu@free.fr>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Stop using tasklets for bottom halves
Date: Tue, 8 Sep 2009 21:12:05 +0200 [thread overview]
Message-ID: <200909082112.06572.mb@bu3sch.de> (raw)
In-Reply-To: <loom.20090908T210153-638@post.gmane.org>
On Tuesday 08 September 2009 21:07:32 matthieu castet wrote:
> Michael Buesch <mb@...> writes:
> >
> > I recently converted the b43 driver to threaded interrupt handlers and
> > a workqueue based TX mechanism. (My motivation was porting b43 to the SDIO bus
> that
> > needs to sleep, so requires process context).
> Well you can do busy wait : for sending small sd command, the overhead of
> sleep ( context switch) can be bigger than the sleep.
The bus is _really_ slow and we push the whole network load through it.
So we really don't want to busywait. It would effectively lockup the machine
on network traffic.
And besides that, the SDIO subsystem requires process context. I was not going
to rewrite that.
> It depends of architecture. For example on older arm (armv5) context switch can
> be slow (need tlb and cache flush). It is not really true for kernel thread that
> keeps the same mmu mapping and don't need all those flush,
Yeah, but that's what it is. A kernel thread.
> but there still a
> visible performance hit.
That's the initial question. How big is it?
--
Greetings, Michael.
next prev parent reply other threads:[~2009-09-08 19:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 22:58 Stop using tasklets for bottom halves Luis R. Rodriguez
2009-09-08 0:14 ` Stephen Hemminger
2009-09-08 2:17 ` Steven Rostedt
2009-09-08 4:16 ` Luis R. Rodriguez
2009-09-08 13:18 ` Steven Rostedt
2009-09-08 4:50 ` Michael Buesch
2009-09-08 5:08 ` Michael Buesch
2009-09-08 7:10 ` Ingo Molnar
2009-09-08 19:07 ` matthieu castet
2009-09-08 19:12 ` Michael Buesch [this message]
2009-09-08 16:11 ` Stephen Hemminger
2009-09-08 16:40 ` Steven Rostedt
2009-09-08 17:01 ` Stephen Hemminger
2009-09-08 17:27 ` Steven Rostedt
2009-09-08 16:12 ` Stephen Hemminger
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=200909082112.06572.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=castet.matthieu@free.fr \
--cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).