Vincent Janelle (malokai@gildea.net)
Sun, 23 May 1999 22:38:14 -0700 (PDT)
Actually, someone is working on a sgi-style paffinity program(I think
thats the name of it) for linux 2.2. You'll have to search linux-smp for
it, I've only seen mention of it.
There are SMP patches to top, Freshmeat would probably be your best bet
for that, or the linux-smp archives..
------------
If you have any trouble sounding condescending, find a Unix user to show
you how it's done. -Scott Adams
--http://random.gimp.org --mailto:random@gimp.org --UIN 23939474
On Sun, 23 May 1999, Brian Edmonds wrote:
> hansen wang <hansenw@ece.ubc.ca> writes:
> > Does anyone know how to identify which CPU a process is running on,
> > say CPU1 or CPU0 on dual processor machine.
>
> I don't know of any way to do this, and even if there were some way,
> it's unlikely to be meaningful. Linux does not support processor
> affinity[1], so by the time the kernel tells you what processor you're
> running on, you may have switched to the other one.
>
> Brian.
>
> [1] The ability to force a particular process to always run on a
> particular processor. Linux *tends* to run the process on the same
> processor, but there's no guarantee. I can watch (with xosview) a CPU
> intensive process switch back and forth every few seconds between my two
> processors.
>
This archive was generated by hypermail 2.0b3 on Sun 23 May 1999 - 22:42:08 PDT