<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Calculating_Fairshare_-_bhpart</id>
	<title>Calculating Fairshare - bhpart - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Calculating_Fairshare_-_bhpart"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Calculating_Fairshare_-_bhpart&amp;action=history"/>
	<updated>2026-05-04T17:29:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Calculating_Fairshare_-_bhpart&amp;diff=1626&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;Typical Fairshare Formula:   &lt;syntaxhighlight&gt; dynamic_priority = number_shares / (cpu_time * CPU_TIME_FACTOR + run_time * RUN_TIME_FACTOR + (1 + job_slots) * RUN_JOB_FACTOR + fairshare_...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Calculating_Fairshare_-_bhpart&amp;diff=1626&amp;oldid=prev"/>
		<updated>2013-01-08T12:08:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Typical Fairshare Formula:   &amp;lt;syntaxhighlight&amp;gt; dynamic_priority = number_shares / (cpu_time * CPU_TIME_FACTOR + run_time * RUN_TIME_FACTOR + (1 + job_slots) * RUN_JOB_FACTOR + fairshare_...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Typical Fairshare Formula: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
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).&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For your case, it will be:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Dynamic_priority = number_share / (cpu_time * 0.7 + run_time * 0.7  + (1 + job_slots) * 3)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Dynamic_priority = number_share / (bhpart_cpu_time/3600 * 0.7 + bhpart_run_time/3600 * 0.7  + (1 + job_slots) * 3)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lets give a try:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
USER/GROUP   SHARES  PRIORITY  STARTED  RESERVED  CPU_TIME  RUN_TIME   ADJUST&lt;br /&gt;
navarrop     1000       9.031     4        0    205487.2   286841       0.000&lt;br /&gt;
&lt;br /&gt;
So, dynamic_priority = 1000 / (205487.2 / 3600 * 0.7 + 286841 / 3600 * 0.7 + (1 + 4) * 3)&lt;br /&gt;
                                          = 1000 / (39.95 + 55.77 + 15)&lt;br /&gt;
                                          = 1000/ 110.72&lt;br /&gt;
                                          = 9.031&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>