From HPC Wiki
Jump to: navigation, search

Various resources can be requested either on the command line or in a submission script.


To request a specific amount of memory:

command line
qsub -l mem_free=5.0G
#$ -l mem_free=5.0G

To request a specific node you must specify both the node and the node's queue:

command line
qsub -l hostname=node284 -q medium
#$ -l hostname=node284
#$ -q medium

You do not have to specify the queue if the node is in your default queue (usually "short"). You can see what queue a particular node is in with "queueof", for example:

queueof node284

Specifying hostname= without a queue name or with the wrong queue name will result in this misleading error message:

waiting for interactive job to be scheduled ...timeout (4 s) expired while waiting on socket fd 4
Your "qlogin" request could not be scheduled, try again later.

Note that if you specify a node name when really RAM is your concern, then it's better to specify the RAM requirement, as there are likely several nodes that can meet your requirement.

To request GPU(s)

command line
qsub -l gpu=1
#$ -l gpu=1

To request a specific amount of local disk:

command line
qsub -l h_fsize=200.0G
#$ -l h_fsize=200G

Multiple requests are made using comma separation

command line
qsub -l gpu=1,h_fsize=200G
#$ -l gpu=1,h_fsize=200G

In all cases you must have queue permissions to use the nodes.

These options are also understood by the following commands:

  • ksub
  • gauss_submit
  • shell_submit
  • zsub