On Mon, Jul 17, 2000 at 09:23:30PM +1000, Dave Kempe uttered:
> Not being all that familar with SMP stuff with the linux kernel, I was
> wondering how/if its possible to specify which processor to run a process on
> in a dual processor machine.

What you're after is a tool called pset which is a tool to allow you to
force a process to run on one or more processors.  It's an SGI tool,
though there are analogues for other OSes.  No idea if it works.

(Often the hardest thing about Linux isn't knowing if a specific task is
 possible but what the command is.)

http://isunix.it.ilstu.edu/~thockin/pset/

More broadly, there is a process in the schedular which works out CPU
affinity.  This is an algorithm to try and keep individual processes on
a specific CPU to maintain caches and the like.  Of course if the
processor remains busy, the process is swapped over to another CPU.  I
presume you can tweak the affinity algorithm and mabye the affinity of
each process, but I'm not sure about Linux.

So unless you really know what you're doing, you shouldn't need to set a
specific process for a specific CPU as the scheduler should work it 
out.  Though I can see some tasks where it might be useful: mp3 encoding
to not affect your other tasks on a workstation, give VMWare a whole
processor or something like that.

Peter Chubb, jump in here if I'm chewing on my foot.  You actually do
this kinda stuff whereas I just try to understand it :)

-- 
Rev Simon Rumble          Opinions expressed in this email may
[EMAIL PROTECTED]          not reflect those of the host brain.
http://www.rumble.net  


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to