How do I model the job to match the resources available?
You can check the currently available Hellbender resources on this page:
https://ondemand.rnet.missouri.edu/pun/sys/dashboard/system-status
When you submit a job, you should carefully specify parameters in your submission script to most efficiently use the resources available.
The parameters in your job submission script might have several repercussions:
-
Affecting only your jobs waiting time, your fairshare accounting, is your job prone to requeueing, etc.
-
Requesting a large amount of memory (--mem =400G for example) for your job will require an entire node which will take longer for your job to begin.
-
Adjusting your job parameters to the values that you know are realistically used during calculation can result in your job starting more quickly when smaller resources become available.
-
Affecting other users jobs through SLURM scheduler trying to fit all the submitted jobs on a cluster.
Similarly when requesting many CPUs, your job starts running with requested 128 CPUs but effectively it is using only one or two CPUs. Your fairshare will be reduced as if you used all 128 CPUs for the duration of job running time. To learn more about FairShare you can go here: https://docs.rc.asu.edu/fairshare/
The choice of partition might significantly affect your job waiting time. For example, all the GPU cards are available only in the gpu partition or the gpu_requeue partition. If you submit your job requesting a gpu_requeue partition it might get resources much faster than in the gpu partition but as a trade off, your job could potentially get canceled mid runtime and resubmitted automatically to run again (requeued). Because every job is different, there is no absolute guidance as it depends on the expected duration of your job running time. If that time is large – a day or more, it is more likely that a requeue event will take place. The same is true for purely CPU jobs where you can decide between a general and requeue partition.
Before creating a submission script try running your calculation interactively and observe how many CPUs are being used by using a top command or how much are the GPUs used, using nvidia-smi command to assist you in estimating the needed resources and timeframe for your job.
Another good way to estimate how your job did on the requested resources is to do a kind of “postmortem” analysis of the jobs that have finished successfully.
For example, I ran a VASP (ab initio DFT calculation) on 2 nodes with 12 CPUs on each node – requesting 30 GB of ram per CPU. I requested a requeue partition and did not specify a max running time which means a job request for a default running time which is one hour. (see the submission script below*)
The job ran and finished successfully.
You can get a list of your recent jobs using the command:
sacct

After the job has finished you can check the efficiency of the CPU utilization and memory utilization using the following command
seff JOB_ID_NUMBER

Updating your jobs script when the job was already submitted but is still in the pending state (waiting for resources to start running)
If you notice the conditions of the cluster might get your job running sooner if you request less CPUs or less memory you can modify already submitted jobs using the command
scontrol update jobid=<JOB_ID> <ATTRIBUTE>=<VALUE>
for example, to modify a time limit for the job:
scontrol update JobId=your_job_ID_number TimeLimit=4:00:00
This will change the requested time limit for your job to 4 hours.
You can change the other SLURM parameters in the same way.
*Example submission script for VASP job
#!/bin/bash
#--------------------------------------------------------------
# SBATCH CONFIG
#--------------------------------------------------------------
## resources
#SBATCH -p requeue
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=12
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=30G
#SBATCH --time 48:00:00
#SBATCH --job-name=vasp
#------------------------------------------------------------------------------
echo "### Starting at $(date) ###"
module load vasp/5.4.4_mvapich_wannier
ulimit -l unlimited
ulimit -s unlimited
time mpirun -np 24 vasp_std
echo "### Ending at $(date) ###"
For Additional Assistance
For additional assistance, please join our Research Facilitators in Office Hours. Article - Getting Hellbender/RDE Help