S2 : Slurm profilingΒΆ
Although seff command is a quick and easy way to determine the resource utilisation, it relies on peak values (data gets recorded every 30 seconds) which doesn't allows us to examine resource usage over the run-time of the job. There are number of in-built/external tools to achieve the latter which will require some effort to understand its deployment, tracing and interpretation. Therefore, we will use slurm native profiling to evaluate resource usage over run-time. This is a simple and elegant solution.
See the REANNZ Support Documentation on Slurm Native Profiling for more information.
Exercise S.2.1
Create a new directory and cd into it
Copy over either the variant calling or RNA-seq slurm script to your current directory. (Hint: you can use one from S3: Solutions if you need). For this example we'll use the variant_calling.sl script. Don't forget the . at the end of your cp command!
Use nano to edit your script and add the following to the SLURM header:
Review the slurm script with cat or nano and update paths as needed to point to the input files. Submit with sbatch.
- Do take a note of the JOBID as we are going to need it for next step. Otherwise, we use
squeue --meORsacctcommand as before to monitor the status - Also, you can
watchthe status of this job via$ watch -n 1 -d "squeue -j JOBID". watchcommand execute a program periodically, showing output fullscreen. Exiting thewatchscreen by done by pressingCtrl+C
Once the job is complete, we can create the slurm profile graphs with:
