Difference between revisions of "Calculating Fairshare - bhpart"
Jump to navigation
Jump to search
(Created page with "Typical Fairshare Formula: <syntaxhighlight> dynamic_priority = number_shares / (cpu_time * CPU_TIME_FACTOR + run_time * RUN_TIME_FACTOR + (1 + job_slots) * RUN_JOB_FACTOR + fairshare_...") |
(No difference)
|
Latest revision as of 12:08, 8 January 2013
Typical Fairshare Formula:
dynamic_priority = number_shares / (cpu_time * CPU_TIME_FACTOR + run_time * RUN_TIME_FACTOR + (1 + job_slots) * RUN_JOB_FACTOR + fairshare_adjustment*FAIRSHARE_ADJUSTMENT_FACTOR).For your case, it will be:
Dynamic_priority = number_share / (cpu_time * 0.7 + run_time * 0.7 + (1 + job_slots) * 3)The only trick here is that internal calculation uses hour as unit for cpu_time and run_time value, but the bhpart display values are in second. So, ultimately, the formula will become:
Dynamic_priority = number_share / (bhpart_cpu_time/3600 * 0.7 + bhpart_run_time/3600 * 0.7 + (1 + job_slots) * 3)Lets give a try:
USER/GROUP SHARES PRIORITY STARTED RESERVED CPU_TIME RUN_TIME ADJUST
navarrop 1000 9.031 4 0 205487.2 286841 0.000
So, dynamic_priority = 1000 / (205487.2 / 3600 * 0.7 + 286841 / 3600 * 0.7 + (1 + 4) * 3)
= 1000 / (39.95 + 55.77 + 15)
= 1000/ 110.72
= 9.031