Re: How to run a program on multiple CPUs



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

.



Relevant Pages

  • 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
    ... Racqueteer wrote: ... 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. ...
    (comp.os.linux)
  • Re: Concept2 Dynamic Erg
    ... In the warm up exercise the thing that took getting used to was the ... into a 5K R20 session. ... control rate/pace and concentrating really hard on technique. ... When I use the core perform seat on the static I can feel the muscles ...
    (rec.sport.rowing)
  • Re: Climate control not blowing Hot Air anymore
    ... traffic, and since you do not report this, I suspect blockage of the heater ... the the vent control to hot. ... As for a clogged heater core, do you know where the heater core is and ...
    (alt.autos.bmw)
  • Re: Phenom II 975 BE shows 0 celsius
    ... Unfortunately this Mobo died and only found AM3 boards for which my phenom 955 ... Temperature sensor: Yes ... Frequency ID control: No ... activity/temp for each core. ...
    (freebsd-hackers)