The usage data is not saved to the database, it is kept in the slurmctld’s 
memory and saved periodically to a state file:  assoc_usage.

The sshare utility requests and displays this data.  You could use this as an 
example for developing your utility.

Don

From: Andrew Carton [mailto:[email protected]]
Sent: Monday, November 05, 2012 7:12 AM
To: slurm-dev
Subject: [slurm-dev] Association Raw Usage

Hi,

I am using the functions in the slurmdb to get some information from the 
database using C. I can currently get the grp_cpu_mins, which is the max number 
of minutes the association can run for. I wish to get the current raw usage, 
that has been used in this association.

Does anyone know how I do this? I was thinking it was this defined method, but 
I am not sure.

extern int slurmdb_usage_get(void *db_conn,  void *in, int type,
           time_t start, time_t end);

Thanks,
Andrew


<<inline: image001.jpg>>

Reply via email to