SciNet Command Line Utilities: Difference between revisions

From SciNet Users Documentation
Jump to navigation Jump to search
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 16: Line 16:
|
|
|Short overview of a user's storage usage.
|Short overview of a user's storage usage.
|Niagara
|Trillium
|-
|-
|diskUsage
|diskusage_report
|''-h'' to see all command options
|''--help'' to see all command options
|Informs about the user and group file system usage.
|Reports space and file usage on the home, scratch, project, and nearline file systems.
|Niagara, BGQ
|Trillium
|-
|-
|topUserDirOver1000list
|topUserDirOver1000list
|
|
|Lists your directories that have over 1,000 files
|Lists your directories that have over 1,000 files
|Niagara
|Trillium
|-
|-
|topUserDirOver1GBlist  
|topUserDirOver1GBlist  
|
|
|Lists your directories that have over 1 GB of data
|Lists your directories that have over 1 GB of data
|Niagara
|Trillium
|-
|-
|}
|}
Line 45: Line 45:
|most squeue arguments work
|most squeue arguments work
|Lists jobs running or in the queue, grouped by user.
|Lists jobs running or in the queue, grouped by user.
|Niagara
|Trillium
|-
|-
|llq1
|scinet-priority
|
|
|Detailed information on jobs that are actively running.
|Compute usage in the last 7 days, and how this affects your priority in the queue.
|TCS
|Trillium
|-
|scinet gpc priority
|
|Compute usage in the last 14 days, and how this affects your priority in the queue.
|GPC
|-
|-
|nodeperf
|nodeperf
|[''userName'']
|[''userName'']
|Who is doing what on the current node?
|Who is doing what on the current node?
|GPC
|Trillium
|-
|-
|jobperf
|[https://docs.alliancecan.ca/wiki/Trillium_Quickstart#Monitoring_running_and_past_jobs jobperf]
| <''jobId''<nowiki> | </nowiki>''jobName''>
| <''jobId''<nowiki> | </nowiki>''jobName''>
|Informs about the performance of all nodes of a given job.
|Informs about the performance of all nodes of a given job.
|GPC
|Trillium
|-
|jobError
| <''jobId''<nowiki> | </nowiki>''jobName''>
| Displays realtime error output of a given job.
|GPC
|-
|jobOutput
| <''jobId''<nowiki> | </nowiki>''jobName''>
| Displays realtime standard output of a given job.
|GPC
|-
|jobcd
| <''jobId''<nowiki> | </nowiki>''jobName''>
| Allows users to quickly move into the working directory of a given job.
|GPC
|-
|jobscript
| <''jobId''<nowiki> | </nowiki>''jobName''>
| Displays the submission script used when submitting a given job.
|GPC
|-
|-
|jobssh
|[https://docs.alliancecan.ca/wiki/Trillium_Quickstart#Testing_and_debugging debugjob]
| <''jobId''<nowiki> | </nowiki>''jobName''>
|[''number of nodes''] [''-g number of GPUs'']
| Allows users to connect to the head-node of a given job.
|Starts an interactive session on up to 4 whole nodes.  The argument is a positive number of '''nodes''', not cores: on the CPU subcluster each node is 192 cores, so <code>debugjob 2</code> means 384 cores.  On the GPU subcluster use <code>-g</code>: <code>debugjob -g 1</code> is a quarter node, <code>debugjob -g 4</code> a whole 96-core node, and the maximum is 8 GPUs on 2 nodes.  The default is one node.  The walltime shrinks as the request grows: 60 minutes for one CPU node, 30 for two, 20 for three, 15 for four.  <code>debugjob 40</code> asks for 40 nodes and is rejected.  A <code>debugjob</code> session has X11 forwarding enabled, so graphical tools such as DDT can be started directly in the session.
|GPC
|Trillium
|-
|-
|jobtop
|debugjob_neptune
| <''jobId''<nowiki> | </nowiki>''jobName''>
|[''number of nodes'']
| Allows users to "top" on the head-node of a given job.
|Interactive session on 1 or 2 Neptune nodes of 40 cores (80 threads) each, for 60 or 45 minutes.  Adds <code>--qos neptune</code> and the <code>debug_neptune</code> partition.  Neptune access is by arrangement, not general Trillium access.
|GPC
|Trillium (Neptune)
|-
|-
|jobdep
|[https://docs.scinet.utoronto.ca/index.php/Balam#Testing_and_debugging debugjob]
|<''jobId''>
|[''number of nodes''] [''-g number of GPUs'']
|Displays dependencies of given job.
|Interactive session on up to 2 GPU nodes.  <code>debugjob</code> or <code>debugjob -g 1</code> is 1 GPU for 2 hours, <code>debugjob -g 4</code> (same as <code>debugjob 1</code>) is a whole node for 1 hour, and <code>debugjob -g 8</code> (same as <code>debugjob 2</code>) is 2 nodes for 30 minutes.  Unlike Trillium, modules are inherited unless <code>--clean</code> is given.
|GPC
|Balam
|-
|jobtree
|[''userName'']
|Displays the jobs tree of dependencies for a given user.
|GPC
|-
|debugjob
|[''nodes'']
|Requests a time-limited interactive session of up to 8 dedicated nodes
|GPC
|-
|-
|}
|}
For <code>debugjob</code>
the positional argument is always a node count; the core count follows from the
node size (192 on Trillium CPU, 40 on Neptune, 4 GPUs on Balam)


= Modules =
= Modules =
{| border="1" cellpadding="5" cellspacing="0"
{|class = "wikitable"
!{{Hl2}} | Command
!|Command
!{{Hl2}}| Arguments
!| Arguments
!{{Hl2}}| Description
!| Description
!{{Hl2}}| Cluster
!| Cluster
|-
|-
|modulefind
|ml
|[''searchWord'']
|
|Finds modules containing ''searchWord'' and indicate their compatibility with already loaded modules.
|"module list"
|GPC
|Trillium
|-
|-
|moduleadvice
|ml
|<''modulename''>
|<modulename>
|Show the module commands required to load ''modulename'', taking into account prerequisites and conflicts with already loaded modules.
|"module load <modulename>"
|GPC
|Trillium
|-
|-
|modulewrap
|ml
|''<comma-separated-modules>'' ''<command>''
|X
|Load the modules in the ''comma-separated-modules'' list (no spaces!) only to run the given ''command''.
|"module X"
|GPC
|Trillium
|-
|-
|}
|}


= Related Topics =
= Related Topics =
[https://wiki.scinet.utoronto.ca/wiki/index.php/Moab#Checking_the_memory_usage_from_jobs Checking the memory usage from jobs]
[https://docs.alliancecan.ca/wiki/Running_jobs#Monitoring_jobs Monitoring jobs]
<br>
[https://wiki.scinet.utoronto.ca/wiki/index.php/GPC_Quickstart GPC Quickstart]
<br>
<br>
[https://wiki.scinet.utoronto.ca/wiki/index.php/Moab Scheduler]
[[Trillium_Quickstart | Trillium Quickstart]]
<br>
<br>
[https://wiki.scinet.utoronto.ca/wiki/index.php/FAQ#Monitoring_jobs_in_the_queue Monitoring Jobs]
[https://docs.alliancecan.ca/wiki/Running_jobs Slurm Scheduler]
<br>
<br>
[https://wiki.scinet.utoronto.ca/wiki/images/a/a0/TechTalkJobMonitoring.pdf Tech Talk on Monitoring Jobs]
[[FAQ#Monitoring_jobs_in_the_queue | Monitoring Jobs]]

Latest revision as of 18:05, 30 November 2026

Below is list of handy command-line utilities written by SciNet to help manage your data and compute.

Note that in the table, optional arguments are denoted with square brackets (i.e. '[]'), while mandatory arguments are denoted with angular brackets (i.e. '<>').

Storage

Command Arguments Description Cluster
quota Short overview of a user's storage usage. Trillium
diskusage_report --help to see all command options Reports space and file usage on the home, scratch, project, and nearline file systems. Trillium
topUserDirOver1000list Lists your directories that have over 1,000 files Trillium
topUserDirOver1GBlist Lists your directories that have over 1 GB of data Trillium

Jobs & Queues

Command Arguments Description Cluster
qsum most squeue arguments work Lists jobs running or in the queue, grouped by user. Trillium
scinet-priority Compute usage in the last 7 days, and how this affects your priority in the queue. Trillium
nodeperf [userName] Who is doing what on the current node? Trillium
jobperf <jobId | jobName> Informs about the performance of all nodes of a given job. Trillium
debugjob [number of nodes] [-g number of GPUs] Starts an interactive session on up to 4 whole nodes. The argument is a positive number of nodes, not cores: on the CPU subcluster each node is 192 cores, so debugjob 2 means 384 cores. On the GPU subcluster use -g: debugjob -g 1 is a quarter node, debugjob -g 4 a whole 96-core node, and the maximum is 8 GPUs on 2 nodes. The default is one node. The walltime shrinks as the request grows: 60 minutes for one CPU node, 30 for two, 20 for three, 15 for four. debugjob 40 asks for 40 nodes and is rejected. A debugjob session has X11 forwarding enabled, so graphical tools such as DDT can be started directly in the session. Trillium
debugjob_neptune [number of nodes] Interactive session on 1 or 2 Neptune nodes of 40 cores (80 threads) each, for 60 or 45 minutes. Adds --qos neptune and the debug_neptune partition. Neptune access is by arrangement, not general Trillium access. Trillium (Neptune)
debugjob [number of nodes] [-g number of GPUs] Interactive session on up to 2 GPU nodes. debugjob or debugjob -g 1 is 1 GPU for 2 hours, debugjob -g 4 (same as debugjob 1) is a whole node for 1 hour, and debugjob -g 8 (same as debugjob 2) is 2 nodes for 30 minutes. Unlike Trillium, modules are inherited unless --clean is given. Balam

For debugjob the positional argument is always a node count; the core count follows from the node size (192 on Trillium CPU, 40 on Neptune, 4 GPUs on Balam)

Modules

Command Arguments Description Cluster
ml "module list" Trillium
ml <modulename> "module load <modulename>" Trillium
ml X "module X" Trillium

Related Topics

Monitoring jobs
Trillium Quickstart
Slurm Scheduler
Monitoring Jobs