Codium Logo Codium Logo
  • Services
    • Strategy
      • Technology Partner
      • UI / UX Design
      AI
      • AI Consulting
      • AI Reporting
    • Development
      • Software Development
      • Mobile App Development
      • Software Integration
      • Hardware Integration
      • Microsoft Access Databases
      • Replace Spreadsheets
    • Managed services
      • Software Takeover
      • Software Support (SLA)
      • Managed Hosting
      • Private AI Hosting
      • On-Premise AI
  • Industries
  • Our Work
  • About
  • Blog
Blog

A Ubuntu MPI Cluster (PART 1 - server setup)

20 September 2008
Distributive computing has been around for a long time and there are many different ways of doing it. Today i will be looking at the Message Passing Interface (MPI) standard and will be using the MPICH2 sources provided from http://www.mcs.anl.gov/research/projects/mpich2/

On such a cluster you can run any application that has been designed for MPI, for some benchmarks i ran John The Ripper. (you can get the MPI version here: http://www.bindshell.net/tools/johntheripper/john-1.7.3.1-all-2-mpi8.tar.gz)

Results of the benchmark

No MPI:

Benchmarking: Traditional DES [128/128 BS SSE2]... DONE Many salts: 1986K c/s real, 1982K c/s virtual

MPI (4 cores over 2 machines)

Benchmarking: Traditional DES [128/128 BS SSE2]... DONE Many salts: 5151K c/s real, 5151K c/s virtual

As you can see its about a 3 fold improvement.

I have decided to go with Ubuntu for the base system as I'm most familiar with this distro.

Configure the Head Node:

Download the necessary packages
sudo apt-get install nfs-kernel-server openssh-server build-essential
Create the share for NFS
sudo mkdir /mirror
sudo mkdir /mirror/mpiu


run the following to add "/mirror *(rw,sync)" to /etc/exports

echo /mirror *(rw,sync) >> /etc/exports


restart NFS

sudo /etc/init.d/nfs-kernel-server restart


Create a user for the cluster
sudo useradd -d /mirror/mpiu
sudo passwd mpiu
su mpiu
sudo chown mpiu /mirror
Now we setup SSH
ssh-keygen -t dsa
*Don't set a passphrase

Add the key to Authoirzed keys
cd ~/.ssh

cat id_dsa.pub >> authorized_keys
Download MPICH2
wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.0.7/mpich2-1.0.7.tar.gz

mkdir /mirror/mpich2

tar -xvf mpich2-1.0.7.tar.gz

cd mpich2-1.0.7

./configure --prefix=/mirror/mpich2

make

sudo make install


Now add the following lines to /mirror/mpiu/.bashrc
export PATH=/mirror/mpich2/bin:$PATH

export PATH

LD_LIBRARY_PATH="/mirror/mpich2/lib:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH


Now edit /etc/environment and add the following

/mirror/mpich2/bin


Add the hostnames of the machines which are in the cluster into ~/mpd.hosts (currently there will be none if this is your server)

And then run the following commands
 echo secretword=password >> ~/.mpd.conf
sudo chmod 600 ~/.mpd.conf


And there you go, a MPI server running on ubuntu 8.04

A Ubuntu MPI Cluster (PART 2 - client setup) (coming soon!)
2008
Keep reading

More from the blog

ASD has warned about AI agents going off-script. Here is how we keep ours in line
21 Oct 2026

ASD has warned about AI agents going off-script. Here is how we keep ours in line

On 25 September the Australian Signals Directorate published a High alert about AI agents doing things nobody asked them to do. If...

Has your business outgrown Excel? Seven signs, and what to do about each one
15 Oct 2026

Has your business outgrown Excel? Seven signs, and what to do about each one

Spreadsheets fail slowly, so nobody notices the day they stop being a tool and start being the system. Here are the signs, the fix...

What has changed in custom software development over the last 12 months
2 Sep 2026

What has changed in custom software development over the last 12 months

Software development continues to evolve quickly, but the last 12 months have seen some particularly significant changes in the wa...

All articles

Want to talk about your own project?

Tell us what's slowing your business down. One of our digital strategists will talk it through with you.

Get in touch Call 1300 887 103
Codium Logo
Codium Pty Ltd.
Ground Floor, 207 Greenhill Road
Eastwood, 5063
Adelaide, South Australia
  • 1300 887 103
  • sales@codium.com.au

Development

  • Software Development
  • Mobile Apps
  • Software Integration
  • Hardware Integration
  • Microsoft Access
  • Replace Spreadsheets

Managed Services

  • Software Takeover
  • Software Support (SLA)
  • Managed Hosting
  • Private AI Hosting
  • On-Premise AI

AI

  • AI Consulting
  • AI Reporting

Strategy

  • Technology Partner
  • UI / UX Design
  • Due Diligence (M&A)
  • Why Projects Succeed
  • What Software Costs
  • What AI Consulting Costs

Technologies

  • PHP · Laravel
  • JavaScript · Vue.js
  • AWS

Company

  • About Us
  • Industries
  • Our Work
  • Blog
  • Careers
  • Contact Us
  • Customer Feedback
  • Remote Support

© Codium Pty Ltd. All Rights Reserved.

  • Terms of Business
  • Privacy Policy
  • Quality Policy
  • Security Policy
  • Customer Experience Charter
Back Top
Codium
Services
All services Strategy
  • Technology Partner
  • UI / UX Design
  • Technology Due Diligence
  • Why Projects Succeed
  • What Software Costs
  • What AI Consulting Costs
Development
  • Software Development
  • Mobile App Development
  • Software Integration
  • Hardware Integration
  • Microsoft Access Databases
  • Replace Spreadsheets
Managed services
  • Software Takeover
  • Software Support (SLA)
  • Managed Hosting
  • Private AI Hosting
  • On-Premise AI
AI
  • AI Consulting
  • AI Reporting
Industries
All industries
  • Construction
  • Finance
  • Government
  • Health
  • Insurance
  • Manufacturing
  • Mining
  • Retail & E-commerce
  • Transport & Logistics
Our Work About Blog
Get in touch Call 1300 887 103