Re: a nohup-like interface to cpu affinity

From: Sean Hunter (sean@dev.sportingbet.com)
Date: Tue Nov 27 2001 - 03:42:24 EST


On Tue, Nov 27, 2001 at 01:39:50AM -0500, Robert Love wrote:
> On Tue, 2001-11-27 at 01:32, Linux maillist account wrote:
>
> > It's isn't quite the same..the biggest difference is races.
>
> Then you can set the affinity on your shell before executing the
> process. :)

Surely

#!/bin/sh

echo $1 > /proc/self/affinity
shift
exec $@

...would be just fine 'n dandy as a wrapper.

Sean
-
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/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:26 EST