All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Michal Nazarewicz <mina86@mina86.com>
Cc: "Robin H. Johnson" <robbat2@orbis-terrarum.net>,
	linux-kernel@vger.kernel.org, robbat2@gentoo.org,
	linux-mm@kvack.org
Subject: Re: PROBLEM-PERSISTS: dmesg spam: alloc_contig_range: [XX, YY) PFNs busy
Date: Wed, 30 Nov 2016 14:28:49 +0100	[thread overview]
Message-ID: <20161130132848.GG18432@dhcp22.suse.cz> (raw)
In-Reply-To: <xa1ty4012k0f.fsf@mina86.com>

On Wed 30-11-16 14:08:00, Michal Nazarewicz wrote:
> On Wed, Nov 30 2016, Michal Hocko wrote:
> > [Let's CC linux-mm and Michal]
> >
> > On Tue 29-11-16 22:43:08, Robin H. Johnson wrote:
> >> I didn't get any responses to this.
> >> 
> >> git bisect shows that the problem did actually exist in 4.5.0-rc6, but
> >> has gotten worse by many orders of magnitude (< 1/week to ~20M/hour).
> >> 
> >> Presently with 4.9-rc5, it's now writing ~2.5GB/hour to syslog.
> >
> > This is really not helpful. I think we should simply make it pr_debug or
> > need some ratelimitting.  AFAIU the message is far from serious
> 
> On the other hand, if this didn’t happen and now happens all the time,
> this indicates a regression in CMA’s capability to allocate pages so
> just rate limiting the output would hide the potential actual issue.

Or there might be just a much larger demand on those large blocks, no?
But seriously, dumping those message again and again into the low (see
the 2.5_GB_/h to the log is just insane. So there really should be some
throttling.

Does the following help you Robin. At least to not get swamped by those
message.
---
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 0fbfead6aa7d..96eb8d107582 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -7424,7 +7424,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",
+		printk_ratelimited(KERN_DEBUG "%s: [%lx, %lx) PFNs busy\n",
 			__func__, outer_start, end);
 		ret = -EBUSY;
 		goto done;

I would also suggest to add dump_stack() to that path to see who is
actually demanding so much large continuous blocks.
-- 
Michal Hocko
SUSE Labs

  reply	other threads:[~2016-11-30 13:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 22:43 PROBLEM-PERSISTS: dmesg spam: alloc_contig_range: [XX, YY) PFNs busy Robin H. Johnson
2016-11-30  9:22 ` Michal Hocko
2016-11-30 13:08   ` Michal Nazarewicz
2016-11-30 13:28     ` Michal Hocko [this message]
2016-11-30 19:58       ` Robin H. Johnson
2016-11-30 20:19         ` drm/radeon spamming alloc_contig_range: [xxx, yyy) PFNs busy busy Robin H. Johnson
2016-11-30 21:24           ` Vlastimil Babka
2016-11-30 21:24             ` Vlastimil Babka
2016-12-01  6:21             ` Robin H. Johnson
2016-12-01  7:38               ` Vlastimil Babka
2016-12-01  7:38                 ` Vlastimil Babka
2016-12-01  7:58                 ` Robin H. Johnson
2016-12-01  7:58                   ` Robin H. Johnson
2016-12-01  7:15           ` Michal Hocko
2016-12-01  7:15             ` Michal Hocko
2016-12-01  7:21             ` Michal Hocko
2016-12-01  7:21               ` Michal Hocko
2016-12-01  7:43               ` Vlastimil Babka
2016-12-01  7:43                 ` Vlastimil Babka
2016-12-01 14:11                 ` Michal Hocko
2016-12-01 14:11                   ` Michal Hocko
2016-12-01 16:03                   ` Michal Nazarewicz
2016-12-01 16:03                     ` Michal Nazarewicz
2016-12-01 16:11                     ` Michal Hocko
2016-12-01 16:11                       ` Michal Hocko
2016-12-01 21:02                       ` Michal Nazarewicz
2016-12-01 21:02                         ` Michal Nazarewicz
2016-12-02  6:36                         ` Vlastimil Babka
2016-12-02  6:36                           ` Vlastimil Babka
2016-12-02  6:36                           ` Vlastimil Babka
2016-12-02 10:26                   ` Lucas Stach
2016-12-02 10:26                     ` Lucas Stach
2016-12-02 15:17                     ` Jerome Glisse
2016-12-02 15:17                       ` Jerome Glisse
2016-12-02 15:17                       ` Jerome Glisse
2016-12-01  1:39         ` PROBLEM-PERSISTS: dmesg spam: alloc_contig_range: [XX, YY) PFNs busy Michal Nazarewicz
2016-12-01  1:39           ` Michal Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161130132848.GG18432@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mina86@mina86.com \
    --cc=robbat2@gentoo.org \
    --cc=robbat2@orbis-terrarum.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.