From eac15d6982fc34ca3c781e0580d45b8f32039c22 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 27 Jul 2016 10:38:19 -0700 Subject: [PATCH] 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. --- sched/sched_customize.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sched/sched_customize.cpp b/sched/sched_customize.cpp index 0e0bada785..cf9f3c1d54 100644 --- a/sched/sched_customize.cpp +++ b/sched/sched_customize.cpp @@ -889,11 +889,8 @@ static inline bool app_plan_vbox( if (can_use_multicore) { // Use number of usable CPUs, taking user prefs into account 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.max_ncpus = 2.0; + hu.max_ncpus = ncpus; sprintf(hu.cmdline, "--nthreads %f", ncpus); } // use the non-mt version rather than the mt version with 1 CPU