Difference between revisions of "Batch Jobs Moab"

From bwHPC Wiki
Jump to: navigation, search
(msub Command)
m (Blanked the page)
(Tag: Blanking)
 
(262 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{| style="border-style: solid; border-width: 1px"
 
! Navigation: [[BwHPC_Best_Practice_Repository|bwHPC]] / [[BwHPC_Common_User_Guide|User Guides]]
 
|}
 
 
 
Any kind of calculation on the compute nodes of '''bwUniCluster''' requires the user to define calculations as a sequence of commands or single command together with required run time, number of CPU cores and main memory and submit all, i.e., the '''batch job''', to a resource and workload managing software. All bwHPC cluster, including '''bwUniCluster''', have installed the workload managing software MOAB. Therefore any job submission by the user is to be executed by commands of the MOAB software. MOAB queues and runs user jobs based on fair sharing policies.
 
 
 
{| style="border-style: solid; border-width: 1px 1px 1px 1"
 
! MOAB commands !! Brief explanation
 
|-
 
| msub || submits an job and queues it in an input queue
 
|-
 
| checkjob || displays detailed job state information
 
|-
 
| showq || displays information about active, eligible, blocked, and/or recently completed jobs
 
|-
 
| showbf || shows what resources are available for immediate use
 
|}
 
 
 
= Job Submission =
 
 
Batch jobs are submitted using the command '''msub'''. The main purpose of the '''msub''' command is to specify the resources that are needed to run the job. '''msub''' will then queue the job into the input queue. The jobs are organized into different job classes. For each job class there are specific limits for the available resources (number of nodes, number of CPUs, maximum CPU time, maximum memory etc.).
 
 
 
 
== msub Command ==
 
 
The syntax and use of '''msub''' can be displayed via:
 
<pre>
 
$ man msub
 
</pre>
 
 
'''msub''' options can be used from the command line or in your job script.
 
 
{| style="border-style: solid; border-width: 1px;" border="1" cellpadding="2"
 
! colspan="3" style="background-color:gray;"| msub Options
 
|-
 
! align="left"|Command line
 
! align="left"|Script
 
! align="left"|Purpose
 
|-
 
| -l string
 
| #MSUB -l string
 
| Defines the resources that are required by the job. See the description below for this important flag.
 
|-
 
| -N name
 
| #MSUB -N name
 
| Gives a user specified name to the job.
 
|-
 
| -I
 
|
 
| Declares the the job is to be run interactively.
 
|-
 
| -o filename
 
| #MSUB -o filename
 
| Defines the path to be used for the standard output stream of the batch job.
 
|-
 
| -V
 
| #MSUB -V
 
| Declares that all environment variables in the msub environment are exported to the batch job.
 
|-
 
|}
 
 
== msub Examples ==
 
 
 
=== Serial Programs ===
 
 
 
=== Multithreaded Programs ===
 
 
 
=== Parallel MPI Programs ===
 
 
 
 
= Display Status of submitted Jobs =
 
 
 
 
= Environment Variables for Batch Jobs =
 
 
 
 
----
 
[[Category:bwHPC|Job Submission]]
 
[[Category:bwUniCluster|Moab]]
 
[[Category:bwUniCluster|Job Submission]]
 

Latest revision as of 10:04, 15 August 2023