CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Two instances of lamd

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2007, 15:58
Default Is it possible to have two ins
  #1
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Is it possible to have two instances of lamd on one 4 CPU machine (for instance). Then one could run two 2-CPU jobs independent of each other.
msrinath80 is offline   Reply With Quote

Old   August 10, 2007, 16:12
Default Got it. Using varying values o
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Got it. Using varying values of the environment variable LAM_MPI_SESSION_SUFFIX before running lamboot.
msrinath80 is offline   Reply With Quote

Old   August 10, 2007, 16:37
Default Hey Srinath, Quick question
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hey Srinath,

Quick question... what happens if you have a 4 CPU machine, and you run lamboot once...

And then, run "mpirun -np 2 ......." two times? Wont the Linux kernel automatically assign two processors for one "mpirun", and the other two for the second "mpirun" ??

I very often run one parallel run (with two processors...using one "mpirun -np 2 ...."), and one normal run on a Quad Core.

I have found that leaving one processor in a Quad Core free actually speeds things up, compared to a parallel run which uses all 4 processing cores....would you able to confirm that for me ?

Have a nice evening!

Philippose
philippose is offline   Reply With Quote

Old   August 10, 2007, 17:36
Default Quick question... what happens
  #4
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Quick question... what happens if you have a 4 CPU machine, and you run lamboot once...

And then, run "mpirun -np 2 ......." two times? Wont the Linux kernel automatically assign two processors for one "mpirun", and the other two for the second "mpirun" ??

Frankly, I don't know! I think it depends on how many nodes you specified in the machines file you supplied to lamboot.

With regards to the quad-core, my analysis can be found here[1].

Hope that helps!

[1] http://www.cfd-online.com/OpenFOAM_D...tml?1181823034
msrinath80 is offline   Reply With Quote

Old   August 10, 2007, 18:05
Default Hmmmm..... When you use "mpiru
  #5
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hmmmm..... When you use "mpirun -np <n>", you dont need to specify the number of nodes for the lamboot command....

I usually use a file called "machines", in which I put in the IP of the machine I use... example:

127.0.0.1

Thats it... and then... "lamboot -v machines"

Specification of the number of nodes is done in the "mpirun -np <n>" command.

Anyway... shall try this out on Monday... no access to the Quad core over the weekend.

Have a nice weekend!

Philippose
philippose is offline   Reply With Quote

Old   August 10, 2007, 18:10
Default I'm pretty sure of one thing t
  #6
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
I'm pretty sure of one thing though. One instance of the LAM daemon (lamd) cannot support two separate MPI instances. Otherwise I wonder why would they provide for a LAM_MPI_SESSION_SUFFIX variable?

Anyways, I eagerly look forward to your quad-core results.
msrinath80 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:02.