- client: if we're going to do a scheduler RPC for reasons

other than work fetch (e.g., user request, project request)
    temporarily clear resource backoffs while deciding
    whether to request work.
    The backoffs are there only to delay RPCs,
    and we're going an RPC anyway.

svn path=/trunk/boinc/; revision=17416
This commit is contained in:
David Anderson 2009-03-01 18:11:18 +00:00
parent dcbbfbfa98
commit ebbf9d5636
3 changed files with 23 additions and 1 deletions

View File

@ -2405,3 +2405,14 @@ David 27 Feb 2009
client/
rr_sim.cpp
work_fetch.cpp
David 1 Mar 2009
- client: if we're going to do a scheduler RPC for reasons
other than work fetch (e.g., user request, project request)
temporarily clear resource backoffs while deciding
whether to request work.
The backoffs are there only to delay RPCs,
and we're going an RPC anyway.
client/
work_fetch.cpp

View File

@ -349,9 +349,17 @@ void WORK_FETCH::compute_work_request(PROJECT* p) {
return;
}
// see if this is the project we'd ask for work anyway
// See if this is the project we'd ask for work anyway.
// Temporarily clear resource backoffs,
// since we're going to contact this project in any case.
//
double cpu_save = p->cpu_pwf.backoff_time;
double cuda_save = p->cuda_pwf.backoff_time;
p->cpu_pwf.backoff_time = 0;
p->cuda_pwf.backoff_time = 0;
PROJECT* pbest = choose_project();
p->cpu_pwf.backoff_time = cpu_save;
p->cuda_pwf.backoff_time = cuda_save;
if (p == pbest) return;
// if not, don't request any work

View File

@ -1,6 +1,9 @@
<?
$project_news = array(
array("February 27, 2009",
"We have rolled back to 6.4.5 for our latest stable version until 6.4.7 can be built. Something happened to 6.4.6 on our mirrors."
),
array("February 17, 2009",
"A new add-on program for Windows,
<a href=http://boinc.berkeley.edu/addon_item.php?platform=win&item=http%3A%2F%2Fefmer.eu%2Fboinc%2F>TThrottle</a>,