#!/bin/bash ulimit -n 65536 ulimit -s unlimited ulimit -l unlimited ulimit -c unlimited ulimit -m unlimited LD_LIBRARY_PATH=/lib:/fuse/lib:/fuse/usr/lib PATH=/fuse/bin:/fuse/usr/bin:$PATH RANK=`echo $CONTROL_INIT | awk -F, '{print $4}'` MODULO=`expr $RANK % 64` mount -t ramfs none /dev/shm IP="" set_torus_ip() { x=$1 y=$2 z=$3 z=`expr $3 + 1` ifconfig eth1 12.$x.$y.$z netmask 255.0.0.0 mtu 8996 -arp IP=12.$x.$y.$z } BG_PSETORG=`cat /proc/personality.sh | grep BG_PSETORG | cut -d '"' -f 2` echo ${BG_PSETORG} >> /dev/shm/localip set_torus_ip $BG_PSETORG #Above code is setting the ip address for CN on torus network if [ "$MODULO" = "0" ] then #Compute nodes with Rank 0, 64, 128, 192, 256, ... do this sleep 3600 else #Ohter compute node do this sleep 3600 fi