Re: sched_setaffinity usability

From: Ulrich Drepper
Date: Thu Mar 18 2004 - 03:23:39 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/