Changes between Version 45 and Version 46 of cypress/about
- Timestamp:
- 08/21/18 12:26:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/about
v45 v46 104 104 The "'''interactive'''" QOS is intended to be used for testing SLURM script submission, and is limited to 1 job per user. See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#interactiveQOS interactiveQOS] 105 105 106 See below for details: 107 108 * [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#UsingSLURMonCypress Slurm Scripts] 109 110 * [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#RunningMannySerialJobs Job-Array] 111 112 * [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#SubmittingInteractiveJobs Interactive Jobs] 113 106 114 === Job scheduling and priority === 107 115 … … 131 139 SLURM calculates each priority component as a fraction (value between 0 and 1), which is then multiplied by a weight. The current weights are: Fair-share: 100,000; Age: 10,000; Job Size: 1,000. That is, Fair-share is the major contributor to priority. The weighted components are added to give the final priority. 132 140 133 === Running serial jobs ===134 135 If you are running a large number of serial jobs, it is recommended to submit them as a job array to make the best use of your allocated resources. For example, suppose you are running 100 serial jobs using scripts located in a "scripts" folder, each of which does a serial calculation: scripts/run1.sh, scripts/run2.sh, ..., scripts/run100.sh. You would create an sbatch script named "run100scripts.srun" with contents:136 137 {{{138 #!/bin/bash139 #SBATCH -J array_example140 #SBATCH --array=0-4141 #SBATCH -N 1142 #SBATCH -n 20143 #SBATCH --time=01:00:00144 145 srun ./runscript.sh146 }}}147 148 The contents of the script "runscript.sh" would be:149 150 {{{151 #!/bin/bash152 153 RUNNUMBER=$((SLURM_ARRAY_TASK_ID*SLURM_NTASKS + SLURM_PROCID + 1))154 ./scripts/run$RUNNUMBER.sh155 }}}156 157 Make sure your scripts have executable permissions. Then, submitting with:158 159 {{{160 sbatch run100scripts.srun161 }}}162 163 will run the 100 scripts as a 5 job array, with 20 tasks each.164 141 165 142