* [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
* [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 ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <499c0f6cc10d6eb829a67f2a4d75b4228a9b356e.1501695897.git.jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] mm: ratelimit PFNs busy info message 2017-08-02 17:44 ` Jonathan Toppins (?) @ 2017-08-02 18:05 ` Doug Ledford -1 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-02 18:05 UTC (permalink / raw) To: Jonathan Toppins, linux-mm-Bw31MaZKKs3YtjvyW6yDsg Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Andrew Morton, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 13:44 -0400, Jonathan Toppins wrote: > 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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > Reviewed-by: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > Tested-by: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > --- > 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; FWIW, I've been carrying a version of this for several kernel versions. I don't remember when they started, but we have one (and only one) class of machines: Dell PE R730xd, that generate these errors. When it happens, without a rate limit, we get rcu timeouts and kernel oopses. With the rate limit, we just get a lot of annoying kernel messages but the machine continues on, recovers, and eventually the memory operations all succeed. -- Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-02 18:05 ` Doug Ledford 0 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-02 18:05 UTC (permalink / raw) To: Jonathan Toppins, linux-mm Cc: linux-rdma, Andrew Morton, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 13:44 -0400, Jonathan Toppins wrote: > 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; FWIW, I've been carrying a version of this for several kernel versions. I don't remember when they started, but we have one (and only one) class of machines: Dell PE R730xd, that generate these errors. When it happens, without a rate limit, we get rcu timeouts and kernel oopses. With the rate limit, we just get a lot of annoying kernel messages but the machine continues on, recovers, and eventually the memory operations all succeed. -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-02 18:05 ` Doug Ledford 0 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-02 18:05 UTC (permalink / raw) To: Jonathan Toppins, linux-mm Cc: linux-rdma, Andrew Morton, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 13:44 -0400, Jonathan Toppins wrote: > 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; FWIW, I've been carrying a version of this for several kernel versions. I don't remember when they started, but we have one (and only one) class of machines: Dell PE R730xd, that generate these errors. When it happens, without a rate limit, we get rcu timeouts and kernel oopses. With the rate limit, we just get a lot of annoying kernel messages but the machine continues on, recovers, and eventually the memory operations all succeed. -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- 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] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message 2017-08-02 17:44 ` Jonathan Toppins @ 2017-08-02 21:17 ` Andrew Morton -1 siblings, 0 replies; 14+ messages in thread From: Andrew Morton @ 2017-08-02 21:17 UTC (permalink / raw) To: Jonathan Toppins Cc: linux-mm, linux-rdma, dledford, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat.com> wrote: > 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. Well... why are all these EBUSY's occurring? It sounds inefficient (at least) but if it is expected, normal and unavoidable then perhaps we should just remove that message altogether? > --- 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; -- 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] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-02 21:17 ` Andrew Morton 0 siblings, 0 replies; 14+ messages in thread From: Andrew Morton @ 2017-08-02 21:17 UTC (permalink / raw) To: Jonathan Toppins Cc: linux-mm, linux-rdma, dledford, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat.com> wrote: > 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. Well... why are all these EBUSY's occurring? It sounds inefficient (at least) but if it is expected, normal and unavoidable then perhaps we should just remove that message altogether? > --- 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; ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20170802141720.228502368b534f517e3107ff-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>]
* Re: [PATCH] mm: ratelimit PFNs busy info message 2017-08-02 21:17 ` Andrew Morton (?) @ 2017-08-04 18:55 ` Doug Ledford -1 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-04 18:55 UTC (permalink / raw) To: Andrew Morton, Jonathan Toppins Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 14:17 -0700, Andrew Morton wrote: > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat. > com> wrote: > > > 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. > > Well... why are all these EBUSY's occurring? It sounds inefficient > (at > least) but if it is expected, normal and unavoidable then perhaps we > should just remove that message altogether? I don't have an answer to that question. To be honest, I haven't looked real hard. We never had this at all, then it started out of the blue, but only on our Dell 730xd machines (and it hits all of them), but no other classes or brands of machines. And we have our 730xd machines loaded up with different brands and models of cards (for instance one dedicated to mlx4 hardware, one for qib, one for mlx5, an ocrdma/cxgb4 combo, etc), so the fact that it hit all of the machines meant it wasn't tied to any particular brand/model of RDMA hardware. To me, it always smelled of a hardware oddity specific to maybe the CPUs or mainboard chipsets in these machines, so given that I'm not an mm expert anyway, I never chased it down. A few other relevant details: it showed up somewhere around 4.8/4.9 or thereabouts. It never happened before, but the prinkt has been there since the 3.18 days, so possibly the test to trigger this message was changed, or something else in the allocator changed such that the situation started happening on these machines? And, like I said, it is specific to our 730xd machines (but they are all identical, so that could mean it's something like their specific ram configuration is causing the allocator to hit this on these machine but not on other machines in the cluster, I don't want to say it's necessarily the model of chipset or CPU, there are other bits of identicalness between these machines). -- Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-04 18:55 ` Doug Ledford 0 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-04 18:55 UTC (permalink / raw) To: Andrew Morton, Jonathan Toppins Cc: linux-mm, linux-rdma, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 14:17 -0700, Andrew Morton wrote: > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat. > com> wrote: > > > 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. > > Well... why are all these EBUSY's occurring? It sounds inefficient > (at > least) but if it is expected, normal and unavoidable then perhaps we > should just remove that message altogether? I don't have an answer to that question. To be honest, I haven't looked real hard. We never had this at all, then it started out of the blue, but only on our Dell 730xd machines (and it hits all of them), but no other classes or brands of machines. And we have our 730xd machines loaded up with different brands and models of cards (for instance one dedicated to mlx4 hardware, one for qib, one for mlx5, an ocrdma/cxgb4 combo, etc), so the fact that it hit all of the machines meant it wasn't tied to any particular brand/model of RDMA hardware. To me, it always smelled of a hardware oddity specific to maybe the CPUs or mainboard chipsets in these machines, so given that I'm not an mm expert anyway, I never chased it down. A few other relevant details: it showed up somewhere around 4.8/4.9 or thereabouts. It never happened before, but the prinkt has been there since the 3.18 days, so possibly the test to trigger this message was changed, or something else in the allocator changed such that the situation started happening on these machines? And, like I said, it is specific to our 730xd machines (but they are all identical, so that could mean it's something like their specific ram configuration is causing the allocator to hit this on these machine but not on other machines in the cluster, I don't want to say it's necessarily the model of chipset or CPU, there are other bits of identicalness between these machines). -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-04 18:55 ` Doug Ledford 0 siblings, 0 replies; 14+ messages in thread From: Doug Ledford @ 2017-08-04 18:55 UTC (permalink / raw) To: Andrew Morton, Jonathan Toppins Cc: linux-mm, linux-rdma, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Wed, 2017-08-02 at 14:17 -0700, Andrew Morton wrote: > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat. > com> wrote: > > > 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. > > Well... why are all these EBUSY's occurring? It sounds inefficient > (at > least) but if it is expected, normal and unavoidable then perhaps we > should just remove that message altogether? I don't have an answer to that question. To be honest, I haven't looked real hard. We never had this at all, then it started out of the blue, but only on our Dell 730xd machines (and it hits all of them), but no other classes or brands of machines. And we have our 730xd machines loaded up with different brands and models of cards (for instance one dedicated to mlx4 hardware, one for qib, one for mlx5, an ocrdma/cxgb4 combo, etc), so the fact that it hit all of the machines meant it wasn't tied to any particular brand/model of RDMA hardware. To me, it always smelled of a hardware oddity specific to maybe the CPUs or mainboard chipsets in these machines, so given that I'm not an mm expert anyway, I never chased it down. A few other relevant details: it showed up somewhere around 4.8/4.9 or thereabouts. It never happened before, but the prinkt has been there since the 3.18 days, so possibly the test to trigger this message was changed, or something else in the allocator changed such that the situation started happening on these machines? And, like I said, it is specific to our 730xd machines (but they are all identical, so that could mean it's something like their specific ram configuration is causing the allocator to hit this on these machine but not on other machines in the cluster, I don't want to say it's necessarily the model of chipset or CPU, there are other bits of identicalness between these machines). -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- 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] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message 2017-08-04 18:55 ` Doug Ledford @ 2017-08-07 6:58 ` Michal Hocko -1 siblings, 0 replies; 14+ messages in thread From: Michal Hocko @ 2017-08-07 6:58 UTC (permalink / raw) To: Doug Ledford Cc: Andrew Morton, Jonathan Toppins, linux-mm, linux-rdma, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Fri 04-08-17 14:55:06, Doug Ledford wrote: > On Wed, 2017-08-02 at 14:17 -0700, Andrew Morton wrote: > > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat. > > com> wrote: > > > > > 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. > > > > Well... why are all these EBUSY's occurring? It sounds inefficient > > (at > > least) but if it is expected, normal and unavoidable then perhaps we > > should just remove that message altogether? > > I don't have an answer to that question. To be honest, I haven't > looked real hard. We never had this at all, then it started out of the > blue, but only on our Dell 730xd machines (and it hits all of them), > but no other classes or brands of machines. And we have our 730xd > machines loaded up with different brands and models of cards (for > instance one dedicated to mlx4 hardware, one for qib, one for mlx5, an > ocrdma/cxgb4 combo, etc), so the fact that it hit all of the machines > meant it wasn't tied to any particular brand/model of RDMA hardware. > To me, it always smelled of a hardware oddity specific to maybe the > CPUs or mainboard chipsets in these machines, so given that I'm not an > mm expert anyway, I never chased it down. It would certainly be good to chase this down. I do not object to ratelimiting, it is much better than having a non-bootable system but this doesn't solve the underlying problem. > A few other relevant details: it showed up somewhere around 4.8/4.9 or > thereabouts. It never happened before, but the prinkt has been there > since the 3.18 days, so possibly the test to trigger this message was > changed, or something else in the allocator changed such that the > situation started happening on these machines? Is this still the case with the current Linus tree? We have had a fix 424f6c4818bb ("mm: alloc_contig: re-allow CMA to compact FS pages") which made it into 4.10 -- Michal Hocko SUSE Labs -- 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] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-07 6:58 ` Michal Hocko 0 siblings, 0 replies; 14+ messages in thread From: Michal Hocko @ 2017-08-07 6:58 UTC (permalink / raw) To: Doug Ledford Cc: Andrew Morton, Jonathan Toppins, linux-mm, linux-rdma, Vlastimil Babka, Mel Gorman, Hillf Danton, open list On Fri 04-08-17 14:55:06, Doug Ledford wrote: > On Wed, 2017-08-02 at 14:17 -0700, Andrew Morton wrote: > > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat. > > com> wrote: > > > > > 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. > > > > Well... why are all these EBUSY's occurring? It sounds inefficient > > (at > > least) but if it is expected, normal and unavoidable then perhaps we > > should just remove that message altogether? > > I don't have an answer to that question. To be honest, I haven't > looked real hard. We never had this at all, then it started out of the > blue, but only on our Dell 730xd machines (and it hits all of them), > but no other classes or brands of machines. And we have our 730xd > machines loaded up with different brands and models of cards (for > instance one dedicated to mlx4 hardware, one for qib, one for mlx5, an > ocrdma/cxgb4 combo, etc), so the fact that it hit all of the machines > meant it wasn't tied to any particular brand/model of RDMA hardware. > To me, it always smelled of a hardware oddity specific to maybe the > CPUs or mainboard chipsets in these machines, so given that I'm not an > mm expert anyway, I never chased it down. It would certainly be good to chase this down. I do not object to ratelimiting, it is much better than having a non-bootable system but this doesn't solve the underlying problem. > A few other relevant details: it showed up somewhere around 4.8/4.9 or > thereabouts. It never happened before, but the prinkt has been there > since the 3.18 days, so possibly the test to trigger this message was > changed, or something else in the allocator changed such that the > situation started happening on these machines? Is this still the case with the current Linus tree? We have had a fix 424f6c4818bb ("mm: alloc_contig: re-allow CMA to compact FS pages") which made it into 4.10 -- Michal Hocko SUSE Labs ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message 2017-08-02 21:17 ` Andrew Morton @ 2017-08-08 5:34 ` Michael Ellerman -1 siblings, 0 replies; 14+ messages in thread From: Michael Ellerman @ 2017-08-08 5:34 UTC (permalink / raw) To: Andrew Morton, Jonathan Toppins Cc: linux-mm, linux-rdma, dledford, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list Andrew Morton <akpm@linux-foundation.org> writes: > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat.com> wrote: > >> 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. > > Well... why are all these EBUSY's occurring? It sounds inefficient (at > least) but if it is expected, normal and unavoidable then perhaps we > should just remove that message altogether? We see them on powerpc sometimes when CMA is unable to make large allocations for the hash table of a KVM guest. At least in that context they're not useful, CMA will try the allocation again, and if it really can't allocate then CMA will print more useful information itself. So I'd vote for dropping the message and letting the callers decide what to do. cheers ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] mm: ratelimit PFNs busy info message @ 2017-08-08 5:34 ` Michael Ellerman 0 siblings, 0 replies; 14+ messages in thread From: Michael Ellerman @ 2017-08-08 5:34 UTC (permalink / raw) To: Andrew Morton, Jonathan Toppins Cc: linux-mm, linux-rdma, dledford, Michal Hocko, Vlastimil Babka, Mel Gorman, Hillf Danton, open list Andrew Morton <akpm@linux-foundation.org> writes: > On Wed, 2 Aug 2017 13:44:57 -0400 Jonathan Toppins <jtoppins@redhat.com> wrote: > >> 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. > > Well... why are all these EBUSY's occurring? It sounds inefficient (at > least) but if it is expected, normal and unavoidable then perhaps we > should just remove that message altogether? We see them on powerpc sometimes when CMA is unable to make large allocations for the hash table of a KVM guest. At least in that context they're not useful, CMA will try the allocation again, and if it really can't allocate then CMA will print more useful information itself. So I'd vote for dropping the message and letting the callers decide what to do. cheers -- 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] 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.