Summary: | tres_usage_in mapping | ||
---|---|---|---|
Product: | Slurm | Reporter: | Michael DiDomenico <mdidomenico> |
Component: | Accounting | Assignee: | Ethan Simmons <ethan> |
Status: | RESOLVED INFOGIVEN | QA Contact: | |
Severity: | 4 - Minor Issue | ||
Priority: | --- | ||
Version: | 24.11.3 | ||
Hardware: | Linux | ||
OS: | Linux | ||
Site: | IDACCR | Slinky Site: | --- |
Alineos Sites: | --- | Atos/Eviden Sites: | --- |
Confidential Site: | --- | Coreweave sites: | --- |
Cray Sites: | --- | DS9 clusters: | --- |
Google sites: | --- | HPCnow Sites: | --- |
HPE Sites: | --- | IBM Sites: | --- |
NOAA SIte: | --- | NoveTech Sites: | --- |
Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
Recursion Pharma Sites: | --- | SFW Sites: | --- |
SNIC sites: | --- | Tzag Elita Sites: | --- |
Linux Distro: | --- | Machine Name: | |
CLE Version: | Version Fixed: | ||
Target Release: | --- | DevPrio: | --- |
Emory-Cloud Sites: | --- |
Description
Michael DiDomenico
2025-03-11 14:04:02 MDT
Please upload your slurm.conf, as this contains information about what information is tracked. (In reply to Ethan Simmons from comment #1) > Please upload your slurm.conf, as this contains information about what > information is tracked. i can't do that, the environment is on a protected network. however, i believe what your looking for is accountingstoragetres = cpu,mem,energy,node,billing,fs/disk,vmem,pages,gres/gpu,gres/gpumem,gres/gpuutil jobacctgatherfrequency=task=50,energy=60,network=60,filesystem=60 jobacctgathertype=jobacct_gather/cgroup i did poke at this a little more after i opened the ticket. it seems like what's actually missing from the JSON is the TRESUsage fields. when i run sacct --helpformat | grep TRES i can see a list of TRESUsageIn/Out and when i run something like 'sacct -o jobid,tresusageinmax' i do see values. however those fields doesn't seem to end up natively in the --json output for sacct. or atleast i don't understand how to calculate it ideally, every field listed in --helpformat for sacct should be in the --json output Coming back to this. The json option uses the data parser, which is different than the options available using --format (see link 1). If you want specific values, use --format. If you want the output to be machine friendly, use --parsable (link 2). The json option is available for those that want output similar to the rest d, as this uses the data parser extensively. For your uses, I would recommend a command like this: > $ sacct -j 24 -P -o jobid,partition,account > JobID|Partition|Account > 24|primary|test3 Where you can change the format parameter to meet your needs. The format isn't json, but it is closer to csv. Let me know if any other questions come up here. [1] https://slurm.schedmd.com/sacct.html#OPT_json [2] https://slurm.schedmd.com/sacct.html#OPT_parsable Following up, are we ok to close this ticket? i don't agree with your assessment, but i don't have time to look at this at the moment, so you can close this ticket. Feel free to open the ticket again if you want to revisit this. Closing |