linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* oom: Be less verbose
@ 2014-06-05 14:00 Richard Weinberger
  2014-06-05 14:00 ` [RFC][PATCH] oom: Be less verbose if the oom_control event fd has listeners Richard Weinberger
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Weinberger @ 2014-06-05 14:00 UTC (permalink / raw)
  To: hannes
  Cc: mhocko, bsingharora, kamezawa.hiroyu, akpm, vdavydov, tj,
	handai.szj, rientjes, oleg, rusty, kirill.shutemov, linux-kernel,
	cgroups, linux-mm

Processes within Linux containers very often hit their memory limits.
This has the side effect that the kernel log gets spammed all day with
useless OOM messages.
If a userspace program listens to the memory cgroup event fd to
get notified upon OOM we can avoid this spamming and be less verbose.

With this patch applied the OOM killer will only print much details
if nobody listens to the affected memory cgroup event fd.
I can also think of a new sysctl like "vm.oom_verbose=1" to guarantee the old
behavior even if we have listeners.

What do you think?

Thanks,
//richard

[RFC][PATCH] oom: Be less verbose if the oom_control event fd has listeners
--
 include/linux/memcontrol.h |    6 ++++++
 mm/memcontrol.c            |   20 ++++++++++++++++++++
 mm/oom_kill.c              |    2 +-
 3 files changed, 27 insertions(+), 1 deletion(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2014-06-06  9:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 14:00 oom: Be less verbose Richard Weinberger
2014-06-05 14:00 ` [RFC][PATCH] oom: Be less verbose if the oom_control event fd has listeners Richard Weinberger
2014-06-05 14:18   ` Oleg Nesterov
2014-06-05 15:46     ` Richard Weinberger
2014-06-05 16:00       ` Oleg Nesterov
2014-06-05 16:10         ` Richard Weinberger
2014-06-05 15:00   ` Michal Hocko
2014-06-05 15:55     ` Richard Weinberger
2014-06-05 16:18       ` Michal Hocko
2014-06-05 21:58         ` Richard Weinberger
2014-06-05 21:01     ` David Rientjes
2014-06-06  9:10       ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).