Re: Locking a process or thread onto a specific CPU

Tim Hockin (tphocki@www.orl.ilstu.edu)
Fri, 19 Feb 1999 08:44:45 -0600 (EST)


> > > If this is not possible at the moment, can anyone (a) comment on its
> > > feasibility (b) advise us on where to look to implement it or (c)
> > > comment on its desirability as a new feature.
> >
> > I think this is very desirable. It is also desirable to be able to
> > disable some CPUs. I have one example where this kind of flexibility
> > is desirable.
>
> I thought that there were patches to do this? It was pretty
> simple.

I have done this, and I am currently re-writing it from scratch, for 2.2
http://isunix.it.ilstu.edu/~thockin/pset/ is the URL for the old code...it
is currently undergoing a complete from-scratch rewrite, with new features.

Features do/will include:
new system call sysmp (compatible with SGI)
library wrappers for bind_to_cpu() (digital UNIX)
library wrappers for processor_bind() (Sun? - who uses this?)
Restrict processors from running general processes
lock a process to a processor, or set of processors
remove a processor from general use, and lock it to a single process
(and it's children)
disable a processor from scheduling any processes

does this sound like what you want ?

Tim

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/