]> 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>
Thu, 7 Feb 2013 01:26:00 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:10 +0000 (16:46 +1100)
commit81a4df404812ade1a811bcc65015a37a7407953b
tree99e2d946ec2d64d17209595e7edf873fd2cd1e72
parentb826838ddeb8b6f553d74e37063dc3f44aba8cb1
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