Re: [PATCH 3/4] 2.6.2-rc2-mm2 CPU Hotplug: The Core

From: Rusty Russell
Date: Mon Feb 02 2004 - 20:05:23 EST


In message <20040202154040.GA5895@xxxxxxx> you write:
> user-space tasks that rely on running on a specific CPU need a callback
> too. (probably in the form of a signal, which, if unhandled, terminates
> the task.) Eg. if a webserver has a mode to run one thread per CPU, then
> the server needs to adapt to the new situation when a CPU goes away. We
> cannot just unilaterally migrate a task and violate its affinity.

Well, that's what we'd do anyway, to deliver the signal.

This terminating signal idea is simply flawed: affinity is inherited,
so you're killing a process which knows nothing anyway.

If we can't do it well, leave it to userspace to sort out 8)

> another thing: if the migrate-irqs op is done atomically too (together
> with the migrate-tasks op) then the special-cases in idle_balance() and
> rebalance_tick() could go away too.

Exactly. It simplifies a number of things.

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/