Messages in this thread | | | Date | Thu, 18 Mar 2004 00:22:27 -0800 | From | Ulrich Drepper <> | Subject | Re: sched_setaffinity usability |
| |
Tim Hockin wrote:
> could you just call getaffinity first?
This means copying quite some memory.
On the bright side, this would allow to have a well-defined error case which guarantees the affinity mask is not changed if it cannot be done completely. Still, it might mean for some systems (and the number is going to grow in future) to spend a lot of effort on the error case which never really is hit. And the affinity calls have to take a lock, serializing code possibly quite a bit.
-- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ - 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/
| |