Skip to content

Commit

Permalink
sched: make dl_bw a sub-quota of rt_bw
Browse files Browse the repository at this point in the history
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 20, 2012
1 parent 0ee21ee commit 609990a
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 172 deletions.
1 change: 0 additions & 1 deletion include/linux/sched.h
Expand Up @@ -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,
Expand Down

0 comments on commit 609990a

Please sign in to comment.