Re: [PATCH 0/4] CPU hotplug, cpusets: Fix CPU online handlingrelated to cpusets

From: Ingo Molnar
Date: Thu Feb 09 2012 - 02:57:18 EST



* Srivatsa S. Bhat <srivatsa.bhat@xxxxxxxxxxxxxxxxxx> wrote:

> IOW, consider:
>
> cpuset A has 0-10
>
> - Take CPU 10 offline
> [We are forced to remove CPU 10 from cpuset A, which becomes 0-9 now]
>
>
> <Userspace didn't request any change to cpuset A>
>
>
> - Bring back CPU 10 online
>
> Now cpuset A is still 0-9! IMO, it should have been 0-10.

Why is CPU 10 taken out of the cpuset to begin with?

The cpuset code should be fixed to work with offline CPUs as
well - it can obviously not schedule to them, but otherwise it
should be fine to have a wider cpuset than the hw can support.

Thanks,

Ingo
--
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/