Main Memory
The amount of main memory (or RAM) a job requires must be given in the job control script via the option --mem-per-cpu
or --mem
(memory per node). Care must be taken to specify the value as accurately as possible.
If the value given is too high, then
- the job may have to wait longer than necessary before enough memory is available.
- once the job starts, other jobs may have to wait, because although memory is available, it has been reserved for the running job. In the illustration below, although enough cores are available, the job shown cannot start because the queueing system cannot reserve enough memory on the node.
If the value is too low, then
- the job will be terminated once its memory requirement exceeds the amount of memory requested
The memory available on each node can be seen in the column MEMORY
with the command:
snodes
This value is also displayed as RealMemory
by the command scontrol show node <node name>
, e.g.
$ scontrol show node c005 |