Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2622818pxu; Mon, 14 Dec 2020 07:06:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWLfT9QyRuLCPBU387efa9PNF/POix9Js/YNgj0Tff+4EG+yY/SDCDVf75lv/hq2REk1zD X-Received: by 2002:adf:fa86:: with SMTP id h6mr29047123wrr.103.1607958406353; Mon, 14 Dec 2020 07:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607958406; cv=none; d=google.com; s=arc-20160816; b=shkR3pLLW/TLaZ2mHwMcPsqrN9jA/Y9yqfW5TZEUQvPzN9tJhtyDULskibgIO1DnDE MFdkn2PbLR5l2xfVaSXohk4GXfLCcUD1EOcM+/mEyii5wAVu5STTNNzNAhsmmob3fizT T1Sin7F8DgzgpuMp8Bxb69f5G8cEsAb/K4YNMKs7uC3rkzSbwethQ9eWFIUUuRYdfpJ0 Shzj8BOv0gkeze6wT4oKiEyKywJ+0PTRFwuriT7xdbS4ZyF5cz3NYcCuMREaOXTJk1nk BmI885Ap5SDZrfVqimMy6FnQw7mWxYjTNdnuhOmVN1u2doreD36Pr5/L0Epjpag7oVVq pumQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GAdjzavcb3mFBEHJB874Dk5WCRXNv3K3HXp41RD9ubI=; b=KAV5Fr63mGP+xvr0SD7MaWbyf26DqcoyCamqiUB1JHQ1PiOTobaLK6glpkVsSBYHVP cPZ48Pu81qBMvLCuGBLMQ/Xy/TIB/I6kVC241Yu2ontK4jJwBktyYaCZoz3TWn1LRE9b Jaakn4iQLrwOPEbzCg8TaDXDcdA8I1d4oVqJhyKg24DCSKl6evSyaNObnFGMEJGqcxTe Vzn9ERZI1e3YXMiZINdezN52xFl1nRdjEMYLdcJfKm6n4crpt+wL84q8zhTGaM1q1ntV 4PFG2W0efr6l3m+l5G4hgpvuoIdY9tqgB1VbSe1+0r44lcgu0R+DO25HTFK4NFCpzNn/ zdnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="qcicvaw/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si10456505edw.280.2020.12.14.07.06.21; Mon, 14 Dec 2020 07:06:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="qcicvaw/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728446AbgLNNya (ORCPT + 99 others); Mon, 14 Dec 2020 08:54:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:48480 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728955AbgLNNyW (ORCPT ); Mon, 14 Dec 2020 08:54:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1607954015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GAdjzavcb3mFBEHJB874Dk5WCRXNv3K3HXp41RD9ubI=; b=qcicvaw/qXksidM4WAVQXpf06NH7u8U/WthgWbvG71oMO+P8DvLLjWleNjevKNMUD2Eqov XIBd3er3QqDwU11Lytxc5wTf4VcwMC4lmbynDIsfQbKuzd5FLw5Mbx3ptlC3Vpu1hzD6CG 4JHbh0qPwaVovCnYAISNGq2IhA4luFY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E383DAC7F; Mon, 14 Dec 2020 13:53:34 +0000 (UTC) Date: Mon, 14 Dec 2020 14:53:34 +0100 From: Michal Hocko To: Laurent Dufour 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 Message-ID: <20201214135334.GC32193@dhcp22.suse.cz> References: <20201211150157.91399-1-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201211150157.91399-1-ldufour@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > --- > 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