I used the command
sacct --format="CPUTimeraw,MaxRSS"
to get the MaxRSS of my slurm job.
However, the result looks like this:
MaxRSS
128340475+
What to make of this? Why is the MaxRSS ending with +? Which number is the final and can I get the result in Mb instead of kb?
The +
sign indicates that the length of the decimal representation of the number is too large to hold in the colum. You can increase the column width
sacct --format="CPUTimeraw,MaxRSS%20"
the %20
part will tell sacct
to set the MaxRSS
column width to 20 chars.
As for getting the results in MB, I do not think Slurm offers that but with numfmt
you can get a more human-redable version of it:
sacct --format="CPUTimeraw,MaxRSS%30" | numfmt --header=2 --field=2 --from=auto --to=iec --invalid=ignore