From: Rusty Russell <rusty@au1.ibm.com>
To: dipankar@in.ibm.com
Cc: rusty@au1.ibm.com, paul.mckenney@us.ibm.com,
linux-kernel@vger.kernel.org
Subject: Re: [patch] RCU for low latency [2/2]
Date: Thu, 15 Jan 2004 10:35:00 +1100 [thread overview]
Message-ID: <20040115103500.28f9e1bf.rusty@rustcorp.com.au> (raw)
In-Reply-To: <20040114082420.GA3755@in.ibm.com>
On Wed, 14 Jan 2004 13:54:20 +0530
Dipankar Sarma <dipankar@in.ibm.com> wrote:
> > static inline unsigned int max_rcu_at_once(int cpu)
> > {
> > if (in_softirq() && RCU_krcud(cpu) && rq_has_rt_task(cpu))
> > return rcu_max_bh_callbacks;
> > return (unsigned int)-1;
> > }
>
> Done, except that once we reach the callback limit, we need to check
> for RT tasks after every callback, instead of at the start of the RCU batch.
AFAICT, if you're in a softirq it can't change. If you're not, there's
no limit anyway.
> > Ideally you'd create a new workqueue for this, or at the very least
> > use kthread primitives (once they're in -mm, hopefully soon).
>
> I will use kthread primitives once they are available in mainline.
But ulterior motive is to push the kthread primitives by making as much
code depend on it as possible 8)
> I will clean this up later should we come to a conclusion that
> we need the low-latency changes in mainline. I don't see
> any non-driver kernel code using module_param() though.
I'm trying to catch them as new ones get introduced. If the name is
old-style, then there's little point changing (at least for 2.6).
>From now on, I'm being more vigilant 8)
> New patch below. Needs rq-has-rt-task.patch I mailed earlier.
> There are more issues that need investigations - can we starve
> RCU callbacks leading to OOMs
You can screw your machine up with RT tasks, yes. This is no new problem,
I think.
> should we compile out krcuds
> based on a config option (CONFIG_PREEMPT?). Any suggestions ?
Depends on the neatness of the code, I think...
Cheers,
Rusty.
--
there are those who do and those who hang on and you don't see too
many doers quoting their contemporaries. -- Larry McVoy
next prev parent reply other threads:[~2004-01-15 3:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-08 11:48 [patch] RCU for low latency [0/1] Dipankar Sarma
2004-01-08 11:49 ` [patch] RCU for low latency [1/2] Dipankar Sarma
2004-01-08 11:50 ` [patch] RCU for low latency [2/2] Dipankar Sarma
2004-01-08 23:43 ` Rusty Russell
2004-01-14 8:24 ` Dipankar Sarma
2004-01-14 23:35 ` Rusty Russell [this message]
2004-01-15 6:03 ` Dipankar Sarma
2004-01-19 23:25 ` Rusty Russell
2004-01-20 1:22 ` Lincoln Dale
2004-01-08 15:12 ` [patch] RCU for low latency [1/2] Nick Piggin
2004-01-08 19:33 ` Dipankar Sarma
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=20040115103500.28f9e1bf.rusty@rustcorp.com.au \
--to=rusty@au1.ibm.com \
--cc=dipankar@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.mckenney@us.ibm.com \
/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