Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8318727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:04:41+00:00 2026-06-08T22:04:41+00:00

I am using openMPI-1.6 on a cluster, which has 8 nodes and each node

  • 0

I am using openMPI-1.6 on a cluster, which has 8 nodes and each node has 8 cores. I am using this command to run my application.

/path/to/mpirun --mca btl self,sm,tcp --hostfile $PBS_NODEFILE -np $num_core /path/to/application

I have run experiments and got the following data.

num node | num core per node | total core | exe time of application |
    1              2                2                8.5 sec
    1              4                4                5.3 sec
    1              8                8                7.1 sec

    2              1                2                11 sec
    2              2                4                9.5 sec
    2              4                8                44 sec //this is too slow

As you can see the execution time of the last row (2 nodes, 8 cores) is too slower than the others. I assumed an overhead using more than one node but I didn’t expect this exponential degradation.

So, my question is that is there any openMPI performance parameters I am missing to run jobs on a cluster using more than one node? I assumed mca btl self,sm,tcp parameter automatically uses the shared-memory option for the communication inside of a node and will use ‘tcp’ option for the communication sent to the outside of a node. Do I understand it correctly?

I know it is hard to tell without knowing the application but I am asking a general parameter tuning which should be independent to the application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:04:43+00:00Added an answer on June 8, 2026 at 10:04 pm
    1. Open MPI is pretty good at guessing the right list of BTLs based on the network and node topology so in general you don’t need to specify it explicitly.
    2. You specify the path to the hosts file created by Torque/PBS. If compiled accordingly, Open MPI supports tight integration with Torque/PBS (via the tm module) and one would not need to specify neither the hosts file nor the number of MPI processes.

    Given all that your code doesn’t seem to scale past 4 MPI processes. It runs slower with 8 processes than with 4 on a single machine. This could be due to memory bandwidth saturation or due to high communication to computation ratio (usually means that your problem size is too small). It is hard to tell which one is the culprint without you showing some more code but I can make the wild guess that it is latter. TCP has very high latency, especially when coupled with slow networks like Ethernet.

    In time one learns to anticipate this kind of ill behaviour on certain type of networks based on the structure of the algorithm but util then I would suggest that you use some MPI profiling or tracing tool to investigate the behaviour of your program. See this question for a list of such tools.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using gcc and OpenMPI . Usually I run MPI programs using the mpirun
Say, I run a parallel program using MPI. Execution command mpirun -n 8 -npernode
I am trying to run some tests using OPENmpi processing data in an array
I have a C++ program using OpenMP, which will run on several machines that
So I have this small application of mine I'm trying to deploy using visual
How does one use MPI_Comm_spawn to start worker processes on remote nodes? Using OpenMPI
I'm currently using openMP to write code running on multi-core nodes. openMP has a
My parallel program is implemented by using c++ and OpenMPI. When I test it,
I have a serial application that I parallelized using OpenMP. I simply added the
I'm using CentOS 5.4 x86_64 and Boost 1.42.0 on a cluster that uses Open-MPI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.