Messages in this thread | | | Date | Tue, 2 Nov 2004 13:52:18 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] optional non-interactive mode for cpu scheduler |
| |
* Con Kolivas <kernel@kolivas.org> wrote:
> optional non-interactive mode for cpu scheduler
i think the following scheme would work better:
- introduce a new SCHED_CPUBOUND policy - return ->static_prio + 5 for such tasks - keep their timeslice based off ->static_prio
the point is this: such tasks would thus be automatically and perpetually considered 'CPU hogs'. Applications cannot abuse this mechanism because they get the maximum 'penalty'.
and as a bonus, no magic sysctl and inherently more flexibility.
(note that this scheme has advantages above nice +5 because nice +5 still has the interactivity stuff on which can create priority fluctuations and may thus affect workloads.)
if you agree with this scheme, would you be interested in implementing this?
Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |