lkml.org 
[lkml]   [2012]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC v2 0/2] /proc/sched_stat and /proc/sched_debug fail at 4096
Date
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>



\
 
 \ /
  Last update: 2012-11-08 17:21    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog