- client: in computing "anticipated" STD, scale by ninstances

(from John McLeod)

svn path=/trunk/boinc/; revision=19959
This commit is contained in:
David Anderson 2009-12-17 23:32:21 +00:00
parent 9070c5ed56
commit 4b0cae80f5
2 changed files with 13 additions and 3 deletions

View File

@ -10222,3 +10222,10 @@ David 17 Dec 2009
client/
cpu_sched.cpp
David 17 Dec 2009
- client: in computing "anticipated" STD, scale by ninstances
(from John McLeod)
client/
cpu_sched.cpp

View File

@ -635,9 +635,12 @@ static bool schedule_if_possible(
}
proc_rsc.schedule(rp);
double dt = gstate.global_prefs.cpu_scheduling_period();
rp->project->cpu_pwf.anticipated_debt -= dt*rp->avp->avg_ncpus;
rp->project->cuda_pwf.anticipated_debt -= dt*rp->avp->ncudas;
rp->project->ati_pwf.anticipated_debt -= dt*rp->avp->natis;
// project STD at end of scheduling period
//
rp->project->cpu_pwf.anticipated_debt -= dt*rp->avp->avg_ncpus/cpu_work_fetch.ninstances;
rp->project->cuda_pwf.anticipated_debt -= dt*rp->avp->ncudas/cuda_work_fetch.ninstances;
rp->project->ati_pwf.anticipated_debt -= dt*rp->avp->natis/ati_work_fetch.ninstances;
return true;
}