update PE env vars and added other PE kit files to make this dir complete

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2013-04-16 18:19:35 +00:00
parent 79cf47513e
commit cf032d05d6
3 changed files with 119 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<HTML>
<HEAD>
<TITLE>PE RTE Documentation</TITLE>
<meta http-equiv="REFRESH" content="0;url=http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/topic/com.ibm.cluster.pe.doc/pebooks.html"></HEAD>
<BODY>
Redirecting to:
http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/topic/com.ibm.cluster.pe.doc/pebooks.html
</BODY>
</HTML>

View File

@ -0,0 +1,40 @@
#!/bin/sh
#
#
# For Linux:
# - Generate mpi modules
# - Generate and store checkpoint key
# - BSR support configuration
# Generate mpi modules
gen_xlf=`grep PE_LATEST_LEVEL /etc/ppe.cfg | cut -f2 -d ' ' `/mpich2/sbin/xlf_gen_mpimod
if [ -x $gen_xlf ] ; then
$gen_xlf
fi
if [ ! -z "$NODESETSTATE" ]; then
if [ "$NODESETSTATE" != "netboot" ] || [ "$NODESETSTATE" != "statelite" ]; then
/sbin/srcmstr &
stopsrc -s pnsd
startsrc -s pnsd
fi
fi
#Generate checkpoint key and store it into the image, ckpt script could ust it after boot.
# KEY=$(dd if=/dev/random count=1 2>/dev/null | sha1sum | awk '{print $1}')
# echo $KEY > /root/.ckpt.key
# chmod 400 /root/.ckpt.key
#
# BSR configuration, uncomment the following lines to enable BSR configuration on Power Linux cluster.
# groupadd bsr
# mkdir -p /var/lib/bsr
# chown root:bsr /var/lib/bsr
# chmod g+sw /var/lib/bsr
# pelinks script support, uncomment the following lines and change to the correct pe version that you intend to use.
#PE_VERSION=1202
# if [ -f "/proc/cmdline" ]; then
# MP_CONFIG=$PE_VERSION /opt/ibmhpc/pe$PE_VERSION/ppe.poe/bin/pelinks
# fi

View File

@ -0,0 +1,70 @@
#!/bin/sh
#
#
# For Linux:
# - Create a smaller PNSD log file in /tmp
# - Configure poe.limits file
# - Generate and store checkpoint key
# - BSR support configuration
# Configure the PNSD.cfg to use a smaller log so it doesn't use so much memory
# for a stateless image. Normally, pnsd creates this file if it does not
# exist, but it will not fill it in if it does exist.
if [ ! -f /etc/PNSD.cfg ]; then
echo "log_file = /tmp/serverlog" > /etc/PNSD.cfg
echo "log_file_size = 2097152" >> /etc/PNSD.cfg
echo "socket_file = /tmp/PNSD" >> /etc/PNSD.cfg
else
/bin/sed -i 's/log_file_size = .*/log_file_size = 2097152/g' /etc/PNSD.cfg
if [ -f "/proc/cmdline" ]; then
stopsrc -s pnsd
startsrc -s pnsd
fi
fi
# Configure the poe.limits file
if [ ! -f /etc/poe.limits ]; then
echo "MP_POE_LAUNCH=all" > /etc/poe.limits
else
/bin/sed -i 's/MP_POE_LAUNCH=.*/MP_POE_LAUNCH=all/g' /etc/poe.limits
fi
# POE requires rsh to be running
/bin/sed -i 's/disable.*/disable = no/g' /etc/xinetd.d/rsh
if [ -f "/proc/cmdline" ]; then
chkconfig xinetd on
service xinetd restart
fi
#max locked memory
if ! grep "max locked memory" /etc/security/limits.conf >/dev/null 2>&1 ; then
sed -i "/# End of file/d" /etc/security/limits.conf
echo "#max locked memory" >> /etc/security/limits.conf
echo "* soft memlock unlimited" >> /etc/security/limits.conf
echo "* hard memlock unlimited" >> /etc/security/limits.conf
echo "# End of file" >> /etc/security/limits.conf
fi
#max nofile configuration
if ! grep "max nofile" /etc/security/limits.conf >/dev/null 2>&1 ; then
sed -i "/# End of file/d" /etc/security/limits.conf
echo "#max nofile" >> /etc/security/limits.conf
echo "* soft nofile 4096" >> /etc/security/limits.conf
echo "* hard nofile 4096" >> /etc/security/limits.conf
echo "# End of file" >> /etc/security/limits.conf
fi
# several sysctl parameters.
if ! grep "ppe rte sysctl parameters" /etc/sysctl.conf >/dev/null 2>&1 ; then
echo "#ppe rte sysctl parameters" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048576" >> /etc/sysctl.conf
echo "net.core.rmem_max = 8388608" >> /etc/sysctl.conf
echo "net.ipv4.ipfrag_low_thresh = 1048576" >> /etc/sysctl.conf
echo "net.ipv4.ipfrag_high_thresh = 8388608" >> /etc/sysctl.conf
fi
if [ -f "/proc/cmdline" ]; then
/sbin/sysctl -p
fi