Tuesday, July 8, 2014

mca_oob_tcp_msg_recv: readv failed: Connection reset by peer

I was encountering the error from one of the users.

[compute-node1:00864] [[44805,0],0]-[[44805,1],7] mca_oob_tcp_msg_recv: readv failed: Connection reset by peer (104)
[compute-node1:00864] [[44805,0],0]-[[44805,1],0] mca_oob_tcp_msg_recv: readv failed: Connection reset by peer (104)
[compute-node1:00864] [[44805,0],0]-[[44805,1],1] mca_oob_tcp_msg_recv: readv failed: Connection reset by peer (104)
[compute-node1:00864] [[44805,0],0]-[[44805,1],2] mca_oob_tcp_msg_recv: readv failed: Connection reset by peer (104)
[compute-node1:00864] [[44805,0],0]-[[44805,1],5] mca_oob_tcp_msg_recv: readv failed: Connection reset by peer (104)
--------------------------------------------------------------------------
mpirun has exited due to process rank 3 with PID 869 on
node compute-node1 exiting improperly. There are two reasons this could occur:

1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.

2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).

There are several things to check
  1. Disabled selinux
    vim /etc/selinux/config
    .....
    .....  
    SELINUX=disabled
    .....
    .....

  2. Diagnose your IB Network
    For more information, see Diagnostic Tools to diagnose Infiniband Fabric Information

  3. Check that your memory ulimit configuration is correct for /etc/security/limits.conf. See blog entry A relook at libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes. This will severely limit memory registrations

  4. If your scheduler is torque, you have to configure the pbs_mom, see Default ulimit setting in torque overide ulimit setting

Monday, July 7, 2014

Examine shell and environment variables using set command

Set Command is different from the printenv environment is that the Set Command display both the shell and environment environment. One interesting feature is that it display the output in alphabet order. For more information on printenv. See Examine the Linux Environment using printenv

$ set | less

AMBERHOME=/usr/local/amber10
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="2" [2]="25" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu")
BASH_VERSION='3.2.25(1)-release'
COLORS=/etc/DIR_COLORS.xterm
COLUMNS=157
CVS_RSH=ssh
DIRSTACK=()
EUID=500
GROUPS=()
G_BROKEN_FILENAMES=1
HISTFILE=/home/me/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
HOME=/home/me
HOSTNAME=headnode.cluster.com
HOSTTYPE=x86_64
IFS=$' \t\n'
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LD_LIBRARY_PATH=......
LESSOPEN='|/usr/bin/lesspipe.sh %s'
LINES=46
LOADEDMODULES=
LOGNAME=me
LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'
MACHTYPE=x86_64-redhat-linux-gnu
MAIL=/var/spool/mail/me
MAILCHECK=60
MANPATH=:/opt/xcat/share/man:
MKL_HOME=/opt/intel/mkl/10.2.6.038
....
....
....
....
....

Examine the Linux Environment using printenv

If you wish to examine the environment variables, you can use the command printenv command

$ printenv | less

MODULE_VERSION_STACK=3.2.9
MANPATH=:/opt/xcat/share/man:
HOSTNAME=headnode.cluster.com
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=172.20.4.28 53794 22
SSH_TTY=/dev/pts/3
PERL_BADLANG=0
USER=me
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
LD_LIBRARY_PATH=......................................
XCATROOT=/opt/xcat
MODULE_VERSION=3.2.9
MAIL=/var/spool/mail/me
PATH=...........................
INPUTRC=/etc/inputrc
PWD=/home/me
LANG=en_US.UTF-8
MODULEPATH=/usr/local/Modules/contents
LOADEDMODULES=
MKL_HOME=/opt/intel/mkl/10.2.6.038
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/home/me

PBS_DEFAULT=headnode.cluster.com
LOGNAME=me
CVS_RSH=ssh
SSH_CONNECTION=xxx.xxx.xxx.xxx 22
MPI_HOME=/usr/local/mpi/intel
MODULESHOME=/usr/local/Modules/3.2.9
LESSOPEN=|/usr/bin/lesspipe.sh %s
AMBERHOME=/usr/local/amber10
G_BROKEN_FILENAMES=1
module=() {  eval `/usr/local/Modules/$MODULE_VERSION/bin/modulecmd bash $*`
}
_=/usr/bin/printenv

Thursday, July 3, 2014

Error while loading shared libraries: libXmu.so.6: cannot open shared object file: No such file or directory on CentOS 6

If you using gaussview and you encountered this error on CentOS 6 or RH6, 

$ /usr/local/gaussian/gv/gview.exe: error while loading shared libraries: 
libXmu.so.6: cannot open shared object file: No such file or directory

This is due to the missing libXmu libraries and related dependencies. Just simply do a

# yum install libXmu*

or if you wish to check which repo supplies the libXmu

# yum whatprovides libXmu

libXmu-1.1.1-2.el6.i686 : X.Org X11 libXmu/libXmuu runtime libraries
Repo        : base
Matched from:

libXmu-1.1.1-2.el6.x86_64 : X.Org X11 libXmu/libXmuu runtime libraries
Repo        : base
Matched from:

libXmu-1.1.1-2.el6.i686 : X.Org X11 libXmu/libXmuu runtime libraries
Repo        : installed
Matched from:
Other       : Provides-match: libXmu

Wednesday, July 2, 2014

Food. Water. Data Center

This is a very hilarious short video clip titled "Food. Water. Data Center" from Intel .

From ATMs to GPS navigation the data center powers our day. What would a day without the data center look like