lkml.org 
[lkml]   [2004]   [Mar]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 18 Mar 2004 00:22:27 -0800
FromUlrich Drepper <>
SubjectRe: 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 
\
 
 \ /
  Last update: 2005-03-22 13:01    [from the cache]
©2003-2008