home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / noderun.z / noderun
Encoding:
Text File  |  2002-10-03  |  2.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. nnnnooooddddeeeerrrruuuunnnn((((1111))))                                                          nnnnooooddddeeeerrrruuuunnnn((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      nnnnooooddddeeeerrrruuuunnnn - Run process on specific node (advisory specification)
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      noderun _n_o_d_e-_p_a_t_h _c_o_m_m_a_n_d
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      Run a process on a specific SN0 node. The request is advisory. To specify
  17.      mandatory placement, use rrrruuuunnnnoooonnnn(1) or ddddppppllllaaaacccceeee(1).
  18.  
  19.  
  20. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  21.      To run llllssss(1) on a specific node:
  22.         $ noderun /hw/module/1/slot/n2/node ls
  23.      To run a.out with several arguments:
  24.         $ noderun /hw/module/1/slot/n1/node a.out a b c
  25.  
  26.  
  27. CCCCOOOOMMMMMMMMEEEENNNNTTTTSSSS
  28.      Noderun is implemented as a sssshhhh(1) script using ddddppppllllaaaacccceeee(1) as follows:
  29.  
  30.      if ! test -f /usr/sbin/dplace
  31.      then
  32.      echo "Cannot find /usr/sbin/dplace -- please install"
  33.      exit 1
  34.      fi
  35.  
  36.      if test $# -lt 2
  37.      then
  38.      echo "Usage: $0 <node-name> command"
  39.      exit 1
  40.      fi
  41.  
  42.      if ! test -d $1
  43.      then
  44.      echo "Usage: $0 <node-name> command"
  45.      echo "The node can only be one of the following:"
  46.      find /hw -name node -print
  47.      exit 1
  48.      fi
  49.  
  50.      TMP=/usr/tmp/ndrun$$
  51.      echo "memories 1 topology physical near $1" > $TMP
  52.      echo "threads 1" >> $TMP
  53.      echo "run thread 0 on memory 0" >> $TMP
  54.  
  55.      shift
  56.      /usr/sbin/dplace -migration 0 -place $TMP $@
  57.  
  58.      rm -f $TMP
  59.      exit 0
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. nnnnooooddddeeeerrrruuuunnnn((((1111))))                                                          nnnnooooddddeeeerrrruuuunnnn((((1111))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      ddddppppllllaaaacccceeee(1), The Memory Management Control Interface User's Manual (Books).
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.