Messages in this thread |  | | Subject | Re: 2.6 must-fix list, v2 | From | Robert Love <> | Date | 14 May 2003 11:59:36 -0400 |
| |
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
- 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/
|  |