<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Which fields are you talking about. All of the fields seem to be
well-documented in the sacct man page
(<a class="moz-txt-link-freetext" href="https://slurm.schedmd.com/sacct.html">https://slurm.schedmd.com/sacct.html</a>). For example, you mention
the time fields. For format for all the time fields seem to be
rather well documented (See below) and you can use the
SLURM_TIME_FORMAT environment variable to specify the format of
some of those time fields.</p>
<p> Can you give a more specific example of a field you are having
trouble parsing, and what programming language you are using to
parse it? I had no problem parsing the date/time fields in Python.
For example I wrote a Python routine that converted elapsed to
seconds. I'd share the code with you, but I can't find it at the
moment. I think it's on my personal computer instead of my work
computer, which I'm using now. <br>
</p>
<p>From <a class="moz-txt-link-freetext" href="https://slurm.schedmd.com/sacct.html">https://slurm.schedmd.com/sacct.html</a>:<br>
</p>
<p>
<blockquote type="cite">Elapsed time fields are presented as
[days-]hours:minutes:seconds[.microseconds]. Only 'CPU' fields
will
ever have microseconds.
</blockquote>
</p>
<p><br>
</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>CPUTime</b></dt>
<dd>
Time used (Elapsed time * CPU count) by a job or step in
HH:MM:SS format.
<p>
</p>
</dd>
<dt><b>CPUTimeRAW</b></dt>
<dd>
Time used (Elapsed time * CPU count) by a job or step in
cpu-seconds.
</dd>
</dl>
</blockquote>
</p>
<p><br>
</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>Elapsed</b></dt>
<dd>
The jobs elapsed time.
</dd>
<dt><br>
</dt>
<dd>
The format of this fields output is as follows:
<dl compact="compact">
<dt><br>
</dt>
<dd>
<dl compact="compact">
<dt>
<i>[DD-[HH:]]MM:SS</i>
</dt>
</dl>
</dd>
</dl>
</dd>
<dt><br>
</dt>
<dd>
<br>
</dd>
<dd>as defined by the following:
<dl compact="compact">
<dt><br>
</dt>
<dd>
<dl compact="compact">
<dt><i>DD</i></dt>
<dd>
days
</dd>
<dt><i>hh</i></dt>
<dd>
hours
</dd>
<dt><i>mm</i></dt>
<dd>
minutes
</dd>
<dt><i>ss</i></dt>
<dd>
seconds
</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</blockquote>
<br>
</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>End</b></dt>
<dd>
Termination time of the job. Format output is,
YYYY-MM-DDTHH:MM:SS, unless
changed through the SLURM_TIME_FORMAT environment variable.
</dd>
</dl>
</blockquote>
<br>
</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>Reserved</b></dt>
<dd>
How much wall clock time was used as reserved time for this
job. This is
derived from how long a job was waiting from eligible time
to when it
actually started. Format is the same as <b>Elapsed</b>.
<p>
</p>
</dd>
<dt><b>ResvCPU</b></dt>
<dd>
How many CPU seconds were used as reserved time for this
job. Format is
the same as <b>Elapsed</b>.
<p>
</p>
</dd>
<dt><b>ResvCPURAW</b></dt>
<dd>
How many CPU seconds were used as reserved time for this
job. Format is
in processor seconds.
<p>
</p>
</dd>
<dt><b>Start</b></dt>
<dd>
Initiation time of the job in the same format as <b>End</b>.
</dd>
</dl>
</blockquote>
<br>
<blockquote type="cite">
<dl compact="compact">
<dt><b>Submit</b></dt>
<dd>
The time the job was submitted in the same format as <b>End</b>.
<p>
NOTE: If a job is requeued, the submit time is reset. To
obtain the
original submit time it is necessary to use the -D or
--duplicate option
to display all duplicate entries for a job.
</p>
<p>
</p>
</dd>
<dt><b>Suspended</b></dt>
<dd>
The amount of time a job or job step was suspended. Format
is the same
as <i>Elapsed</i>.
<p>
</p>
</dd>
<dt><b>SystemCPU</b></dt>
<dd>
The amount of system CPU time used by the job or job step.
Format
is the same as <b>Elapsed</b>.
<p>
NOTE: SystemCPU provides a measure of the task's parent
process and
does not include CPU time of child processes.
</p>
<p>
</p>
</dd>
<dt><b>Timelimit</b></dt>
<dd>
What the timelimit was/is for the job. Format is the same as
<b>Elapsed</b>.
<p>
</p>
</dd>
<dt><b>TimelimitRaw</b></dt>
<dd>
What the timelimit was/is for the job. Format is in number
of minutes.
<p>
</p>
</dd>
<dt><b>TotalCPU</b></dt>
<dd>
The sum of the SystemCPU and UserCPU time used by the job or
job step.
The total CPU time of the job may exceed the job's elapsed
time for
jobs that include multiple job steps. Format is the same as
<b>Elapsed</b>.
<p>
NOTE: TotalCPU provides a measure of the task's parent
process and
does not include CPU time of child processes.
</p>
</dd>
</dl>
</blockquote>
</p>
<p><br>
</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>SLURM_TIME_FORMAT</b></dt>
<dd>
Specify the format used to report time stamps. A value of <i>standard</i>,
the
default value, generates output in the form
"year-month-dateThour:minute:second".
A value of <i>relative</i> returns only
"hour:minute:second" if the current day.
For other dates in the current year it prints the
"hour:minute" preceded by
"Tomorr" (tomorrow), "Ystday" (yesterday), the name of the
day for the coming
week (e.g. "Mon", "Tue", etc.), otherwise the date (e.g. "25
Apr").
For other years it returns a date month and year without a
time (e.g.
"6 Jun 2012"). All of the time stamps use a 24 hour format.
<p>
A valid strftime() format can also be specified. For
example, a value of
"%a %T" will report the day of the week and a time stamp
(e.g. "Mon 12:34:56").
</p>
</dd>
</dl>
</blockquote>
<br>
</p>
<div class="moz-cite-prefix">On 3/5/21 12:39 AM,
<a class="moz-txt-link-abbreviated" href="mailto:xiaojinghu93@163.com">xiaojinghu93@163.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:F7AF2CE7-37F3-4992-8EF7-739650A35EBC@163.com">
<pre class="moz-quote-pre" wrap="">Hello, guys,
I am doing a parsing job on the output of the sacct command and I know fields that could be specified to be outputted.
The difficulty I am facing is that I am in lack of detailed info about the fields. I need to do calculation on the fields so I need to understand what values they will be taking. For example, time field maybe in format like “YYYY:DDTHH:SS” or just “Unknown”.
Where can I find those detailed info? Is their any documentation about it?
Any help is greatly appreciated!
Best Regards,
Xiaojing
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Prentice </pre>
</body>
</html>