Skip to content
Commits on Source (3)
.wy-nav-content {
max-width: 1000px !important;
}
......@@ -285,3 +285,7 @@ texinfo_documents = [
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
html_css_files = [
'custom.css',
]
......@@ -76,11 +76,17 @@ The ``sacct`` command has many filtering options to help you wade through large
numbers of jobs. Notable examples are `--starttime`, `--endtime`, `--state`, or
`--name` (does not support wildcards unfortunately, but you can use grep).
Example: Look up all (historical) jobs for user `moneta` on Nikolaustag, that started at 8am or later and finished at 11pm or earlier with the state completed (`CD`). Limit output to the fields listed with `-o`. Because output data will be truncated this way and in this case the job name is longer than 10 characters, we add a format hint `%30` to leave enough room for the complete name.
Example:
Look up all (historical) jobs for user `moneta` on Nikolaustag, that started at
8am or later and finished at 11pm or earlier with the state completed (`CD`).
Limit output to the fields listed with `-o`. Because output data will be
truncated this way and in this case the job name is longer than 10 characters,
we add a format hint `%30` to leave enough room for the complete name.
.. code-block:: bash
[krause@master ~] sacct --starttime 12/06-08:00 --endtime 12/06-23:00 --state CD --parsable --user moneta -o JobID,JobName%30,TotalCPU,Elapsed,ExitCode | grep MagicM41_3_3_1
[krause@master ~] sacct --starttime 12/06-08:00 --endtime 12/06-23:00 --state CD --parsable --user moneta \
-o JobID,JobName%30,TotalCPU,Elapsed,ExitCode | grep MagicM41_3_3_1
2392298 MagicM41_3_3_1_1_1 00:35.463 00:00:36 0:0
2392299 MagicM41_3_3_1_1_2 00:27.970 00:00:29 0:0
......@@ -101,15 +107,19 @@ the `--parsable` option. All data will be printed in full and with a pipe (`|`)
symbol as a separator (configurable). Using `--units`, we can get uniform
scaling of the values.
Example: Find job ids of jobs with a specific name and other parameters.
In a second step, query all job "batch" *steps* with that job id for
their maximum memory usage (this not an aggregated value
unfortunately), filter values that are exactly 0 (ended to quickly
for sampling) and plot the data in the terminal using bashplotlib
(must be installed with pip).
Example:
Find job ids of jobs with a specific name and other parameters. In a second
step, query all job "batch" *steps* with that job id for their maximum memory
usage (this not an aggregated value unfortunately), filter values that are
exactly 0 (ended to quickly for sampling) and plot the data in the terminal
using bashplotlib (must be installed with pip).
[krause@master ~] ids=$(sacct --starttime 12/06-08:00 --endtime 12/06-23:00 --state CD --parsable --user moneta -o JobID,JobName%30.batch | grep MagicM41 | cut -d"|" -f1)
[krause@master ~] for id in $ids ; do sacct --parsable2 --noheader --units M -o MaxRSS -j $id.batch; done | tr -d "M" | grep -v "^0$" | hist -b 50 -x
.. code-block:: bash
[krause@master ~] ids=$(sacct --starttime 12/06-08:00 --endtime 12/06-23:00 --state CD --parsable \
--user moneta -o JobID,JobName%30.batch | grep MagicM41 | cut -d"|" -f1)
[krause@master ~] for id in $ids ; do sacct --parsable2 --noheader --units M -o MaxRSS \
-j $id.batch; done | tr -d "M" | grep -v "^0$" | hist -b 50 -x
10| o
9| o
......