- scheduler: change vbox_mt plan function to use at most 2 cores, not 3

(CERN doesn't actually need 3)


svn path=/trunk/boinc/; revision=25013
This commit is contained in:
David Anderson 2012-01-09 02:48:51 +00:00
parent 4a92463a25
commit 436d56e70b
2 changed files with 9 additions and 2 deletions

View File

@ -298,3 +298,10 @@ Rom 8 Jan 2012
samples/vboxwrapper/
vboxwrapper.cpp
David 8 Jan 2012
- scheduler: change vbox_mt plan function to use at most 2 cores, not 3
(CERN doesn't actually need 3)
sched/
sched_customize.cpp

View File

@ -516,7 +516,7 @@ static inline bool app_plan_opencl(
// handles vbox_[32|64][_mt]
// "mt" is tailored to the needs of CERN:
// use 1, 2 or 3 CPUs
// use 1 or 2 CPUs
static inline bool app_plan_vbox(
SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu
@ -557,7 +557,7 @@ static inline bool app_plan_vbox(
double ncpus = g_wreq->effective_ncpus;
// number of usable CPUs, taking user prefs into account
int nthreads = (int)ncpus;
if (nthreads > 3) nthreads = 3;
if (nthreads > 2) nthreads = 2;
hu.avg_ncpus = nthreads;
sprintf(hu.cmdline, "--nthreads %d", nthreads);
} else {