Re: How to run a program on multiple CPUs
- From: e-teori <lyngbytest_nospam_@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 06 Jan 2008 03:29:14 +0100
Den Sat, 05 Jan 2008 15:06:13 -0500. skrev Jerry McBride:
Racqueteer wrote:
On Fri, 04 Jan 2008 10:37:36 +0100, Jurgen Haan wrote:
Racqueteer wrote:
Let's try this from a different perspective... Is Linux able to assign
a program to one or the other processor? Application A assigned to
core 1 whereas application B is assigned to core 2? This can be done
in "the other os" (no disrespect to vestigial os/2 users intended).
Well... The SMP kernel itself wil schedule a program to the CPU with the
lowest load. That's probably behaviour that you want.
Can you manually dictate where the program will "go" for execution, or is
this decision purely done behind the scenes? I suppose that really
doesn't matter so long as the default behavior tends to equalize the load
(s).
It's built into the scheduler. You have no control.
Not correct. You can get all the control you want.
man taskset <enter> should tell you all that you need, but for the
topicstarters benefit, since he probably don't have a *nix machine
running, here's a link to that man page online :
http://linux.die.net/man/1/taskset
Rgds.
e-teori
.
- Follow-Ups:
- Re: How to run a program on multiple CPUs
- From: Jerry McBride
- Re: How to run a program on multiple CPUs
- References:
- Re: How to run a program on multiple CPUs
- From: Racqueteer
- Re: How to run a program on multiple CPUs
- From: Jurgen Haan
- Re: How to run a program on multiple CPUs
- From: Racqueteer
- Re: How to run a program on multiple CPUs
- From: Jerry McBride
- Re: How to run a program on multiple CPUs
- Prev by Date: Re: How to run a program on multiple CPUs
- Next by Date: Re: How to run a program on multiple CPUs
- Previous by thread: Re: How to run a program on multiple CPUs
- Next by thread: Re: How to run a program on multiple CPUs
- Index(es):
Relevant Pages
|