Skip to content

Commit

Permalink
ajuste no evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoA555 committed Dec 9, 2024
1 parent a3f5624 commit 49dc547
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/api/scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,16 @@ volatile unsigned int PEAMQ::evaluate(bool max_core)
core_rate += last_element->object()->priority() - (((last_element->object()->priority() / 1000) * 125) * q); // (1 - 0.125 x q)
}
}
long long pmu = branch_miss_rate + cache_miss_rate + instruction_retired; // ~ 300 max
// Antes:
// long long pmu = branch_miss_rate + cache_miss_rate + instruction_retired; // ~ 300 max

// Agora:
long long pmu = 1;
if (cache_miss_rate > 50) {pmu = 20;} // errando muito cache
else if (branch_miss_rate > 50 && instruction_retired > 70) {pmu = 16;} // errando muito branch e rodando muitas instruções
else if (branch_miss_rate > 50 && instruction_retired > 50) {pmu = 14;} // errando muito branch e rodando instruções razoaveis
else if (branch_miss_rate > 50) {pmu = 12;} // errando muito branch
else if (instruction_retired < 30) {pmu = 4;} // por algum motivo rodando poucas instruções (não podemos garantir algo ruim)
core_rate = core_rate * pmu;
if (core_rate < min)
{
Expand Down

0 comments on commit 49dc547

Please sign in to comment.