# Queueing System

<span style="font-family: arial,helvetica,sans-serif;">Greenplanet uses the [Slurm](http://slurm.schedmd.com/slurm.html) queue and job scheduler. We are currently running version 20.02.5, which has reasonably easy-to-follow [documentation](https://slurm.schedmd.com/archive/slurm-20.02.5/). There is also a [Cheat Sheet](http://www.schedmd.com/slurmdocs/pdfs/summary.pdf) of command options. A nice introduction is available from the [Slurm User Group 2017 conference](https://slurm.schedmd.com/SLUG17/SlurmOverview.pdf).</span>

<span style="font-family: arial,helvetica,sans-serif;">If you are used to different system (PBS, LoadLeveler, SGE, etc.), see [this PDF](http://slurm.schedmd.com/rosetta.pdf) that shows corresponding command line tools and job script options. Wrapper scripts for PBS commands (qstat, qsub, etc.) are also installed, which will let you use job submission scripts from an ancient time when we ran Torque/Maui.</span>

You can use the <span style="font-family: courier new,courier,monospace;">**sview**</span> command to open the Slurm GUIFor a list of partitions, look at [this page](https://knowledge.ps.uci.edu/books/running-jobs-slurm/page/partitions).

<span style="font-family: arial,helvetica,sans-serif;">If you need to run an interactive shell as a job, for instance to run matlab or test other code interactively, you should use this command (leave off --x11 if X11 graphics are not required):</span>

```bash
srun --pty --x11 -t 300 -n 1 -p ilg2.3 bash -i
```

<div id="bkmrk-%28-t-is-walltime%2C-adj"><span style="font-family: arial, helvetica, sans-serif; line-height: 1.6;">(-t is walltime, adjust as required. -p is partition which is the queue name or a comma seperated list of partitions. If you need to run something on a different partition you can replace **<span style="font-family: courier new,courier,monospace;">ilg2.3</span>** with the desired [partition](https://knowledge.ps.uci.edu/books/running-jobs-slurm/page/partitions).</span></div><div id="bkmrk-%C2%A0"> </div><div id="bkmrk-for-non-interactive-"><span style="font-family: arial,helvetica,sans-serif;">For non-interactive jobs the normal way to run a job is with the **<span style="font-family: courier new,courier,monospace;">sbatch</span>** command supplied by the path to a slurm job script.</span></div>