From: Michal Hocko <mhocko@suse.com>
To: Laurent Dufour <ldufour@linux.ibm.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org, nathanl@linux.ibm.com,
cheloha@linux.ibm.com
Subject: Re: [PATCH] mm/memory_hotplug: quieting offline operation
Date: Mon, 14 Dec 2020 14:53:34 +0100 [thread overview]
Message-ID: <20201214135334.GC32193@dhcp22.suse.cz> (raw)
In-Reply-To: <20201211150157.91399-1-ldufour@linux.ibm.com>
On Fri 11-12-20 16:01:57, Laurent Dufour wrote:
> On PowerPC, when dymically removing memory from a system we can see in the console a
> lot of messages like this:
> [ 186.575389] Offlined Pages 4096
>
> This message is displayed on each LMB (256MB) removed, which means that we
> removing 1TB of memory, this message is displayed 4096 times.
>
> Moving it to DEBUG to not flood the console.
>
> Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
I am wondering whether we should be dropping this altogether. Offlining
is returning an error status to its caller so e.g. userspace can find
out the failure and the error code.
Anyway, feel free to add
Acked-by: Michal Hocko <mhocko@suse.com>
> ---
> mm/memory_hotplug.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> index b44d4c7ba73b..c47a53a16782 100644
> --- a/mm/memory_hotplug.c
> +++ b/mm/memory_hotplug.c
> @@ -1587,7 +1587,7 @@ int __ref offline_pages(unsigned long start_pfn, unsigned long nr_pages)
>
> /* Mark all sections offline and remove free pages from the buddy. */
> __offline_isolated_pages(start_pfn, end_pfn);
> - pr_info("Offlined Pages %ld\n", nr_pages);
> + pr_debug("Offlined Pages %ld\n", nr_pages);
>
> /*
> * The memory sections are marked offline, and the pageblock flags
> --
> 2.29.2
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2020-12-14 13:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 15:01 Laurent Dufour
2020-12-12 15:04 ` Souptick Joarder
2020-12-14 9:30 ` Laurent Dufour
2020-12-14 13:53 ` Michal Hocko [this message]
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=20201214135334.GC32193@dhcp22.suse.cz \
--to=mhocko@suse.com \
--cc=akpm@linux-foundation.org \
--cc=cheloha@linux.ibm.com \
--cc=ldufour@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nathanl@linux.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox