diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-01-25 15:08:29 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:29 -0500 |
commit | fa85ae2418e6843953107cd6a06f645752829bc0 (patch) | |
tree | 004130ac471247a29d3f6adfbfe61c474e725779 /kernel/sysctl.c | |
parent | 8f4d37ec073c17e2d4aa8851df5837d798606d6f (diff) |
sched: rt time limit
Very simple time limit on the realtime scheduling classes.
Allow the rq's realtime class to consume sched_rt_ratio of every
sched_rt_period slice. If the class exceeds this quota the fair class
will preempt the realtime class.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 96f31c1bc4f0..3afbd25f43eb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -306,7 +306,23 @@ static struct ctl_table kern_table[] = { | |||
306 | .procname = "sched_nr_migrate", | 306 | .procname = "sched_nr_migrate", |
307 | .data = &sysctl_sched_nr_migrate, | 307 | .data = &sysctl_sched_nr_migrate, |
308 | .maxlen = sizeof(unsigned int), | 308 | .maxlen = sizeof(unsigned int), |
309 | .mode = 644, | 309 | .mode = 0644, |
310 | .proc_handler = &proc_dointvec, | ||
311 | }, | ||
312 | { | ||
313 | .ctl_name = CTL_UNNUMBERED, | ||
314 | .procname = "sched_rt_period_ms", | ||
315 | .data = &sysctl_sched_rt_period, | ||
316 | .maxlen = sizeof(unsigned int), | ||
317 | .mode = 0644, | ||
318 | .proc_handler = &proc_dointvec, | ||
319 | }, | ||
320 | { | ||
321 | .ctl_name = CTL_UNNUMBERED, | ||
322 | .procname = "sched_rt_ratio", | ||
323 | .data = &sysctl_sched_rt_ratio, | ||
324 | .maxlen = sizeof(unsigned int), | ||
325 | .mode = 0644, | ||
310 | .proc_handler = &proc_dointvec, | 326 | .proc_handler = &proc_dointvec, |
311 | }, | 327 | }, |
312 | #if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP) | 328 | #if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP) |