Re: How to run a program on multiple CPUs



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.

--

Jerry McBride (jmcbride@xxxxxxxxxx)
.



Relevant Pages

  • Re: How to run a program on multiple CPUs
    ... core 1 whereas application B is assigned to core 2? ... The SMP kernel itself wil schedule a program to the CPU with the ... lowest load. ... You can get all the control you want. ...
    (comp.os.linux)
  • Re: How to run a program on multiple CPUs
    ... Racqueteer wrote: ... Application A assigned to core 1 ... The SMP kernel itself wil schedule a program to the CPU with the ... lowest load. ...
    (comp.os.linux)
  • Re: How to run a program on multiple CPUs
    ... e-teori wrote: ... core 1 whereas application B is assigned to core 2? ... the lowest load. ... You can get all the control you want. ...
    (comp.os.linux)
  • Re: How to run a program on multiple CPUs
    ... core 1 whereas application B is assigned to core 2? ... The SMP kernel itself wil schedule a program to the CPU with the ... lowest load. ... Can you manually dictate where the program will "go" for execution, ...
    (comp.os.linux)