Messages in this thread | | | Subject | Re: [RFC 9/12][PATCH] SCHED_DEADLINE: system wide bandwidth management | From | Peter Zijlstra <> | Date | Mon, 28 Dec 2009 15:44:09 +0100 |
| |
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.
| |