I believe that the info share data is kept by slurmctld in memory.  As far as I 
could tell from the code, it should be checkpointing the info to the 
assoc_usage file wherever slurm is saving state information.  I couldn’t find 
any docs on that, you’d have to check the code for more information.

However, if you just want to see what was used, you can get the raw usage using 
sacct.  For example, for a given job, you can do something like:

sacct -X -a -j 1182128  --format 
Jobid,jobname,partition,account,alloccpus,state,exitcode,cputimeraw

-----
Gary Skouson


From: Roshan Mathew [mailto:r.t.mat...@bath.ac.uk]
Sent: Tuesday, November 25, 2014 9:51 AM
To: slurm-dev
Subject: [slurm-dev] Re: [ sshare ] RAW Usage


Thanks Ryan,



Is this value stored anywhere in the SLURM accounting DB? I could not find any 
value for the JOB that corresponds to this RAW usage.



Roshan

________________________________
From: Ryan Cox <ryan_...@byu.edu>
Sent: 25 November 2014 17:43
To: slurm-dev
Subject: [slurm-dev] Re: [ sshare ] RAW Usage

Raw usage is a long double and the time added by jobs can be off by a few 
seconds.  You can take a look at _apply_new_usage() in 
src/plugins/priority/multifactor/priority_multifactor.c to see exactly what 
happens.

Ryan
On 11/25/2014 10:34 AM, Roshan Mathew wrote:
Hello SLURM users,

http://slurm.schedmd.com/sshare.html
Raw Usage
The number of cpu-seconds of all the jobs that charged the account by the user. 
This number will decay over time when PriorityDecayHalfLife is defined.
I am getting different RAW Usage  values for the same job every time it is 
executed. The Job am using is a CPU stress test for 1 minute.

It would be very useful to understand the formula for how this RAW Usage is 
calculated when we are using the plugin PriorityType=priority/multifactor.

Snip of my slurm.conf file:-

# Activate the Multi-factor Job Priority Plugin with decay
PriorityType=priority/multifactor

# apply no decay
PriorityDecayHalfLife=0

PriorityCalcPeriod=1
PriorityUsageResetPeriod=MONTHLY

# The larger the job, the greater its job size priority.
PriorityFavorSmall=NO

# The job's age factor reaches 1.0 after waiting in the
# queue for 2 weeks.
PriorityMaxAge=14-0

# This next group determines the weighting of each of the
# components of the Multi-factor Job Priority Plugin.
# The default value for each of the following is 1.
PriorityWeightAge=0
PriorityWeightFairshare=100
PriorityWeightJobSize=0
PriorityWeightPartition=0
PriorityWeightQOS=0 # don't use the qos factor

Thanks!



Reply via email to