Commit 4cb34a12 authored by David Anderson's avatar David Anderson
Browse files

client: don't apply CPU throttling to apps that use < .5 CPUs (like GPU, NCI)

parent 417b26c7
......@@ -1059,9 +1059,10 @@ void ACTIVE_TASK_SET::suspend_all(int reason) {
if (reason == SUSPEND_REASON_CPU_THROTTLE) {
if (atp->result->dont_throttle()) continue;
// if we're doing CPU throttling,
// don't suspend CPU apps that use < 1 CPU
// don't suspend apps that use < .5 CPU (like GPU and NCI apps)
//
if (!atp->result->uses_coprocs() && atp->app_version->avg_ncpus < 1) continue;
if (atp->app_version->avg_ncpus < .5) continue;
atp->preempt(REMOVE_NEVER);
continue;;
}
......
Supports Markdown
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