Re: [PATCH] PROC_FS: get and set the smp affinity of tasks byread-write /proc/<pid>/smp_affinity
From: Andrew Morton
Date: Wed Jan 09 2008 - 19:34:18 EST
On Fri, 4 Jan 2008 15:03:41 +0800
Denis Cheng <crquan@xxxxxxxxx> wrote:
> this adds a read-write /proc/<pid>/smp_affinity entry,
> just like what /proc/irq/<irq>/smp_affinity does,
> so now we can get and set the affinity of tasks by procfs,
> this is especially useful used in shell scripts.
>
> this also adds a read-write /proc/<pid>/tasks/<tid>/smp_affinity
> for the same purpose.
Why not use /usr/bin/taskset?
--
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/