Skip to content

Add missing sacct output fields #291

@shiv-tyagi

Description

@shiv-tyagi

Problem

sacct implements only 16 of 100+ Slurm fields. Missing fields include MaxRSS, MaxVMSize, AllocTRES, ReqTRES, AveCPU, SystemCPU, UserCPU, ConsumedEnergy, and many others. This limits post-job analysis capability.

Currently supported: JobID, JobName, User, Account, Partition, State, Elapsed, NNodes, ExitCode, Start, End, Submit, TimeLimit, NodeList, NCPUS, ReqMem, QOS.

Expected Behavior

Key missing sacct fields (most commonly queried):

Field Description
AllocTRES Allocated TRES string (e.g., cpu=8,mem=32G,gres/gpu=2)
ReqTRES Requested TRES string
Priority Job priority at time of scheduling
NTasks Number of tasks
ReqNodes Requested nodes
AllocNodes Allocated node count
Submit / Eligible Submit/eligible timestamps
MaxRSS Peak memory usage (requires agent metrics)
MaxVMSize Peak virtual memory
AveCPU Average CPU time
SystemCPU / UserCPU System/user CPU time
ConsumedEnergy Energy consumed (if available)

Acceptance Criteria

  • AllocTRES and ReqTRES format correctly (e.g., cpu=8,mem=32000M,gres/gpu=2)
  • Priority, NTasks, ReqNodes, AllocNodes fields display correct values
  • New format specifiers work with -o custom format strings
  • Default and long output formats include key new fields
  • Fields requiring agent metrics (MaxRSS, AveCPU) display N/A until collection is implemented

Note: MaxRSS/AveCPU fields have a soft dependency on sstat process metrics collection. Most fields (AllocTRES, ReqTRES, Priority, timestamps) are independent and can be implemented immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions