[lkml]   [2001]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] proc-based cpu affinity user interface

On 26 Nov 2001, Robert Love wrote:

> Attached is my procfs-based implementation of a user interface for
> getting and setting a task's CPU affinity. Patch is against 2.4.16.

two comments. First, this has already been done - Andrew Morton has
written such a patch.

Second, as i've repeatedly said it, it's a failure to do this over /proc.
What if /proc is not mounted? What if the process is in a chroot()
environment, should it not be able to set its own affinity? This is a
fundamental limitation of your approach, and *if* we want to export the
cpus_allowed affinity to user-space (which is up to discussion), then the
right way (TM) to do it is via a syscall.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.233 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site