Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
dd23c31e
Commit
dd23c31e
authored
3 years ago
by
Nate Rini
Committed by
Tim Wickberg
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sacct - add container field
Bug 11380
parent
376f49cb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/man/man1/sacct.1
+28
-23
28 additions, 23 deletions
doc/man/man1/sacct.1
src/sacct/print.c
+17
-0
17 additions, 0 deletions
src/sacct/print.c
src/sacct/sacct.c
+1
-0
1 addition, 0 deletions
src/sacct/sacct.c
src/sacct/sacct.h
+1
-0
1 addition, 0 deletions
src/sacct/sacct.h
with
47 additions
and
23 deletions
doc/man/man1/sacct.1
+
28
−
23
View file @
dd23c31e
...
@@ -142,29 +142,30 @@ Account AdminComment AllocCPUS AllocNodes
...
@@ -142,29 +142,30 @@ Account AdminComment AllocCPUS AllocNodes
AllocTRES AssocID AveCPU AveCPUFreq
AllocTRES AssocID AveCPU AveCPUFreq
AveDiskRead AveDiskWrite AvePages AveRSS
AveDiskRead AveDiskWrite AvePages AveRSS
AveVMSize BlockID Cluster Comment
AveVMSize BlockID Cluster Comment
Constraints ConsumedEnergy ConsumedEnergyRaw CPUTime
Constraints Container ConsumedEnergy ConsumedEnergyRaw
CPUTimeRAW DBIndex DerivedExitCode Elapsed
CPUTime CPUTimeRAW DBIndex DerivedExitCode
ElapsedRaw Eligible End ExitCode
Elapsed ElapsedRaw Eligible End
Flags GID Group JobID
ExitCode Flags GID Group
JobIDRaw JobName Layout MaxDiskRead
JobID JobIDRaw JobName Layout
MaxDiskReadNode MaxDiskReadTask MaxDiskWrite MaxDiskWriteNode
MaxDiskRead MaxDiskReadNode MaxDiskReadTask MaxDiskWrite
MaxDiskWriteTask MaxPages MaxPagesNode MaxPagesTask
MaxDiskWriteNode MaxDiskWriteTask MaxPages MaxPagesNode
MaxRSS MaxRSSNode MaxRSSTask MaxVMSize
MaxPagesTask MaxRSS MaxRSSNode MaxRSSTask
MaxVMSizeNode MaxVMSizeTask McsLabel MinCPU
MaxVMSize MaxVMSizeNode MaxVMSizeTask McsLabel
MinCPUNode MinCPUTask NCPUS NNodes
MinCPU MinCPUNode MinCPUTask NCPUS
NodeList NTasks Priority Partition
NNodes NodeList NTasks Priority
QOS QOSRAW Reason ReqCPUFreq
Partition QOS QOSRAW Reason
ReqCPUFreqMin ReqCPUFreqMax ReqCPUFreqGov ReqCPUS
ReqCPUFreq ReqCPUFreqMin ReqCPUFreqMax ReqCPUFreqGov
ReqMem ReqNodes ReqTRES Reservation
ReqCPUS ReqMem ReqNodes ReqTRES
ReservationId Reserved ResvCPU ResvCPURAW
Reservation ReservationId Reserved ResvCPU
Start State Submit SubmitLine
ResvCPURAW Start State Submit
Suspended SystemCPU SystemComment Timelimit
SubmitLine Suspended SystemCPU SystemComment
TimelimitRaw TotalCPU TRESUsageInAve TRESUsageInMax
Timelimit TimelimitRaw TotalCPU TRESUsageInAve
TRESUsageInMaxNode TRESUsageInMaxTask TRESUsageInMin TRESUsageInMinNode
TRESUsageInMax TRESUsageInMaxNode TRESUsageInMaxTask TRESUsageInMin
TRESUsageInMinTask TRESUsageInTot TRESUsageOutAve TRESUsageOutMax
TRESUsageInMinNode TRESUsageInMinTask TRESUsageInTot TRESUsageOutAve
TRESUsageOutMaxNode TRESUsageOutMaxTask TRESUsageOutMin TRESUsageOutMinNode
TRESUsageOutMax TRESUsageOutMaxNode TRESUsageOutMaxTask TRESUsageOutMin
TRESUsageOutMinTask TRESUsageOutTot UID User
TRESUsageOutMinNode TRESUsageOutMinTask TRESUsageOutTot UID
UserCPU WCKey WCKeyID WorkDir
User UserCPU WCKey WCKeyID
WorkDir
.ft 1
.ft 1
.fi
.fi
.RE
.RE
...
@@ -560,6 +561,10 @@ Total energy consumed by all tasks in job, in joules.
...
@@ -560,6 +561,10 @@ Total energy consumed by all tasks in job, in joules.
Note: Only in case of exclusive job allocation this value
Note: Only in case of exclusive job allocation this value
reflects the jobs' real energy consumption.
reflects the jobs' real energy consumption.
.TP
\f3Container\fP
Path to OCI Container Bundle requested.
.TP
.TP
\f3CPUTime\fP
\f3CPUTime\fP
Time used (Elapsed time * CPU count) by a job or step in HH:MM:SS format.
Time used (Elapsed time * CPU count) by a job or step in HH:MM:SS format.
...
...
This diff is collapsed.
Click to expand it.
src/sacct/print.c
+
17
−
0
View file @
dd23c31e
...
@@ -634,6 +634,23 @@ extern void print_fields(type_t type, void *object)
...
@@ -634,6 +634,23 @@ extern void print_fields(type_t type, void *object)
tmp_char
,
tmp_char
,
(
curr_inx
==
field_count
));
(
curr_inx
==
field_count
));
break
;
break
;
case
PRINT_CONTAINER
:
switch
(
type
)
{
case
JOB
:
tmp_char
=
job
->
container
;
break
;
case
JOBSTEP
:
tmp_char
=
step
->
container
;
break
;
case
JOBCOMP
:
default:
tmp_char
=
NULL
;
break
;
}
field
->
print_routine
(
field
,
tmp_char
,
(
curr_inx
==
field_count
));
break
;
case
PRINT_CONSUMED_ENERGY
:
case
PRINT_CONSUMED_ENERGY
:
switch
(
type
)
{
switch
(
type
)
{
case
JOB
:
case
JOB
:
...
...
This diff is collapsed.
Click to expand it.
src/sacct/sacct.c
+
1
−
0
View file @
dd23c31e
...
@@ -59,6 +59,7 @@ print_field_t fields[] = {
...
@@ -59,6 +59,7 @@ print_field_t fields[] = {
{
10
,
"Cluster"
,
print_fields_str
,
PRINT_CLUSTER
},
{
10
,
"Cluster"
,
print_fields_str
,
PRINT_CLUSTER
},
{
14
,
"Comment"
,
print_fields_str
,
PRINT_COMMENT
},
{
14
,
"Comment"
,
print_fields_str
,
PRINT_COMMENT
},
{
19
,
"Constraints"
,
print_fields_str
,
PRINT_CONSTRAINTS
},
{
19
,
"Constraints"
,
print_fields_str
,
PRINT_CONSTRAINTS
},
{
19
,
"Container"
,
print_fields_str
,
PRINT_CONTAINER
},
{
14
,
"ConsumedEnergy"
,
print_fields_str
,
PRINT_CONSUMED_ENERGY
},
{
14
,
"ConsumedEnergy"
,
print_fields_str
,
PRINT_CONSUMED_ENERGY
},
{
17
,
"ConsumedEnergyRaw"
,
print_fields_uint64
,
{
17
,
"ConsumedEnergyRaw"
,
print_fields_uint64
,
PRINT_CONSUMED_ENERGY_RAW
},
PRINT_CONSUMED_ENERGY_RAW
},
...
...
This diff is collapsed.
Click to expand it.
src/sacct/sacct.h
+
1
−
0
View file @
dd23c31e
...
@@ -105,6 +105,7 @@ typedef enum {
...
@@ -105,6 +105,7 @@ typedef enum {
PRINT_CLUSTER
,
PRINT_CLUSTER
,
PRINT_COMMENT
,
PRINT_COMMENT
,
PRINT_CONSTRAINTS
,
PRINT_CONSTRAINTS
,
PRINT_CONTAINER
,
PRINT_CONSUMED_ENERGY
,
PRINT_CONSUMED_ENERGY
,
PRINT_CONSUMED_ENERGY_RAW
,
PRINT_CONSUMED_ENERGY_RAW
,
PRINT_CPU_TIME
,
PRINT_CPU_TIME
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment