Interactive queue use with qsub

It is possible to start an interactive job on any of MSI’s clusters that support job submission. Interactive jobs can be useful for tasks including data exploration, development, or (with X11 forwarding) visualization activities.

 
The basic syntax for submitting an interactive job is illustrated using the following example for Mesabi:
qsub -l nodes=1:ppn=4,mem=8gb,walltime=12:00:00 -q interactive -I
If you are submitting an interactive job from a session with X11 forwarding and would like to continue using X11 forwarding inside your job, you would add the additional flag ‘-X’, as follows:
qsub -X -l nodes=1:ppn=4,mem=8gb,walltime=12:00:00 -q interactive -I
The basic syntax for testing MPI code between two nodes:
qsub -l nodes=2:ppn=2,walltime=5:00:00 -q interactive -W x=nmatchpolicy:exactnode -I
You may also submit an interactive job using an interactive submission script. For instance, to submit the same interactive job as above, you would need a file (in our case named ‘interactive.pbs’) with contents:
 

#PBS -l nodes=1:ppn=8,walltime=8:00:00,mem=8gb #PBS -q mesabi
#PBS -X

 

 

 


Note that this file has only PBS directives, and no scripted commands following them. You would then submit this job using:
qsub -I interactive.pbs
Interactive jobs are subject to the same rules and limitations as batch jobs. Interactive jobs consume SUs normally, and have access to only those queues that are available on the cluster they are submitted from. Jobs that request more resources may wait in the queue longer, so be sure that you are requesting only those resources that you need.
 
An interactive qsub job supports all of the usual PBS commands. These commands are included as flags when specifying them on the command line, and are included normally in a PBS file intended for interactive use.
 

Example interactive qsub Session via login.msi.umn.edu

 
username@mydesktop$ ssh -Y msiusername@login.msi.umn.edu
Last login: Tue May 10 15:16:06 2018 from mydesktop.mydept.umn.edu
-------------------------------------------------------------------------------
             University of Minnesota Supercomputing Institute
----------------------------------------------------------------
[... output truncated ...]
---------------
username@login02$ ssh -Y msiusername@mesabi.msi.umn.edu
Password:
Last login: Tue May 10 15:16:06 2018 from mydesktop.mydept.umn.edu
-------------------------------------------------------------------------------
            University of Minnesota Supercomputing Institute
                                Mesabi
                        HP Haswell Linux Cluster
-------------------------------------------------------------------------------
[... output truncated ...]
---------------
username@ln0006$  qsub -I -X -l nodes=1:ppn=4,walltime=8:00:00,mem=8gb -q interactive
qsub: waiting for job 13139465.mesabim3.msi.umn.edu to start
qsub: waiting for job 13139481.mesabim3.msi.umn.edu to start
qsub: job 13139481.mesabim3.msi.umn.edu ready
 
username@cn0547$
 
At this point you are currently in your home directory, and can load modules and launch software, including GUI software.