Commit 59861b52 authored by Vojtech Cima's avatar Vojtech Cima

ENH: Deeper scheduling

parent 34616981
......@@ -13,7 +13,8 @@ using Score = int64_t;
static constexpr Score SCORE_MIN = INT64_MIN;
static constexpr Score UNIT_RECOMPUTE = INT64_MAX;
static constexpr size_t MIN_SCHEDULED_TASKS_LIMIT = 128;
static constexpr size_t MIN_SCHEDULED_TASKS_LIMIT = 64;
static constexpr size_t SCHEDULING_FREEDOM = 1;
static constexpr size_t OVERBOOKING_LIMIT = 8;
static constexpr size_t OVERBOOKING_FACTOR = 3;
......@@ -212,7 +213,7 @@ TaskDistribution schedule(const ComputationState &cstate)
total_free_cpus += (OVERBOOKING_FACTOR - 1) * total_cpus;
}
size_t limit = total_free_cpus * 5 + total_cpus;
size_t limit = total_free_cpus * SCHEDULING_FREEDOM + total_cpus;
if (limit < MIN_SCHEDULED_TASKS_LIMIT) {
limit = MIN_SCHEDULED_TASKS_LIMIT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment