Skip to content
Snippets Groups Projects
Commit dd23c31e authored by Nate Rini's avatar Nate Rini Committed by Tim Wickberg
Browse files

sacct - add container field

Bug 11380
parent 376f49cb
No related branches found
No related tags found
No related merge requests found
...@@ -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.
......
...@@ -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:
......
...@@ -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},
......
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment