This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scheduling [2016/09/28 17:23] root |
scheduling [2020/03/11 17:13] (current) root |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Scheduling ====== | ====== Scheduling ====== | ||
- | The cluster is running SLURM' | + | The cluster is running SLURM' |
- | * first-in first-out queue. | + | * "Fair share" job priorities. |
* Simple round-robin node selection. | * Simple round-robin node selection. | ||
- | The scheduler does not check which nodes are busy and try to avoid them. | + | The "Fair Share" |
- | + | ||
- | This has an advantage in that it tends to leave some nodes empty for people who want a whole node. | + | |
- | + | ||
- | You can use the **-w** option to select a specific node. Actually it asks for "at least" | + | |
- | + | ||
- | < | + | |
- | sbatch -n 20 -w node2 my_script | + | |
- | </ | + | |
- | + | ||
- | Would get you some cores on node2 and some on another node (since there are only 16 cores total on node2). If there were no cores free on node2 the job would be queued until some became available. | + | |
- | + | ||
- | Note that using the -w option with multiple nodes is not a way of queueing jobs on just those nodes: it will actually allocate codes across all nodes you specify and run the job on just the first on them. | + | |
- | + | ||
- | You can use the **-x** option to avoid specific nodes. A list of node names looks like this: | + | |
- | + | ||
- | < | + | |
- | node[1-4,7,11] | + | |
- | </ | + | |
- | + | ||
- | Read as "nodes 1 to 4, 7 and 11" i.e. 1, | + | |
- | + | ||
- | You can use **-c 16** to request all cores on a (standard) node. | + | |
- | + | ||
- | You can use the **--exclusive** option to ask for exclusive access to all the nodes your job is allocated. This is especially useful if you have a program | + | |
+ | The scheduler does not check which nodes are busy and try to avoid them. This has an advantage in that it tends to leave some nodes empty for people who need a whole node. | ||