noderun(1) noderun(1)
noderun - Run process on specific node (advisory specification)
noderun node-path command
Run a process on a specific SN0 node. The request is advisory. To specify
mandatory placement, use runon(1) or dplace(1).
To run ls(1) on a specific node:
$ noderun /hw/module/1/slot/n2/node ls
To run a.out with several arguments:
$ noderun /hw/module/1/slot/n1/node a.out a b c
Noderun is implemented as a sh(1) script using dplace(1) as follows:
if ! test -f /usr/sbin/dplace
then
echo "Cannot find /usr/sbin/dplace -- please install"
exit 1
fi
if test $# -lt 2
then
echo "Usage: $0 <node-name> command"
exit 1
fi
if ! test -d $1
then
echo "Usage: $0 <node-name> command"
echo "The node can only be one of the following:"
find /hw -name node -print
exit 1
fi
TMP=/usr/tmp/ndrun$$
echo "memories 1 topology physical near $1" > $TMP
echo "threads 1" >> $TMP
echo "run thread 0 on memory 0" >> $TMP
shift
/usr/sbin/dplace -migration 0 -place $TMP $@
rm -f $TMP
exit 0
Page 1
noderun(1) noderun(1)
dplace(1), The Memory Management Control Interface User's Manual (Books).
PPPPaaaaggggeeee 2222 [ Back ]
|