Re: CPU Hotplug: Hotplug Script And SIGPWR

From: Rusty Russell
Date: Tue Jan 20 2004 - 03:24:18 EST


In message <20040120063316.GA9736@xxxxxxxxxx> 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.
-
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/