All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: ratelimit PFNs busy info message
@ 2017-08-02 17:44 ` Jonathan Toppins
  0 siblings, 0 replies; 14+ messages in thread
From: Jonathan Toppins @ 2017-08-02 17:44 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-rdma, dledford, Andrew Morton, Michal Hocko,
	Vlastimil Babka, Mel Gorman, Hillf Danton, open list

The RDMA subsystem can generate several thousand of these messages per
second eventually leading to a kernel crash. Ratelimit these messages
to prevent this crash.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Reviewed-by: Doug Ledford <dledford@redhat.com>
Tested-by: Doug Ledford <dledford@redhat.com>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6d30e914afb6..07b7d3060b21 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -7666,7 +7666,7 @@ int alloc_contig_range(unsigned long start, unsigned long end,
 
 	/* Make sure the range is really isolated. */
 	if (test_pages_isolated(outer_start, end, false)) {
-		pr_info("%s: [%lx, %lx) PFNs busy\n",
+		pr_info_ratelimited("%s: [%lx, %lx) PFNs busy\n",
 			__func__, outer_start, end);
 		ret = -EBUSY;
 		goto done;
-- 
2.10.2

--
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 related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-08-08  5:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02 17:44 [PATCH] mm: ratelimit PFNs busy info message Jonathan Toppins
2017-08-02 17:44 ` Jonathan Toppins
     [not found] ` <499c0f6cc10d6eb829a67f2a4d75b4228a9b356e.1501695897.git.jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-08-02 18:05   ` Doug Ledford
2017-08-02 18:05     ` Doug Ledford
2017-08-02 18:05     ` Doug Ledford
2017-08-02 21:17 ` Andrew Morton
2017-08-02 21:17   ` Andrew Morton
     [not found]   ` <20170802141720.228502368b534f517e3107ff-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2017-08-04 18:55     ` Doug Ledford
2017-08-04 18:55       ` Doug Ledford
2017-08-04 18:55       ` Doug Ledford
2017-08-07  6:58       ` Michal Hocko
2017-08-07  6:58         ` Michal Hocko
2017-08-08  5:34   ` Michael Ellerman
2017-08-08  5:34     ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.