Automate Jobs with scrontab & Track Performance with XDMoD
Compute2 users now have access to two new tools: Slurm’s scrontab for scheduling recurring jobs, and XDMoD for analyzing resource usage and job performance.
Scheduled Jobs with scrontab
What it is: scrontab is Slurm’s version of cron. It submits recurring batch jobs to the compute queue on a schedule you define.
To get started:
- Review documentation
- From any login node, run
scrontab -eto open your schedule.Add a#SCRONline above each entry to set its options. At a minimum, include the partition, account, and run time, for example#SCRON -p general-cpu,#SCRON -A <account>, and#SCRON -t 5:00. These options apply only to the entry that follows. The-tvalue is how long the job may run, not when it starts. - Add your schedule using standard cron syntax or a shortcut such as
@hourlyor@daily. - Run
scrontab -lto list your schedule. Runscrontab -rto remove it, which also cancels pending jobs.
Usage Analytics with XDMoD
What it is: XDMoD is a web portal that shows how Compute2 is being used, including CPU and GPU hours, queue wait times, and how efficiently jobs used what they requested.
To get started:
- Review documentationGo to XDMoD Login and sign in with your WashU Key.
- For a quick chart, open the Usage tab and choose Jobs by PI → CPU Hours: Total.
- To find where jobs requested more than they used, open the Efficiency tab. To examine one job, use Job Viewer with your job number.
Have questions? Contact us at the RIS Service Desk.