Re: 2.6 must-fix list, v2

Robert Love
2003-05-14T15:44:49Z

On Wed, 2003-05-14 at 07:02, Felipe Alfaro Solana wrote:

> > > > - Add ability to restrict the the default CPU affinity mask so that
> > > > sys_setaffinity() can be used to implement exclusive access to a CPU.
> > >
> > > Why is this useful?
> >
> > I forgot to add that the result is the rough equivalent of Digital UNIX's psets
> > and Irix's sysmp for my prurposes at least.
>
> And psets and fencing in Solaris too...

You can get exclusive access with mangling the system call, simply by
having init bind itself to the non-exclusive processors on boot.

Try it. Every task will then end up on only the non-exclusive
processors. Seems a very simple change to me, and one that can be done
in user-space.

You do not even have to modify init, if you do not want. Grab
http://tech9.net/rml/schedutils and put a taskset call in your rc.d

Robert Love