mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] /proc/schedstat and /proc/sched_debug fail at 4096
@ 2012-12-11 19:50 Nathan Zimmer
  2012-12-11 19:50 ` [PATCH 1/4] procfs: /proc/sched_stat fails on very very large machines Nathan Zimmer
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Zimmer @ 2012-12-11 19:50 UTC (permalink / raw)
  Cc: davej, linux-kernel, tglx, johnstul, viro, peterz, mingo, Nathan Zimmer

When running with 4096 cores attemping to read /proc/schedstat,
/proc/sched_debug, /proc/timer_list 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.  The failure can also occur on smaller
systems when memory fragmentation is high.

An solution considered but not tried for sched_stat and scheddebug would to be
create an alternative mechanism to single_open but rather then calling *_show
once it calls show once per possible cpu.  If someone feels strongly that is
the way to go I can give it a spin.

Nathan Zimmer (4):
  procfs: /proc/sched_stat fails on very very large machines.
  procfs: /proc/sched_debug fails on very very large machines.
  /proc/timer_list split timer_list_show_tickdevices
  Convert timer list to be a proper seq_file.

 kernel/sched/debug.c     |   84 +++++++++++++++++++++++++++++++++-----
 kernel/sched/stats.c     |   73 ++++++++++++++++++++++++---------
 kernel/time/timer_list.c |  102 +++++++++++++++++++++++++++++++++++++---------
 3 files changed, 209 insertions(+), 50 deletions(-)


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

end of thread, other threads:[~2012-12-11 19:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-11 19:50 [PATCH 0/4] /proc/schedstat and /proc/sched_debug fail at 4096 Nathan Zimmer
2012-12-11 19:50 ` [PATCH 1/4] procfs: /proc/sched_stat fails on very very large machines Nathan Zimmer
2012-12-11 19:50   ` [PATCH 2/4] procfs: /proc/sched_debug " Nathan Zimmer
2012-12-11 19:50     ` [PATCH 3/4] /proc/timer_list split timer_list_show_tickdevices Nathan Zimmer
2012-12-11 19:50       ` [PATCH 4/4] Convert timer list to be a proper seq_file Nathan Zimmer

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

all inboxes | Powered by JetHome®