You are here

Specify Constraints and Resources

Here are examples of specifying constraints or requesting resources for your job.


  • Specifying a Time Limit

This is an example of constraining the amount of time a job can use.
The units are minutes. So, 60 is 60 minutes or one hour. This is the
"walltime" of the job or the amount of time that the job will be
running before the batch system stops the job.

PROJECT: MyProject
TRACK: MyTrack
JOBNAME: MyJob
COMMAND: ls -alF
TIME: 10

The XML version of this script looks like:

<Request>
  <Email email="user@jlab.org" request="false" job="true"/>
  <Project name="MyProject"/>
  <Track name="MyTrack"/>
  <Name name="MyJob"/>
  <Command><![CDATA[
   ls -alF
  ]]></Command>

  <TimeLimit unit="minutes" time="10"/>

  <Job>
  </Job>

</Request>


  • Requesting Disk Space

This is an example of requesting more disk space than the standard allotment.

PROJECT: MyProject
TRACK: MyTrack
JOBNAME: MyJob
COMMAND: ls -alF
DISK_SPACE: 30 GB

The XML version of this script looks like:

<Request>
  <Email email="user@jlab.org" request="false" job="true"/>
  <Project name="MyProject"/>
  <Track name="MyTrack"/>
  <Name name="MyJob"/>
  <Command><![CDATA[
   ls -alF
  ]]></Command>

  <DiskSpace space="30" unit="GB"/>

  <Job>
  </Job>

</Request>


  • Requesting Memory

This is an example of requesting more memory than the standard
allotment. Memory value must use a integer value (can not has decimal). Please use 1700 MB when ask 1.7 GB.

PROJECT: MyProject
TRACK: MyTrack
JOBNAME: MyJob
MEMORY: 300 MB
COMMAND: ls -alF

The XML version of this script looks like:

<Request>
  <Email email="user@jlab.org" request="false" job="true"/>
  <Project name="MyProject"/>
  <Track name="MyTrack"/>
  <Name name="MyJob"/>
<Memory space="30" unit="MB"/>
  <Command><![CDATA[ ls -alF ]]></Command> <Job> </Job> </Request>

  • Requesting computing node tag and OS

This is an example of requesting a centos77 farm16 node. At this moment user can use the NodeTag to request different farm nodes, such as farm16, farm18 etc..

PROJECT: MyProject
TRACK: MyTrack
OS: centos77
NODE_TAG: farm16
JOBNAME: MyJob
MEMORY: 300 MB
COMMAND: ls -alF

The XML version of this script looks like:

<Request>
  <Email email="user@jlab.org" request="false" job="true"/>
  <Project name="MyProject"/>
  <Track name="MyTrack"/>
<OS name="centos77"/>
<NodeTag name="farm16"/>
  <Name name="MyJob"/>
<Memory space="30" unit="MB"/>
  <Command><![CDATA[ ls -alF ]]></Command>

  <Job> </Job> </Request>

This is an example of requesting a  node with the "general" tag, which will choose any operating system in production. The general tag ignores sub-version differences in CentOS, e.g. between 7.2 and 7.7

PROJECT: MyProject
TRACK: MyTrack
OS: general
JOBNAME: MyJob
MEMORY: 300 MB
COMMAND: ls -alF