[PATCH 6/7] sched: Limit the number of scheduler debug messages

Mike Travis
2009-11-12T17:21:26Z

[-- Attachment #1: limit_sched_debug_messages --]
[-- Type: text/plain, Size: 710 bytes --]

Limit number of sched debug messages for MAXSMP systems.

Signed-off-by: Mike Travis <travis@sgi.com>
---
lib/Kconfig.debug | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--- linux.orig/lib/Kconfig.debug
+++ linux/lib/Kconfig.debug
@@ -235,11 +235,12 @@
config SCHED_DEBUG
bool "Collect scheduler debugging info"
depends on DEBUG_KERNEL && PROC_FS
- default y
+ default !MAXSMP
help
If you say Y here, the /proc/sched_debug file will be provided
that can help debug the scheduler. The runtime overhead of this
- option is minimal.
+ option is minimal unless there are a large number of CPUs in
+ the system.

config SCHEDSTATS
bool "Collect scheduler statistics"

--