diff options
| author | Joonwoo Park <joonwoop@codeaurora.org> | 2015-02-05 18:12:40 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:01:49 -0700 |
| commit | 8f90803a45d3aa349a4d0f1051b194767ece5e26 (patch) | |
| tree | 828f36c31cf8ab3ada165e36e7e9ba511cea80e7 /include/linux | |
| parent | fa8dd7068ae69078c24e3f5ffbfb5fc078b9c8e6 (diff) | |
sched: warn/panic upon excessive scheduling latency
Add new tunables /proc/sys/kernel/sched_latency_warn_threshold_us and
/proc/sys/kernel/sched_latency_panic_threshold_us to warn or panic for the
cases that tasks are runnable but not scheduled more than configured time.
This helps to find out unacceptably high scheduling latency more easily.
Change-Id: If077aba6211062cf26ee289970c5abcd1c218c82
[joonwoop@codeaurora.org: fixed conflict in update_stats_wait_end().]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched/sysctl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index ce23dcd70b98..fdb75cab5243 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -129,6 +129,11 @@ extern unsigned int sysctl_sched_cfs_bandwidth_slice; extern unsigned int sysctl_sched_autogroup_enabled; #endif +#ifdef CONFIG_SCHEDSTATS +extern unsigned int sysctl_sched_latency_panic_threshold; +extern unsigned int sysctl_sched_latency_warn_threshold; +#endif + extern int sched_rr_timeslice; extern int sched_rr_handler(struct ctl_table *table, int write, |
