I agree and I really like the proc-interface. There is something uber
cool about:
cat 1 > /proc/pid/affinity
I have a patch for 2.5.6 for proc-based affinity interface here:
I suspect, however, that despite both patches being small we really only
want to pick and standardize on one. The syscall interface has two main
things going for it against a proc-based implementation: it is faster
and /proc may not be mounted. The masses have spoken on this issue.
Note you can use the syscall interface with existing programs, too.
Just write a program to take in a pid and mask and call
sched_set_affinity.
> Please add it for all archs - this is not only interesting for x86,
I'll send Linus the patch for other arches if/when he accepts this patch
- I have no problem with that.
Robert Love
-
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/