Running jobs
Overview
Teaching: 30 min
Exercises: 0 minQuestions
How do I run jobs on Blue Waters?
Objectives
Learn about the MOM and compute nodes
Learn how to submit, delete, and control jobs
Learn how to execute software on compute nodes
A Closer Look at the Blue Waters nodes
Before we learn how to launch jobs on Blue Waters, let’s take a closer look at its structure.
As you already know, when we connect to Blue Waters via ssh
command we land on one
of three login nodes. Here we can take care of all input data and compile our application.
However, we can not simply execute our science application there. Instead, we have to:
- Prepare the so-called job batch script that sets up the execution environment
- Submit the job to the queue
- From within that script, send the application for execution on the compute nodes
Job script
Blue Waters uses Portable Batch System (PBS) to handle scheduling on jobs. A job script is
a simple Shell script that you want to be executed by the system on the MOM nodes. It contains
special instructions for the queuing system about the requested resources, account to be charged,
job name, and etc. The script must have an aprun
command that sends an application for the
execution on the compute nodes.
Please copy the following directory to your home folder: ~mbelkin/new-user-training
.
This directory contains two simple batch scripts (*.pbs
) and a src
directory with
a few programs.
Submitting a job
To submit your job script for the execution on the Blue Water compute nodes
to the queue, use the qsub
command:
$ qsub jobscript.sh
To check the status of your job, use qstat
command:
$ qstat
$ qstat -f
$ qstat -u $USER
To postpone execution, release the hold, or remove your job from the queue, use qhold
, qrls
, and
qdel
commands, correspondingly:
$ qhold <JOBID>
$ qdel <JOBID>
$ checkjob <JOBID>
Backfill
If you would like your job to start sooner you might be interested in backfill opportunities:
$ showbf -f xk
# or
$ showbf -f xe
Key Points
Job scripts are regular scripts with special
#PBS
comments
#PBS
comments must appear at the top of the job script
#PBS
comments specify all requests and set characteristics of compute jobsJob scripts are executed on MOM nodes.
Interactive jobs are the jobs submitted with
-I
flag and do not accept job script as input
aprun
must be used to send applications for execution to compute nodes.