Messages in this thread | | | Date | Wed, 23 Aug 2006 12:08:38 -0700 | From | Paul Jackson <> | Subject | Re: cpusets not cpu hotplug aware |
| |
Anton wrote: > We have a userspace visible change to the sched > affinity API when the cpusets option is enabled.
Yup - on cpuset kernels, sched_setaffinity is constrained to CPUs in a tasks cpuset. Also mbind and set_mempolicy are constrained to nodes in the tasks cpuset.
This is a long standing, intentional part of the cpuset design.
Using udev isn't papering over it. It's reflecting the reasonable preference and expectation on systems using hotplug/unplug that the default cpuset dynamically reflect the current online maps, not the static maps as they were at boot. And using udev is using just the sort of mechanism one might expect to be used to adjust the system when devices go on or off line.
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.925.600.0401 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |