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

On systems with 4096 cores doing a cat /proc/sched_stat 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 use the single_open() mechanism but to provide
our own seq_operations.

The output should be identical to previous version and thus not need the
version number.

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/stats.c