From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: george anzinger <george@mvista.com>
Cc: Keith Owens <kaos@ocs.com.au>, linux-kernel@vger.kernel.org
Subject: Re: 2.4.20 kernel/timer.c may incorrectly reenable interrupts
Date: Fri, 11 Apr 2003 11:27:28 +0200 [thread overview]
Message-ID: <20030411112728.M626@nightmaster.csn.tu-chemnitz.de> (raw)
In-Reply-To: <3E966BAA.804@mvista.com>; from george@mvista.com on Fri, Apr 11, 2003 at 12:15:54AM -0700
On Fri, Apr 11, 2003 at 12:15:54AM -0700, george anzinger wrote:
> As machines get faster and faster, it will be come more and more of a
> burden to "stop the world" and sync with the interrupt system, which
> is running at a much slower speed. This is what the cli / sti/
> restore flags causes. I saw one test where the time to do the cli was
> as long as the run_timer_list code, for example.
Maybe we could replace some cli/sti pairs with spinlocks? If it
takes more time to cli/sti than to run the whole code section
that will be protected by the spinlock, then it might be better
to use that instead and block in the IRQ dispatch code.
But I have no measures, how fast the spinlocks are in the
non-/contention case
Problems:
- The total amount of CLI/STI doesn't matter, for spinlocks it
does (they are not recursive)
- spinlocks are usally not compiled in
- Older CPUs may still benefit from cli/sti.
What do you think?
Regards
Ingo Oeser
--
Marketing ist die Kunst, Leuten Sachen zu verkaufen, die sie
nicht brauchen, mit Geld, was sie nicht haben, um Leute zu
beeindrucken, die sie nicht moegen.
next prev parent reply other threads:[~2003-04-11 12:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 6:47 Keith Owens
2003-04-11 7:15 ` george anzinger
2003-04-11 9:27 ` Ingo Oeser [this message]
2003-04-11 21:21 ` george anzinger
2003-04-12 8:55 ` Ingo Oeser
2003-04-14 21:49 ` george anzinger
2003-04-15 20:32 ` Ingo Oeser
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=20030411112728.M626@nightmaster.csn.tu-chemnitz.de \
--to=ingo.oeser@informatik.tu-chemnitz.de \
--cc=george@mvista.com \
--cc=kaos@ocs.com.au \
--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
all inboxes | Powered by JetHome®