[MPICH] MPICH2 & Firewall Ports

Jonathan Schreiter jonathanschreiter at yahoo.com
Mon Jan 2 17:25:32 CST 2006


Hi,
I'm new to MPICH2, and I just installed MPICH2 1.0.3
with the smpd process manager.  If I run smpd -s
typically two ports will show up when I run a netstat
-p -a | grep smpd - for example the process # is 2481

tcp        0      0 *:8676                      *:*   
                     LISTEN      2481/smpd
tcp        0      0 *:32777                     *:*   
                     LISTEN      2481/smpd

If I try to run smpd with a specific port, such as:
smpd -s -p 6502

tcp        0      0 *:6502                      *:*   
                     LISTEN      2528/smpd
tcp        0      0 *:32779                     *:*   
                     LISTEN      2528/smpd

I would like to keep my firewall enabled (iptables on
FC4 linux) when using MPICH2.  It seems that the
second port entry (32777, 32779, etc) is randomly
assigned during startup, even with a specified port. 
I checked the install and users guide and I cannot
find any references to this.  

Specifically, if I open port 6502 on the iptables
firewall, then run smpd -s -p 6502, then try to run
smpd -shutdown I recieve lots of (firewall related)
errors such as:

[00:2551]....ERROR:op_connect error: socket connection
failed, error stack:
MPIDU_Socki_handle_connect(806): connection failure
(set=1,sock=16777216,errno=111:Connection refused)
[00:2551].....ERROR:unable to connect to the smpd,
socket connection failed, error stack:
MPIDU_Socki_handle_connect(806): connection failure
(set=1,sock=16777216,errno=111:Connection refused).
[00:2551]......ERROR:unable to post a write for the
next command,
sock error: socket operation in progress, error stack:
MPIDU_Sock_post_writev(708): sock is in the process of
being closed locally (set=1,sock=16777216)
[00:2551].....ERROR:unable to post a write of the
close command to tear down the job tree as part of the
abort process.

What is the second randomly assigned port's function -
and can I assign this static?  Is there perhaps a
better way to enable a firewall with MPICH2 / SMPD? 
Any help would be greatly appreciated!

Many thanks,
Jonathan




More information about the mpich-discuss mailing list