lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 14 Dec 2020 14:53:34 +0100
From:   Michal Hocko <mhocko@...e.com>
To:     Laurent Dufour <ldufour@...ux.ibm.com>
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org,
        akpm@...ux-foundation.org, nathanl@...ux.ibm.com,
        cheloha@...ux.ibm.com
Subject: Re: [PATCH] mm/memory_hotplug: quieting offline operation

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@...ux.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@...e.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ