Permalink
Browse files

sched: make dl_bw a sub-quota of rt_bw

Change real-time bandwidth management as to make dl_bw a sub-quota
of rt_bw. This patch leaves rt_bw at its default value and sets
dl_bw at 40% of rt_bw. It also remove sched_dl_period_us control
knob using sched_rt_period_us as common period for both rt_bw and
dl_bw.

Checks are made when the user tries to change dl_bw sub-quota as to
not fall below what currently used. Since dl_bw now depends upon
rt_bw, similar checks are performed when the users modifies rt_bw
and dl_bw is changed accordingly. Setting rt_bw sysctl variable to
-1 (actually disabling rt throttling) disables dl_bw checks as well.

Signed-off-by: Juri Lelli <juri.lelli@gmail.com>
  • Loading branch information...
jlelli committed Nov 1, 2012
1 parent 0ee21ee commit 609990a5d7e57e69a69bba16ef03c554260274dd
Showing with 143 additions and 172 deletions.
  1. +0 −1 include/linux/sched.h
  2. +133 −149 kernel/sched/core.c
  3. +1 −2 kernel/sched/deadline.c
  4. +9 −13 kernel/sched/sched.h
  5. +0 −7 kernel/sysctl.c
View
@@ -2156,7 +2156,6 @@ int sched_rt_handler(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp,
loff_t *ppos);
-extern unsigned int sysctl_sched_dl_period;
extern int sysctl_sched_dl_runtime;
int sched_dl_handler(struct ctl_table *table, int write,
Oops, something went wrong.

0 comments on commit 609990a

Please sign in to comment.