From: Roman Gushchin <[email protected]> By default, rt_period is 1s and rt_runtime is 0.95s. These values are to high to achieve acceptable system responsibility under high rt load. Decrease it to 100ms and 99ms respectively.
Signed-off-by: Roman Gushchin <[email protected]> --- kernel/sched/core.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0f25fe0..a1b116e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -282,19 +282,26 @@ const_debug unsigned int sysctl_sched_nr_migrate = 32; */ const_debug unsigned int sysctl_sched_time_avg = MSEC_PER_SEC; +#ifdef CONFIG_SMART +#define DEFAULT_SCHED_RT_PERIOD 100000 +#define DEFAULT_SCHED_RT_RUNTIME 99000 + +#else +#define DEFAULT_SCHED_RT_PERIOD 1000000 +#define DEFAULT_SCHED_RT_RUNTIME 950000 +#endif + /* * period over which we measure -rt task cpu usage in us. - * default: 1s */ -unsigned int sysctl_sched_rt_period = 1000000; +unsigned int sysctl_sched_rt_period = DEFAULT_SCHED_RT_PERIOD; __read_mostly int scheduler_running; /* * part of the period that we allow rt tasks to run in us. - * default: 0.95s */ -int sysctl_sched_rt_runtime = 950000; +int sysctl_sched_rt_runtime = DEFAULT_SCHED_RT_RUNTIME; -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

