Subsections


2.6 Using The Portable Batch System (PBS)

The PBS architecture consists of three major components:

2.6.1 PBS Commands

All PBS commands can be found under /usr/local/pbs/bin on the OSCAR head node. There are man pages available for these commands, but here are the most popular with some basic options:

2.6.2 Submitting a PBS Job

The qsub command is not necessarily intuitive. Here are some handy tips to know:

Here is a sample qsub command line:

$ qsub -N my_jobname -e my_stderr.txt -o my_stdout.txt -q workq -l \
       nodes=X:ppn=Y:all,walltime=1:00:00 my_script.sh

Here is the contents of the script.sh file:

#!/bin/sh

echo Launchnode is `hostname`
pbsdsh /path/to/my_executable

# All done

Alternatively, you can specify most of the qsub parameters in script.sh itself:

$ qsub -l nodes=X:ppn=Y:all,walltime=1:00:00 script.sh

Here is the contents of the script.sh file:

#!/bin/sh
#PBS -N my_jobname
#PBS -o my_stdout.txt
#PBS -e my_stderr.txt
#PBS -q workq

echo Launchnode is `hostname`
pbsdsh /path/to/my_executable

# All done

Notes about the above examples:

root 2002-11-08