From: "Paul McKenney" <Paul.McKenney@us.ibm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: ak@suse.de, linux-kernel@vger.kernel.org,
lse-tech@lists.sourceforge.net,
lse-tech-admin@lists.sourceforge.net, nigel@nrg.org
Subject: Re: [Lse-tech] Re: [PATCH for 2.5] preemptible kernel
Date: Sat, 7 Apr 2001 16:54:52 -0700 [thread overview]
Message-ID: <OF42269F5F.CDF56B0F-ON88256A27.0083566F@LocalDomain> (raw)
> > I see your point here, but need to think about it. One question:
> > isn't it the case that the alternative to using synchronize_kernel()
> > is to protect the read side with explicit locks, which will themselves
> > suppress preemption? If so, why not just suppress preemption on the
read
> > side in preemptible kernels, and thus gain the simpler implementation
> > of synchronize_kernel()? You are not losing any preemption latency
> > compared to a kernel that uses traditional locks, in fact, you should
> > improve latency a bit since the lock operations are more expensive than
> > are simple increments and decrements. As usual, what am I missing
> > here? ;-)
>
> Already preempted tasks.
But if you are suppressing preemption in all read-side critical sections,
then wouldn't any already-preempted tasks be guaranteed to -not- be in
a read-side critical section, and therefore be guaranteed to be unaffected
by the update (in other words, wouldn't such tasks not need to be waited
for)?
> > Another approach would be to define a "really low" priority that noone
> > other than synchronize_kernel() was allowed to use. Then the UP
> > implementation of synchronize_kernel() could drop its priority to
> > this level, yield the CPU, and know that all preempted tasks must
> > have obtained and voluntarily yielded the CPU before synchronize_kernel
()
> > gets it back again.
>
> Or "never", because I'm running RC5 etc. 8(.
Ummmm... Good point! Never mind use of low priorities in UP kernels
for synchronize_kernel()...
Thanx, Paul
next reply other threads:[~2001-04-07 23:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-07 23:54 Paul McKenney [this message]
2001-04-10 15:21 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2001-04-22 13:38 Paul McKenney
2001-04-11 4:08 Paul McKenney
2001-04-11 5:22 ` yodaiken
2001-04-11 8:37 ` Nigel Gamble
2001-04-11 8:19 ` Nigel Gamble
2001-04-10 22:08 Paul McKenney
2001-04-10 23:49 ` Nigel Gamble
2001-04-09 12:46 bsuparna
2001-04-09 23:28 ` Nigel Gamble
2001-04-07 23:59 Paul McKenney
2001-04-07 1:25 Paul McKenney
2001-04-07 21:25 ` [Lse-tech] " Andi Kleen
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=OF42269F5F.CDF56B0F-ON88256A27.0083566F@LocalDomain \
--to=paul.mckenney@us.ibm.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lse-tech-admin@lists.sourceforge.net \
--cc=lse-tech@lists.sourceforge.net \
--cc=nigel@nrg.org \
--cc=rusty@rustcorp.com.au \
/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®