mirror of https://github.com/BOINC/boinc.git
sched: Remove CERN Theory hard-coded values from the sched_customize.cpp file. Theory now uses a container approach with each container pulling a job from the CERN job scheduler, which makes this code obsolete.
This commit is contained in:
parent
45298f3461
commit
eac15d6982
|
@ -889,11 +889,8 @@ static inline bool app_plan_vbox(
|
||||||
if (can_use_multicore) {
|
if (can_use_multicore) {
|
||||||
// Use number of usable CPUs, taking user prefs into account
|
// Use number of usable CPUs, taking user prefs into account
|
||||||
double ncpus = g_wreq->effective_ncpus;
|
double ncpus = g_wreq->effective_ncpus;
|
||||||
// CernVM on average uses between 25%-50% of a second core
|
|
||||||
// Total on a dual-core machine is between 65%-75%
|
|
||||||
if (ncpus > 1.5) ncpus = 1.5;
|
|
||||||
hu.avg_ncpus = ncpus;
|
hu.avg_ncpus = ncpus;
|
||||||
hu.max_ncpus = 2.0;
|
hu.max_ncpus = ncpus;
|
||||||
sprintf(hu.cmdline, "--nthreads %f", ncpus);
|
sprintf(hu.cmdline, "--nthreads %f", ncpus);
|
||||||
}
|
}
|
||||||
// use the non-mt version rather than the mt version with 1 CPU
|
// use the non-mt version rather than the mt version with 1 CPU
|
||||||
|
|
Loading…
Reference in New Issue