Good Afternoon Tanushree:
Please examine the code in nodeReport.sh script.
It is merely trying to collect together some numbers
to place into nodeInfo/<ip address>.ms
You can do this collection yourself:
1. the IP address of the computer you want parasol to use
2. the number of CPUs to use in parasol
3. the amount of memory available on the machine
4. the amount of space for temporary storage in /dev/shm/
For the IP address, you can use the 'ifconfig' command to find
the IP address of your machine:
/usr/sbin/ifconfig -a | grep inet
will show several addresses, use the one that belongs to the
subnet for your computer.
This command will show you the number of CPUs/cores on your computer:
grep processor /proc/cpuinfo | wc -l
Reduce that number by 2 if there are more than 2 to reserve 2 CPUs
for the operating system and the parasol processes.
The amount of memory on your computer can be found:
grep -w MemTotal /proc/meminfo
that is most likely outputting Kbytes, convert to Mbytes:
grep -w MemTotal /proc/meminfo | awk '{print 1024*(1+int($2/(1024*1024)))}'
The space to use for temporary storage in /dev/shm can be calculated:
df -k /dev/shm | grep dev/shm | awk '{printf "%d\n", 512*(1+int($2/(1024*1024)))}'
This allocates half of the space of /dev/shm for this use.
Then, these numbers are placed into the <ip address>.ms file
where the columns have these meanings:
# can see this info from the paraHub usage message
# name - Network name
# cpus - Number of CPUs we can use
# ramSize - Megabytes of memory on the machine
# tempDir - Location of (local) temp dir
# localDir - Location of local data dir
# localSize - Megabytes of local disk
# switchName - Name of switch this is on (not used, can be anything)
# note: the default ram available to an single job will be:
# ramSize / cpus
# in this case: 20480/20 == 1024 Mb == 1G
# the 32768 for localSize is == 32 Gb in /dev/shm
123.123.123.123 20 20480 /dev/shm /dev/shm 32768 bsw
The installation of the parasol programs do not need to be in '/data/parasol/'
That is merely an example. You can place them anywhere and they do not need
to be owned as 'root' user. Add the bin/ directory where all the kent commands are
to your shell PATH setting.
Adjust the path names for your installed location in the 'initParasol' script which
expects find the <ip address>.ms file in a subdirectory: ./nodeInfo/*.ms