Re: CPU Hotplug: Hotplug Script And SIGPWR

Rusty Russell
2004-01-20T08:22:41Z

In message <20040120063316.GA9736@hockin.org> you write:
> I added a new TASK_UNRUNNABLE state for these tasks, too. By adding the
> task's current (or most recent) CPU and the task's cpus_allowed and
> cpus_allowed_mask to /proc/pid/status, we gave simple tools for finding
> these unrunnable tasks.
>
> I think the sanest thing for a CPU removal is to migrate everything off the
> processor in question, move unrunnable tasks into TASK_UNRUNNABLE state,
> then notify /sbin/hotplug. The hotplug script can then find and handle the
> unrunnable tasks. No SIGPWR grossness needed.

Interesting.

The downside is that you now need some script needs to know what to do
with the tasks (unless you have something like DBUS, but that's a ways
off). There are no correctness concerns AFAICT with userspace not
being on a particular CPU, just performance.

The SIGPWR solution lets a random process deal appropriately without
having to interface with /sbin/hotplug, if it wants to. And it's a
lot less invasive.

I'll take a look though.
Thanks,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.