This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
archive:computer_resources:campusrocks [2015/04/18 20:38] charles [Sungrid Job scheduler] |
archive:computer_resources:campusrocks [2015/05/05 19:00] JaredC [Sungrid Job scheduler] |
||
---|---|---|---|
Line 91: | Line 91: | ||
Your job goes to a node with at least 15g of free memory. There is probably something like '-l mem_avail' that works if you would like to schedule your job on a node with a certain amount of max memory available, even if some of it is currently in use. | Your job goes to a node with at least 15g of free memory. There is probably something like '-l mem_avail' that works if you would like to schedule your job on a node with a certain amount of max memory available, even if some of it is currently in use. | ||
- | #$ -pe mpi 4\\ | + | #$ -pe mpi [number of desired cores to use]\\ |
Your job goes to a set of nodes with a combined total of a least 4 cores available. | Your job goes to a set of nodes with a combined total of a least 4 cores available. | ||
Line 98: | Line 98: | ||
#$ -q [Name of specific server queue]\\ | #$ -q [Name of specific server queue]\\ | ||
- | Used to specify which set of servers you would like the sungrid scheduler to schedule/run your jobs in. Names on campus rocks include 'all.q' and 'small.q' | + | Used to specify which set of servers you would like the sungrid scheduler to schedule/run your jobs in. Names on campus rocks include 'all.q' and 'small.q'. Default: 'all.q' |
+ | |||
+ | #$ -M ADolichophallus@ucsc.edu\\ | ||
+ | #$ -m e\\ | ||
+ | Used to have campus rocks email you at the end of your job. | ||
+ | |||
+ | #$ -j y\\ | ||
+ | Used to combine stderr & stdout into stdout. | ||
Example qsub commands: | Example qsub commands: | ||
Line 108: | Line 115: | ||
#$ qhost\\ | #$ qhost\\ | ||
Displays the compute nodes available on the cluster including hardware statistics. | Displays the compute nodes available on the cluster including hardware statistics. | ||
+ | *'j' displays a detailed list of all current jobs running | ||
#$ qstat\\ | #$ qstat\\ | ||
- | Displays the status of the jobs submitted to qsub. | + | Displays the status of the jobs submitted to qsub.\\ |
+ | *flag '-f' displays more hardware usage information on each node. The 'resv/used/tot.' column displays number of processing cores reserved, used, and the total number of cores for a node respectively. | ||
Primary job status codes: | Primary job status codes: | ||
*'r' status indicates that a job is running. | *'r' status indicates that a job is running. | ||
*'qw' status indicates that a job is waiting to be scheduled/run on a machine. | *'qw' status indicates that a job is waiting to be scheduled/run on a machine. | ||
+ | #$ qacct -j [job id]\\ | ||
+ | Displays resource usage and runtime statistics for a job that has run to completion.\\ | ||
+ | Very useful for determining optimal resource allocation for tasks. | ||