Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dipankar Sarma
Date: Friday, January 26, 2007 - 12:46 pm

On Fri, Jan 26, 2007 at 11:28:37AM -0800, Andrew Morton wrote:

Not this one. The point is that this forces us to determine
which APIs are usable in cpu hotplug path and which aren't.
It isn't unreasonable to expect that some one may need
to use sched_setaffinity() in hotplug path. This now forces
us to have two versions of sched_setaffinity() - one with
the hotplug per-subsystem lock, the other one without.


IIRC, there was one get_cpu_hotplug()/put_cpu_hotplug() implementation
based on Arjan's suggestion and implemented in a scalable way by Gautham.


get_cpu_hotplug()/put_cpu_hotplug() hides all the refcount complexities
underneath and most kernel programmers are familiar with the
get()/put() model. This seems like the most simple thing we
could do in the short term without making too many changes in all over the
kernel for CPU hotplug.


This would be ideal. However, we don't seem to have any momentum
on this. The other thing we would need to do in this case is to
check if all the users of cpu hotplug can tolerate a very slow
hotplug step if there are 10s of thousands of processes and threads.

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

Messages in current thread:
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Dipankar Sarma, (Fri Jan 26, 12:11 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Andrew Morton, (Fri Jan 26, 12:28 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Dipankar Sarma, (Fri Jan 26, 12:46 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Andrew Morton, (Fri Jan 26, 1:17 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Dipankar Sarma, (Fri Jan 26, 1:44 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Andrew Morton, (Fri Jan 26, 2:29 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Sun Jan 28, 3:47 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Andrew Morton, (Sun Jan 28, 4:30 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Sun Jan 28, 7:40 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Ingo Molnar, (Mon Jan 29, 12:12 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Mon Jan 29, 7:45 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Ingo Molnar, (Tue Jan 30, 12:33 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Gautham R Shenoy, (Tue Jan 30, 7:02 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Tue Jan 30, 9:02 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Rafael J. Wysocki, (Tue Jan 30, 9:44 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Tue Jan 30, 9:47 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Andrew Morton, (Tue Jan 30, 11:27 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Tue Jan 30, 12:49 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Wed Jan 31, 4:10 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Pavel Machek, (Fri Feb 2, 5:01 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Pavel Machek, (Fri Feb 2, 5:17 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Rafael J. Wysocki, (Sat Feb 3, 3:27 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Sat Feb 3, 5:31 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Paul E. McKenney, (Sat Feb 3, 9:39 pm)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Rafael J. Wysocki, (Sun Feb 4, 4:08 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Pavel Machek, (Sun Feb 4, 5:53 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Rafael J. Wysocki, (Sun Feb 4, 6:46 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Pavel Machek, (Sun Feb 4, 6:50 am)
Re: Fw: Re: [mm PATCH 4/6] RCU: (now) CPU hotplug, Rafael J. Wysocki, (Sun Feb 4, 6:59 am)