Niagara Quickstart: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 919: Line 919:
<!--T:94-->
<!--T:94-->
<ul>
<ul>
<li><p><code>squeue</code> or <code>qsum</code> to show the job queue (<code>squeue -u $USER</code> for just your jobs);</p></li>
<li><p><code>squeue</code> or <code>sqc</code> (a caching version of squeue) to show the job queue (<code>squeue -u $USER</code> for just your jobs);</p></li>
<li><p><code>qsum</code> shows a summary of qudue by user
<li><p><code>squeue -j JOBID</code> to get information on a specific job</p>
<li><p><code>squeue -j JOBID</code> to get information on a specific job</p>
<p>(alternatively, <code>scontrol show job JOBID</code>, which is more verbose).</p></li>
<p>(alternatively, <code>scontrol show job JOBID</code>, which is more verbose).</p></li>
<li><p><code>squeue --start -j JOBID</code> to get an estimate for when a job will run; these tend not to be very accurate predictions.</p>
<li><p><code>squeue --start -j JOBID</code> to get an estimate for when a job will run; these tend not to be very accurate predictions.</p></li>
    <p>
    Since this is not very accurate, you might be interested to know how far back in the queue your job is. This can be accomplished with the following bash function:
 
<!--T:99-->
<pre>
function qpos() {
    if [ "$#" -eq 0 ]; then
        squeue -u "$USER" | tail -n-1 | tr -s ' ' | cut -d' ' -f2 | while read jid; do
            squeue | tr -s ' ' | cut -d' ' -f2 | sort -n | cat -n | grep "$jid"
        done | tr -s ' ' | sort -n -t' ' -k1
    fi
    for jid in "$@"; do
        squeue | tr -s ' ' | cut -d' ' -f2 | sort -n | cat -n | grep "$jid"
    done
}
</pre>
 
<!--T:100-->
Usage:
<pre>
qpos
 
<!--T:101-->
</pre>
 
    <!--T:102-->
</p>
</li>
<li><p><code>scancel -i JOBID</code> to cancel the job.</p></li>
<li><p><code>scancel -i JOBID</code> to cancel the job.</p></li>
<li><p><code>sinfo -pcompute</code> to look at available nodes.</p></li>
<li><p><code>sinfo -pcompute</code> to look at available nodes.</p></li>
<li><p><code>jobperf JOBID</code> to get an instantaneous view of the cpu and memory usage of the nodes of the job while it is running.</p></li>
<li><p><code>jobperf JOBID</code> to get an instantaneous view of the cpu and memory usage of the nodes of the job while it is running.</p></li>
<li><p><code>sacct</code> to get information on your recent jobs.</p>
<li><p><code>sacct</code> to get information on your recent jobs.</p></li>
</li>
</ul>
</ul>


<!--T:103-->
<!--T:103-->
For more information, check out the wiki page devoted to [[Running jobs]].
For more information, check out the wiki page devoted to [[Running jobs]].
= Visualization =
Information about how to use visualization tools on Niagara is available on [https://docs.scinet.utoronto.ca/index.php/Visualization Visualization] page.
= Further information =
'''Useful sites'''
* SciNet: https://www.scinet.utoronto.ca
* Niagara: https://docs.computecanada.ca/wiki/niagara
* System Status: https://docs.scinet.utoronto.ca/index.php/Main_Page
* Training: https://support.scinet.utoronto.ca/education
'''Support'''
* support@scinet.utoronto.ca
* niagara@computecanada.ca
</translate>
</translate>
cc_staff
290

edits

Navigation menu