I am getting the number of allocated cpu cores at an instant of time via sacct (keeping the start and end interval very short, it seem very reasonable)

for example:

sacct --start=2013-11-01T17:00  -X --end=2013-11-01T17:01 
--format="jobid,ncpus,start,end


and sum the ncpus values using awk.



How can I get the maximum number of allocated cpu cores in a time interval. For example I want to know how many cpu cores used at most last month. Giving --start and --end interval long, and summing the ncpus may cause multiple count of the same cpu core (if a few jobs had started and ended on the same CPU core in the given time interval)

thanks alot.

Reply via email to