Re: CPU Hotplug: Hotplug Script And SIGPWR

From: Rusty Russell
Date: Tue Jan 20 2004 - 23:46:15 EST


In message <20040120075409.GA13897@xxxxxxxxxx> you write:
> Basically, RT tasks + CPU affinity + hotplug CPUs do not play nicely
> together. I don't see much that can be done to solve that. With the
> procstate stuff I did, and with planned CPU unplugs we *do* have time before
> the CPU really goes offline in which to act. With unplanned CPU offlining,
> we don't.

This can't be done with the hotplug scripts. I originally ran hotplug
synchronous before taking the CPU offline, and Greg KH said that
constitutes abuse 8(

Userspace can agree on a protocol *before* initiating the offline, of
course, in which case it's not a kernel problem.

You make an excellent point though: if you need 2 cpus on your system
to meet requirements, and you go down to one cpu, you have a problem.
But I think that's a "don't do that".

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/