Re: [RFC 9/12][PATCH] SCHED_DEADLINE: system wide bandwidthmanagement

From: Peter Zijlstra
Date: Mon Dec 28 2009 - 14:28:07 EST


On Fri, 2009-10-16 at 17:45 +0200, Raistlin wrote:
> This commit adds the capability of controlling the maximum, system wide,
> CPU bandwidth that is devoted to SCHED_DEADLINE tasks.
>
> This is done by means of two files:
> - /proc/sys/kernel/sched_deadline_runtime_us,
> - /proc/sys/kernel/sched_deadline_period_us.
> The ratio runtime/period is the total bandwidth all the SCHED_DEADLINE tasks
> can use in the system as a whole.
> Trying to create tasks in such a way that they exceed this limitation will
> fail, as soon as the bandwidth cap would be overcome.
>
> Default value is _zero_ bandwidth available, thus write some numbers in those
> files before trying to start some SCHED_DEADLINE task. Setting runtime > period
> is allowed (i.e., more than 100% bandwidth available for -deadline tasks),
> since it makes more than sense in SMP systems.

Right, so the current rt bandwidth controls go up to 100%, where 100% is
root_domain wide. That is, the bandwidth usage scale is irrespective of
the number of cpus.

If that was the best choice could of course be argued, but since we have
that, it would be strange to add another set of controls which do not
conform.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/