This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:moab [2011/08/11 17:38] kevin |
guide:moab [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======A Guide to the //Moab// Job Scheduler at the CHPC====== | + | ======A Guide to the Moab Job Scheduler at the CHPC====== |
| + | |||
| + | To submit jobs to run on CHPC systems, you must write a shell script that will run your job, and then use '' | ||
| ====SUN HYBRID SYSTEM==== | ====SUN HYBRID SYSTEM==== | ||
| Line 7: | Line 9: | ||
| The Sun system is divided into // | The Sun system is divided into // | ||
| + | - '' | ||
| + | - '' | ||
| - '' | - '' | ||
| - '' | - '' | ||
| - '' | - '' | ||
| - '' | - '' | ||
| - | - '' | + | - '' |
| - | Users can specify different cluster partitions by adding a '' | + | Users can specify different cluster partitions by adding a '' |
| - | msub -l partition=nehalem | + | msub -l feature=nehalem |
| You are able to choose more than one partition, provided, of course, your code can execute on the requested hardware. The syntax looks like: | You are able to choose more than one partition, provided, of course, your code can execute on the requested hardware. The syntax looks like: | ||
| - | msub -l partition=nehalem|harpetown | + | msub -l feature=nehalem|harpertown |
| + | to use both '' | ||
| + | |||
| + | |||
| + | ===Sun and Dell Westmere Clusters=== | ||
| + | |||
| + | The new **Westmere** clusters are now open to be used and we hope that this will reduce the waiting time and the number of queuing jobs. The new Westmere clusters have their own partitions called "'' | ||
| + | |||
| + | **NB:** The new Dell cluster runs a different O/S from the Sun clusters. | ||
| + | |||
| + | Please note that each node of Westmere has **12 cores**, so please change the processes per node value from '' | ||
| + | |||
| + | To run on one of the Westmere clusters specify the '' | ||
| + | |||
| + | For example, in your script | ||
| + | #MSUB -l feature=westmere | ||
| + | #MSUB -l nodes=1: | ||
| + | |||
| + | Or on the command line | ||
| + | msub -l feature=westmere -l nodes=1: | ||
| + | See the **// | ||
| ===QUEUES=== | ===QUEUES=== | ||
| Line 41: | Line 65: | ||
| e.g. using "msub -l nodes=1: ppn=8 and msub -l walltime" | e.g. using "msub -l nodes=1: ppn=8 and msub -l walltime" | ||
| - | Job script example: | + | ===Job script example:=== |
| - | 1.MPI job | + | ===MPI job=== |
| - | + | ||
| - | #vi mpi.job | + | |
| - | + | ||
| - | ---------------------------------------------------------------------------------------------- | + | |
| + | Edit the file with, for example, | ||
| + | <file bash mpi.job> | ||
| #/bin/sh | #/bin/sh | ||
| #MSUB -l nodes=1: | #MSUB -l nodes=1: | ||
| - | #MSUB -l partition=nehalem|harpertown | + | #MSUB -l feature=nehalem|harpertown |
| #MSUB -l walltime=3: | #MSUB -l walltime=3: | ||
| #MSUB -m be | #MSUB -m be | ||
| #MSUB -V | #MSUB -V | ||
| - | #MSUB -o / | + | #MSUB -o / |
| - | #MSUB -e / | + | #MSUB -e / |
| - | #MSUB -d / | + | #MSUB -d / |
| #MSUB -mb | #MSUB -mb | ||
| ##### Running commands | ##### Running commands | ||
| Line 63: | Line 85: | ||
| nproc=`cat $PBS_NODEFILE | wc -l` | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| mpirun -np $nproc -machinefile $PBS_NODEFILE $exe > users.out | mpirun -np $nproc -machinefile $PBS_NODEFILE $exe > users.out | ||
| - | ---------------------------------------------------------------------------------------------------- | + | </ |
| - | To submit this job (mpi.job) | + | |
| - | #msub mpi.job | + | |
| - | by default the job will be submitted to small queue since I have requested | + | To submit this job (the '' |
| - | 2.Interactive job | + | |
| - | You have to specify -I flag when submitting your job | + | |
| - | 3.Test job | + | |
| - | Users can use the same script and just change the walltime to 10 minutes or less and #MSUB -l | + | By default the job will be submitted to small queue since it only requests |
| - | partition=nehalem|harpertown to #MSUB -l partition=test. | + | |
| - | GPU CLUSTER | + | **NB:** Your job MUST be located on the scratch partition, otherwise it will fail to run. |
| - | PARTITIONS | + | |
| - | 1.C2070 [8 of this GPU cards are available] | + | ===Interactive job=== |
| - | 2.C1060 [12 of this GPU cards are available] | + | |
| - | Note that GPU cluster has 5 compute nodes and each node has 16 processors and 4 GPU`s | + | You have to specify |
| - | Job script example: | + | |
| - | 1.MPI job over infiniband | + | msub -I |
| - | # vi mpi.job | + | |
| - | ------------------------------------------------------------------------------------- | + | There will be a delay while the scheduler allocates and logs you into a free compute node. You can target |
| + | a specific free node: | ||
| + | |||
| + | msub -I -l nodes=cnode-9-23 | ||
| + | |||
| + | ===Test jobs=== | ||
| + | |||
| + | Users can use the same script and just change the walltime to 10 minutes or less and then change | ||
| + | | ||
| + | to | ||
| + | | ||
| + | in the job script. | ||
| + | |||
| + | ====GPU CLUSTER==== | ||
| + | |||
| + | ===PARTITIONS=== | ||
| + | |||
| + | - //C2070// (8 of these Nvidia // | ||
| + | - //C1060// (12 of these Nvidia // | ||
| + | |||
| + | Note that GPU cluster has 5 compute nodes and each node has 16 processors and 4 GPUs. In addition the head node (login node) has one each of C2070 and C1060 GPU cards. | ||
| + | |||
| + | ===Job script example:=== | ||
| + | |||
| + | ===MPI job over infiniband=== | ||
| + | |||
| + | Edit with '' | ||
| + | <file bash mpi.job> | ||
| ###These lines are for Moab | ###These lines are for Moab | ||
| #MSUB -l nodes=2: | #MSUB -l nodes=2: | ||
| - | #MSUB -l partition=c2070 | + | #MSUB -l feature=c2070 |
| #MSUB -l walltime=168: | #MSUB -l walltime=168: | ||
| #MSUB -m be | #MSUB -m be | ||
| Line 104: | Line 153: | ||
| cd / | cd / | ||
| mpirun $nproc $exe > / | mpirun $nproc $exe > / | ||
| - | --------------------------------------------------------------------------------------------- | + | </ |
| - | #msub mpi.job ###To submit your job | + | |
| - | In this example we have requested 4 C2070 GPU`s and 32 processors | + | |
| - | ====BlueGene/ | ||
| - | Users can only use 32, 64, 128, 256 or 512 processors (ppn). | + | Type '' |
| - | Job script | + | In this example |
| - | 1.MPI job | + | ====(Obsolete) BlueGene/P CLUSTER==== |
| - | # vi mpi.job | + | The BlueGene has been decommissioned and is no longer available. |
| - | ------------------------------------------------ | + | |
| + | Users can only use 32, 64, 128, 256 or 512 processors ('' | ||
| + | |||
| + | ===Job script example: | ||
| + | |||
| + | ===MPI job=== | ||
| + | |||
| + | The '' | ||
| + | <file bash mpi.job> | ||
| ###These lines are for Moab | ###These lines are for Moab | ||
| #MSUB -l ppn=128 | #MSUB -l ppn=128 | ||
| Line 130: | Line 184: | ||
| / | / | ||
| -mode VN -exe LOCATIONOFTHEEXECUTABLE | -mode VN -exe LOCATIONOFTHEEXECUTABLE | ||
| - | ------------------------------------------------ | + | </ |
| - | #msub mpi.job | + | As before, use '' |
| - | The following CHPC HPC systems (Sun Microsytems, | ||
| - | Sun Microsystems - Moab (Scheduler) and Torque (Resource manager). | + | ======Moab Summary====== |
| - | Blue Gene/P - Loadleveler (Resource manager). | + | |
| - | GPU - Torque (Resources manager) | + | |
| - | SUBMITTING A JOB USING MOAB | + | |
| + | ====SUBMITTING A JOB USING MOAB==== | ||
| - | | + | Create a test job using a //text// editor: the job script file is a shell script file and should be a plain Ascii text file with Unix style line end characters. |
| - | vi test the file named: job name. | + | |
| - | include | + | |
| - | To get the defination and more flags of MSUB do a command "man msub". | + | |
| - | ************************************************ | + | vi test.job |
| - | ###These lines are for Moab | + | |
| - | #MSUB -l nodes=4: | + | |
| - | #MSUB -l walltime=2: | + | |
| - | #MSUB -m be | + | |
| - | #MSUB -o / | + | |
| - | #MSUB -e / | + | |
| - | #MSUB -d / | + | |
| - | #MSUB -mb | + | |
| - | #MSUB -M nmonama@csir.co.za | + | |
| - | | + | to create a file called '' |
| - | NP=`cat $PBS_NODEFILE | wc –l` | + | |
| - | mpirun –np $NP –machinefile $PBS_NODEFILE DLPOLY_3.07.SPARC.Y | + | Include the following in your script, for more info check http:// |
| + | To get the definitions, | ||
| + | |||
| + | <file bash job.msub> | ||
| + | ###These lines are for Moab | ||
| + | #MSUB -l nodes=4: | ||
| + | #MSUB -l walltime=2: | ||
| + | #MSUB -m be | ||
| + | #MSUB -o / | ||
| + | #MSUB -e / | ||
| + | #MSUB -d / | ||
| + | #MSUB -mb | ||
| + | #MSUB -M nmonama@csir.co.za | ||
| + | |||
| + | ##### Running commands | ||
| + | NP=`cat $PBS_NODEFILE | wc –l` | ||
| + | mpirun –np $NP –machinefile $PBS_NODEFILE DLPOLY_3.07.SPARC.Y | ||
| + | </ | ||
| + | Details of each line of the job script: | ||
| SCRIPT | SCRIPT | ||
| Line 182: | Line 240: | ||
| #MSUB -W This option has been deprecated and should be ignored. | #MSUB -W This option has been deprecated and should be ignored. | ||
| - | ++++ | ||
| - | submit test: | + | To submit |
| - | msub test -q x (where x=nehalem, | + | msub test.job |
| - | ============================== | + | **NB:** Your job should always write its output to scratch. It will be faster if it reads its input from there as well. |
| - | *POST AND PRE PROCESSING* | + | |
| - | Please use the following node for post and pre processing: | + | |
| - | chpcsp01 | + | |
| - | chpcsp02 | + | |
| - | Below is an example of Loadleveler script in Blue Gene/P: | ||
| - | |||
| - | #@ job_type = bluegene | ||
| - | #@ bg_size = 64 | ||
| - | #@ class = BGP | ||
| - | #@ input = /dev/null | ||
| - | #@ output = dlpoly.$(jobid).out | ||
| - | #@ error = dlpoly.$(jobid).err | ||
| - | #@ wall_clock_limit = 12:00:00 | ||
| - | #@ resources = ConsumableCpus(1) | ||
| - | #@ node_usage = shared | ||
| - | #@ cluster_list = BGP | ||
| - | #@ notification = complete | ||
| - | #@ queue | ||
| - | / | ||
| - | |||
| - | | ||
| There are various controls of Moab and Loadleveler that can help you to manage your job: | There are various controls of Moab and Loadleveler that can help you to manage your job: | ||
| | | ||
| Some of Moab controls are as follows: | Some of Moab controls are as follows: | ||
| + | |||
| | Command | Description | | | Command | Description | | ||
| ^ msub | Scheduler job submission | | ^ msub | Scheduler job submission | | ||
| Line 220: | Line 257: | ||
| ^ showres | Show existing reservations | | ^ showres | Show existing reservations | | ||
| ^ showstart | Show estimate of when job can or will start | | ^ showstart | Show estimate of when job can or will start | | ||
| - | ^ Checkjob | + | ^ checkjob |
| - | | + | |
| | | ||
| + | |||