]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched: /proc/sched_debug fails on very very large machines
authorNathan Zimmer <nzimmer@sgi.com>
Wed, 20 Feb 2013 02:13:50 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:14 +0000 (16:52 +1100)
commit4e52d77c5b2fb503d64c3ee06574684b2dbf9a52
tree28c3f422fa2f0ea063506b29580bf3607227b0a2
parent180b0ee9d0d5578a60e0314586dcd4f5cd592a01
sched: /proc/sched_debug fails on very very large machines

On systems with 4096 cores attemping to read /proc/sched_debug fails.  We
are trying to push all the data into a single kmalloc buffer.  The issue
is on these very large machines all the data will not fit in 4mb.

A better solution is to not us the single_open mechanism but to provide
our own seq_operations and treat each cpu as an individual record.

The output should be identical to previous version.

Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Reported-by: Dave Jones <davej@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sched/debug.c