netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: Remove unnecessary / duplicate OOM printks
@ 2011-08-25 20:47 Joe Perches
  2011-08-25 22:04 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2011-08-25 20:47 UTC (permalink / raw)
  To: LKML; +Cc: Eric Dumazet, netdev

There are many thousands of printks for OOM conditions
in kernel sources.

These are almost always a duplication of a generic
OOM message from the mm subsystem.

The biggest difference between the generic OOM and
the specific OOM uses is that most of the specific
messages are emitted at KERN_ERR but the generic
message is at KERN_WARNING.

Many KB of code/text could be removed from the kernel.

Removal can be gradual and done by subsystem.

Some kmalloc's that are followed on failure by vmalloc
may need to add GFP_NOWARN.

Does anyone really believe the per site failure
messages are useful or really want them to keep them?

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

end of thread, other threads:[~2011-08-28 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 20:47 RFC: Remove unnecessary / duplicate OOM printks Joe Perches
2011-08-25 22:04 ` Andrew Morton
2011-08-25 23:22   ` [RFC PATCH] caif: Remove OOM messages, use kzalloc Joe Perches
2011-08-28 21:16     ` David Miller

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).