[RFC 0/2] /proc/sched_stat and /proc/sched_debug fail at 4096

From: Nathan Zimmer
Date: Tue Nov 06 2012 - 16:02:23 EST


When running with 4096 cores attemping to read /proc/sched_stat and
/proc/sched_debug will fail with an ENOMEM condition.
On a sufficantly large systems the total amount of data is more then 4mb, so
it won't fit into a single buffer.

Nathan Zimmer (2):
procfs: /proc/sched_stat fails on very very large machines.
procfs: /proc/sched_debug fails on very very large machines.

kernel/sched/debug.c | 101 +++++++++++++++++++++++++-----------
kernel/sched/stats.c | 139 +++++++++++++++++++++++++++++---------------------
2 files changed, 152 insertions(+), 88 deletions(-)

Signed-off-by: Nathan Zimmer <nzimmer@xxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CC: linux-kernel@xxxxxxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/