what is recent average credit?

Questions and Answers : Windows : what is recent average credit?
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile mikey
Volunteer tester
Avatar

Send message
Joined: 17 Dec 99
Posts: 4215
Credit: 3,474,603
RAC: 0
United States
Message 124045 - Posted: 16 Jun 2005, 0:17:16 UTC

Greg said "and how do i increase my r.a.c"
RAC is like a speedometer the more credits you crunch the faster you, the more credits you crunch the higher your rac. There are several ways to get more rac...get more machines and put them on the same account, click on my name in the left column and you will see my stats and then if you scroll down you can the number of machines I have on my account. You can also run an optimized version of Boinc which will process a unit faster and give less credit per unit but since you are processing more units you will have a higher rac. This last option is not without its own set of issues though.

ID: 124045 · Report as offensive
Pascal, K G
Volunteer tester
Avatar

Send message
Joined: 3 Apr 99
Posts: 2343
Credit: 150,491
RAC: 0
United States
Message 124016 - Posted: 15 Jun 2005, 22:13:13 UTC

Recent Average Credit
Projects maintain two counts of granted credit:

Total credit: The total number of Cobblestones performed and granted.
Recent average credit: The average number of Cobblestones per day granted recently. This average decreases by a factor of two every week, according to the algorithm given below.
Both quantities (total and recent average) are maintained for each user, host and team.

Each time new credit is granted, the following function is used to update the recent average credit of the host, user and team:


void update_average(
double work_start_time, // when new work was started
// (or zero if no new work)
double work, // amount of new work
double half_life,
double& avg, // average work per day (in and out)
double& avg_time // when average was last computed
) {
double now = dtime();

if (avg_time) {
double diff, diff_days, weight;

diff = now - avg_time;
if (diff 1.e-6) {
avg += (1-weight)*(work/diff_days);
}
else {
avg += M_LN2*work*SECONDS_PER_DAY/half_life;
}
} else if (work) {
double dd = (now - work_start_time)/SECONDS_PER_DAY;
avg = work/dd;
}
avg_time = now;
}



Computing the current value of Recent Average Credit
BOINC updates 'recent average credit' (RAC) only when new credit is granted. Interfaces that export RAC also export that time at which it was last updated. To obtain the current value of RAC, you must 'decay' it based on the time that has elapsed since it was updated:

function decay_average($avg, $avg_time, $now = 0) {
$M_LN2 = 0.693147180559945309417;
$credit_half_life = 86400 * 7;
if ($now == 0) {
$now = time();
}
$diff = $now - $avg_time;
$diff_days = $diff/86400;
$weight = exp(-$diff * $M_LN2/$credit_half_life);
$avg *= $weight;
return $avg;
}

If you don't apply this decay, inactive entities will have incorrectly high RAC.

PHP code for the decay function can be found in html/inc/credit.inc and html/inc/host.inc.


--------------------------------------------------------------------------------
1 Named after Jeff Cobb of SETI@home
Semper Eadem
So long Paul, it has been a hell of a ride.

Park your ego's, fire up the computers, Science YES, Credits No.
ID: 124016 · Report as offensive
Profile gregk
Volunteer tester
Avatar

Send message
Joined: 27 Aug 04
Posts: 53
Credit: 387,433
RAC: 0
United States
Message 123997 - Posted: 15 Jun 2005, 21:40:01 UTC

what is recent average credit and how do i increase my r.a.c ? thanks for your time.
ID: 123997 · Report as offensive

Questions and Answers : Windows : what is recent average credit?


 
©2020 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.