Torque Job Scheduling System installation system environment: RHEL6.0 selinux and iptables disabled 1. vi/etc/hosts (all nodes) 192.168.0.82 done # scheduling end 192.168.0.82 running top82.example.com # Node 1194250.76 running top82.example.com # Node 2 ~ # Yum install gcc-c ++ tcl-devel tk-devel make-y # install dependencies ~ # Tar zxf torque-3.0.0.tar.gz ~ # Cd torque-3.0.0 ~ #./Configure -- with-rcp = scp-with-default-server = shorttop82.example.com ~ # Make & make install ~ # Make packages ~ # Cd contrib/init. d /~ # Cp pbs_server pbs_sched pbs_mom/etc/init. d /~ # Scp pbs_mom reply top76.example.com:/etc/init. d /~ # Cd torque-3.0.0 # in this directory ~ # Scp torque-package-clients-linux-x86_64.sh 192.168.0.76 :~ #./Torque. setup rootinitializing TORQUE (admin: root@desktop82.example.com) Max open servers: 4Max open servers: 4 ~ # Cd/var/spool/torque /~ # Cd server_priv /~ # Vi nodesdesktop82.example.comdesktop76.example.com ~ # Cd ..~ # Cd mom_priv /~ # Vi config $ pbsserver reply top82.example.com $ logevent 255 ~ # Qterm-t quick ~ #/Etc/init. d/pbs_server start ~ #/Etc/init. d/pbs_sched start ~ #/Etc/init. d/pbs_mom start Node installation [root @ brief top76 ~] #./Torque-package-clients-linux-x86_64.sh -- install Installing TORQUE archive... Done. [root @ override top76 ~] #./Torque-package-mom-linux-x86_64.sh -- install Installing TORQUE archive... Done. [root @ override top76 ~] # Cd/var/spool/torque/[root @ brief top76 torque] # lsaux mom_logs export server_name.new export mom_priv server_name spool [root @ brief top76 torque] # cd mom_priv/[root @ brief top76 mom_priv # lsjobs [root @ shorttop76 mom_priv] # vi config $ pbsserver extends top82.example.com $ logevent 255 [root @ shorttop76 mom_priv] #/etc/init. d/pbs_mom startStarting TORQUE Mom: [OK] Two test scripts vi job1.pbs #! /Bin/bash # PBS-N job1 # PBS-o job1.log # PBS-e job1.err # PBS-q batchcd/home/wxhecho Running on hosts 'hostname' echo Time is 'date' echo Directory is $ PWDecho This job runs on the following nodes: cat $ PBS_NODEFILEecho This job has allocated 1 node. /progvi job2.pbs #! /Bin/bash # PBS-N job2 # PBS-o job2.log # PBS-e job2.err # PBS-q batch # PBS-l nodes = 2cd/home/wxhecho Time is 'date' echo Directory is $ PWDecho This job runs on the following nodes: cat $ PBS_NODEFILENPROCS = 'wc-l <$ PBS_NODEFILE 'echo This job has allocated $ NPROCS nodesmpiexec-machinefile $ PBS_NODEFILE-np $ NPROCS. /prog vi prog #! /Bin/bashecho 1000000000 |. /icpi-64chmod + x prog qsub job1.pbs # submit job qstatJob id Name User Time Use S Queue --------------------------- ------------------------- -------------- 0. reply top82 job1 phl 00:00:55 C batch pbsnodes?top82.example. comstate = job-exclusivenp = 1 ntype = clusterjobs = 0/4. optional top82.example. comstatus = rectime = 1345343566, varattr =, jobs =, state = free, netload = 113125565, gres =, loadave = 0.55, ncpus = 1, physmem = 288352kb, availmem = 1131044kb, totmem = 11735672kb, idletime = 2251, nusers = 1, nsessions = 2, sessions = 2877 1451, uname = Linux kernel top82.example.com 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64, opsys = linuxmom_service_port = 15002mom_manager_port = 15003 gpus = 0 topics top76.example. comstate = freenp = 1 ntype = clusterstatus = rectime = 1345343552, varattr =, jobs = 3.20.top82.example.com, state = free, netload = 101075269, gres =, loadave = 0.48, ncpus = 1, physmem = 288344kb, availmem = 12967884kb, totmem = 13541040kb, idletime = 5884, nusers = 1, nsessions = 2, sessions = 3370 3837, uname = Linux kernel 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64, opsys = linuxmom_service_port = 15002mom_manager_port = 15003 gpus = 0 qsub job2.pbs # submit the job qstatpbsnodes=top82.example. comstate = job-exclusivenp = 1 ntype = clusterjobs = 0/4. optional top82.example. comstatus = rectime = 1345343608, varattr =, jobs = 4.20.top82.example.com, state = free, netload = 113180660, gres =, loadave = 0.48, ncpus = 1, physmem = 288352kb, availmem = 12953584kb, totmem = 13541160kb, idletime = 2296, nusers = 1, nsessions = 2, sessions = 2877 1451, uname = Linux kernel top82.example.com 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64, opsys = linuxmom_service_port = 15002mom_manager_port = 15003 gpus = 0 topics top76.example. comstate = job-exclusivenp = 1 ntype = clusterjobs = 0/5. optional top82.example. comstatus = rectime = 1345343597, varattr =, jobs =, state = free, netload = 101253719, gres =, loadave = 0.27, ncpus = 1, physmem = 288344kb, availmem = 14590964kb, totmem = 15346512kb, idletime = 5929, nusers = 1, nsessions = 1, sessions = 3370, uname = Linux kernel top76.example.com 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64, opsys = linuxmom_service_port = 15002mom_manager_port = 15003 gpus = 0