Re: [PATCH tip/core/rcu 0/5] Fix for cond_resched performance regression

From: josh
Date: Fri Jun 20 2014 - 17:24:34 EST


On Fri, Jun 20, 2014 at 12:12:36PM -0700, Paul E. McKenney wrote:
> o Make cond_resched() a no-op for PREEMPT=y. This might well turn
> out to be a good thing, but it doesn't help give RCU the quiescent
> states that it needs.

What about doing this, together with letting the fqs logic poke
un-quiesced kernel code as needed? That way, rather than having
cond_resched do any work, you have the fqs logic recognize that a
particular CPU has gone too long without quiescing, without disturbing
that CPU at all if it hasn't gone too long.

- Josh Triplett
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/