Re: [PATCH] a local-timer-free version of RCU

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Monday, November 8, 2010 - 1:40 pm

On Mon, Nov 08, 2010 at 11:38:32AM -0800, Paul E. McKenney wrote:



Yeah sure, but I wonder if the resulting rcu config will have a
large performance impact because of that.

In fact, my worry is: if the last resort to have a sane non-timer based
rcu is to bloat fast path functions like preempt_disable() or local_irq...
(that notwithstanding we have a bloated rcu_read_unlock() on this rcu config
because of its main nature), wouldn't it be better to eventually pick the
syscall/exception tweaked fast path version?

Perhaps I'll need to measure the impact of both, but I suspect I'll get
controversial results depending on the workload.


 


Yeah, the resulting change must be NULL in others rcu configs.






Probably yeah, otherwise there will be a kind of sense split against
the usual rcu_read_lock() and everybody will be confused.

Perhaps we need a different API for the underlying rcu_read_lock()
call in the other flavours when preempt is already disabled or
bh is already disabled:

	rcu_enter_read_lock_sched();
	__rcu_read_lock_sched();
	rcu_start_read_lock_sched();

	(same for bh)

Hmm...




Perfect. That could be further optimized with what I said above but
other than that, that's what I was thinking about.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
dyntick-hpc and RCU, Paul E. McKenney, (Thu Nov 4, 4:21 pm)
Re: dyntick-hpc and RCU, Frederic Weisbecker, (Thu Nov 4, 10:27 pm)
Re: dyntick-hpc and RCU, Frederic Weisbecker, (Thu Nov 4, 10:38 pm)
Re: dyntick-hpc and RCU, Paul E. McKenney, (Fri Nov 5, 8:04 am)
Re: dyntick-hpc and RCU, Paul E. McKenney, (Fri Nov 5, 8:06 am)
Re: dyntick-hpc and RCU, Dhaval Giani, (Fri Nov 5, 1:06 pm)
[PATCH] a local-timer-free version of RCU, Joe Korty, (Fri Nov 5, 2:00 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Sat Nov 6, 12:28 pm)
Re: [PATCH] a local-timer-free version of RCU, Mathieu Desnoyers, (Sat Nov 6, 12:34 pm)
Re: [PATCH] a local-timer-free version of RCU, Mathieu Desnoyers, (Sat Nov 6, 12:42 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Sat Nov 6, 12:44 pm)
Re: [PATCH] a local-timer-free version of RCU, Mathieu Desnoyers, (Sat Nov 6, 1:03 pm)
Re: [PATCH] a local-timer-free version of RCU, Udo A. Steinberg, (Sun Nov 7, 7:11 pm)
Re: [PATCH] a local-timer-free version of RCU, Udo A. Steinberg, (Sun Nov 7, 7:19 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Sun Nov 7, 7:54 pm)
Re: dyntick-hpc and RCU, Frederic Weisbecker, (Mon Nov 8, 7:10 am)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Mon Nov 8, 8:06 am)
Re: [PATCH] a local-timer-free version of RCU, Joe Korty, (Mon Nov 8, 8:18 am)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Mon Nov 8, 8:32 am)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Mon Nov 8, 12:38 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Mon Nov 8, 12:49 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Mon Nov 8, 12:50 pm)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Mon Nov 8, 1:40 pm)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Mon Nov 8, 1:51 pm)
Re: [PATCH] a local-timer-free version of RCU, Lai Jiangshan, (Tue Nov 9, 2:22 am)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Wed Nov 10, 8:54 am)
Re: [PATCH] a local-timer-free version of RCU, Peter Zijlstra, (Wed Nov 10, 10:31 am)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Wed Nov 10, 10:45 am)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Wed Nov 10, 11:08 am)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Wed Nov 10, 9:19 pm)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Sat Nov 13, 3:30 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Mon Nov 15, 6:28 pm)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Tue Nov 16, 6:52 am)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Tue Nov 16, 8:51 am)
Re: [PATCH] a local-timer-free version of RCU, Frederic Weisbecker, (Tue Nov 16, 5:52 pm)
Re: [PATCH] a local-timer-free version of RCU, Paul E. McKenney, (Tue Nov 16, 6:25 pm)