*** empty log message ***

svn path=/trunk/boinc/; revision=6525
This commit is contained in:
David Anderson 2005-07-05 19:09:42 +00:00
parent cb25fe647d
commit e3b9e4d9e0
2 changed files with 15 additions and 2 deletions

View File

@ -8892,3 +8892,13 @@ David 5 July 2005
api/
boinc_api.C
graphics_impl.C
David 5 July 2005
- scheduler: in estimating result duration,
don't divide by resource share fraction.
This assumes round-robin across all projects,
which is no longer necessarily the case.
(From John McLeod)
sched/
sched_send.C

View File

@ -163,7 +163,10 @@ static double estimate_cpu_duration(WORKUNIT& wu, SCHEDULER_REPLY& reply) {
}
// estimate the amount of real time to complete this WU,
// taking into account active_frac and resource_share_fraction
// taking into account active_frac etc.
// Note: don't factor in resource_share_fraction.
// The core client no longer necessarily does round-robin
// across all projects.
//
static double estimate_wallclock_duration(
WORKUNIT& wu, SCHEDULER_REQUEST& request, SCHEDULER_REPLY& reply
@ -179,7 +182,7 @@ static double estimate_wallclock_duration(
}
if (running_frac > 1) running_frac = 1;
double ecd = estimate_cpu_duration(wu, reply);
double ewd = ecd/(running_frac*request.resource_share_fraction);
double ewd = ecd/running_frac;
if (reply.host.duration_correction_factor) {
ewd *= reply.host.duration_correction_factor;
}