2003-08-26 18:33:21 +00:00
|
|
|
<?
|
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Computation credit");
|
|
|
|
echo "
|
2002-10-20 22:12:53 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
Each project gives you <b>credit</b> for the computations your
|
|
|
|
computers performs for the project.
|
|
|
|
|
|
|
|
<p>
|
2004-01-15 01:18:25 +00:00
|
|
|
BOINC's credit system is based on a 'reference computer' that can do
|
2002-10-20 22:12:53 +00:00
|
|
|
<ul>
|
2003-01-02 23:12:05 +00:00
|
|
|
<li>1 billion floating-point multiplies per second
|
|
|
|
<li>1 billion integer multiplies per second
|
2002-10-22 01:26:21 +00:00
|
|
|
<li>4 billion bytes per second of traffic to and from main memory
|
2002-10-20 22:12:53 +00:00
|
|
|
(sequential, half reads and half writes)
|
|
|
|
</ul>
|
2003-09-11 22:26:42 +00:00
|
|
|
BOINC's unit of credit, the <b>Cobblestone</b> <sup>1</sup>,
|
2004-01-15 01:18:25 +00:00
|
|
|
is 1/300 day of CPU time on the reference computer.
|
2002-10-20 22:12:53 +00:00
|
|
|
|
2004-03-23 01:44:47 +00:00
|
|
|
<p>
|
|
|
|
Some BOINC projects grant credit only after
|
|
|
|
results have been <a href=intro_user.php#credit>validated</a>.
|
|
|
|
|
2002-10-20 22:12:53 +00:00
|
|
|
<p>
|
|
|
|
Each project maintains two types of credit:
|
|
|
|
<ul>
|
|
|
|
<li> <b>Total credit</b>:
|
|
|
|
The total number of Cobblestones performed.
|
|
|
|
<li> <b>Recent average credit</b>:
|
2002-10-22 01:26:21 +00:00
|
|
|
The average number of Cobblestones per day performed recently.
|
2004-01-15 01:18:25 +00:00
|
|
|
This average decreases by a factor of two every week,
|
|
|
|
according to algorithms given below.
|
2002-10-20 22:12:53 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
2002-10-22 01:26:21 +00:00
|
|
|
Both types of credit (total and recent average)
|
|
|
|
are maintained for each user and host.
|
2003-01-02 23:12:05 +00:00
|
|
|
|
|
|
|
<h3>Leader boards</h3>
|
2004-03-23 01:44:47 +00:00
|
|
|
|
2003-01-02 23:12:05 +00:00
|
|
|
BOINC lets projects export the credit-related
|
|
|
|
parts of their database as XML files.
|
|
|
|
These XML files can be used to generate
|
|
|
|
other breakdowns of users, hosts and teams,
|
|
|
|
or to generate leaderboards based on the sum of
|
|
|
|
credit from different projects.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Possible future improvements</h3>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
Ideally, credit should reflect network transfer and disk storage as well
|
|
|
|
as computation.
|
|
|
|
But it's hard to verify these activities,
|
|
|
|
so for now they aren't included.
|
|
|
|
<li>
|
|
|
|
Eventually projects will develop applications that use
|
|
|
|
graphics coprocessors or other non-CPU hardware.
|
|
|
|
Credit should reflect the usage of such hardware.
|
|
|
|
To accomplish this, we will need to let
|
|
|
|
projects supply their own benchmarking functions.
|
|
|
|
This will also handle the situation where a project's
|
|
|
|
application does e.g. all integer arithmetic.
|
|
|
|
</ul>
|
2004-01-15 01:18:25 +00:00
|
|
|
|
|
|
|
<h3>How 'Recent Average Credit' is computed</h3>
|
|
|
|
Each time new credit granted,
|
|
|
|
the following function is used to update the
|
|
|
|
recent average credit of the host, user and team:
|
|
|
|
<pre>
|
2004-03-23 01:44:47 +00:00
|
|
|
#define LOG2 M_LN2
|
|
|
|
// log(2)
|
|
|
|
#define SECONDS_IN_DAY (3600*24)
|
|
|
|
#define AVG_HALF_LIFE (SECONDS_IN_DAY*7)
|
2004-01-15 01:18:25 +00:00
|
|
|
|
|
|
|
// decay an exponential average of credit per day,
|
|
|
|
// and possibly add an increment for new credit
|
|
|
|
//
|
|
|
|
void update_average(
|
|
|
|
double credit_assigned_time, // when work was started for new credit
|
|
|
|
// (or zero if no new credit)
|
|
|
|
double credit, // amount of new credit
|
|
|
|
double& avg, // average credit per day (in and out)
|
|
|
|
double& avg_time // when average was last computed
|
|
|
|
) {
|
|
|
|
double now = dtime();
|
|
|
|
|
|
|
|
if (avg_time) {
|
|
|
|
double diff = now - avg_time;
|
|
|
|
double diff_days = diff/SECONDS_IN_DAY;
|
|
|
|
double weight = exp(-diff*LOG2/AVG_HALF_LIFE);
|
|
|
|
avg *= weight;
|
|
|
|
avg += (1-weight)*(credit/diff_days);
|
|
|
|
} else {
|
|
|
|
double dd = (now - credit_assigned_time)/SECONDS_IN_DAY;
|
|
|
|
avg = credit/dd;
|
|
|
|
}
|
|
|
|
avg_time = now;
|
|
|
|
}
|
|
|
|
</pre>
|
2004-03-23 01:44:47 +00:00
|
|
|
This function is also invoked
|
2003-09-11 22:26:42 +00:00
|
|
|
<hr noshade size=1>
|
|
|
|
<sup>1</sup> Named after Jeff Cobb of SETI@home
|
2003-08-26 18:33:21 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|