The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC v2 0/2] /proc/sched_stat and /proc/sched_debug fail at 4096
@ 2012-11-08 15:13 Nathan Zimmer
  2012-11-08 15:13 ` [RFC v2 1/2] procfs: /proc/sched_stat fails on very very large machines Nathan Zimmer
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Zimmer @ 2012-11-08 15:13 UTC (permalink / raw)
  Cc: Nathan Zimmer, Ingo Molnar, Peter Zijlstra, linux-kernel, Al Viro

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.

/proc/timer_list also fails in a similar way.  However timer_list has two 
seperate per online cpu loops which will require a bit more thought.

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 |   73 +++++++++++++++++++++---
 kernel/sched/stats.c |  154 ++++++++++++++++++++++++++++++-------------------
 2 files changed, 159 insertions(+), 68 deletions(-)

CC: Ingo Molnar <mingo@redhat.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: linux-kernel@vger.kernel.org
CC: Al Viro <viro@zeniv.linux.org.uk>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-08 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 15:13 [RFC v2 0/2] /proc/sched_stat and /proc/sched_debug fail at 4096 Nathan Zimmer
2012-11-08 15:13 ` [RFC v2 1/2] procfs: /proc/sched_stat fails on very very large machines Nathan Zimmer
2012-11-08 15:13   ` [RFC v2 2/2] procfs: /proc/sched_debug " Nathan Zimmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox