Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2799651imm; Sun, 19 Aug 2018 05:38:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx3Y2IeGHgFLkeFIxBYX1Xg1MMTU8cnYbMzyQ/PkzsAikPRSfH7ymwlDIfwb4sguK87wXVe X-Received: by 2002:a17:902:8697:: with SMTP id g23-v6mr41214064plo.292.1534682310377; Sun, 19 Aug 2018 05:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534682310; cv=none; d=google.com; s=arc-20160816; b=WZukexOOZg5GPT2R+HVJ41TGVOevGAsZEazOm4GKHDsM1b7rGILYMejnqcFNfSHKUG qkEwPbotoFF0qYOHriYUbn5RZJGiQqhOe51SuJjRvMNsVwI+fOER7GL4fyHnr3JenwIV PAVxwBJ6C5DV7307/Iy5MHqfzQrAb+qXQ+jyseOsCjMHBQSW4TgzRDpPnzs+0nZM4ksd TiKn0rvhz4qaHgwsgN40kNiRUyn7ju6MWx7EVQ3ZjIWZx09T/gUV1WGeD2kYz2QgbJd7 6eQvHpWeNXOOHGtDmYBr8I9Y7iqyjKWtIjpfCj9RKvBNkIOMWrGTWZYyb6FEiyUgXabt /0WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=hQwO97kSF1EDfwMtlNT2yypCcbNrXj/uBNADdxUvl8c=; b=I74XNgRb4iA+8WFAkKMnz6IBV8iTJKNzH0npiufzWZ6O/jHq3FeAOKHdD8kxRNs3Bn qjGyW2PLDRwjmvhURlt+BfNYQZPgRjvCTqeWCx335v8PitCKpVQaI6aTKxMkTGC6YSOT JxHR5LruuqL0umX7NJgilLo3DFjzxDao4tjEnbcLjXRcQT+5fKKHmQHbdKr32gPxN5lz FDZJND/uxzUweRVRa0YFx0uymGRMJJ7DwABH2s9jznaIDbeDiwjIvgU3Z4BRyYYHj02q wOATTJ1YHqb/OO9MbB6OP0yXX6UJ9gxO+yUrHEZVMzK/AYk0F5Q3uXYKPo+MmWXqxXi4 R8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWX+LFEQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2-v6si3553251pgq.503.2018.08.19.05.37.39; Sun, 19 Aug 2018 05:38:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWX+LFEQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726458AbeHSPpa (ORCPT + 99 others); Sun, 19 Aug 2018 11:45:30 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44084 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbeHSPpa (ORCPT ); Sun, 19 Aug 2018 11:45:30 -0400 Received: by mail-pf1-f193.google.com with SMTP id k21-v6so5434645pff.11 for ; Sun, 19 Aug 2018 05:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hQwO97kSF1EDfwMtlNT2yypCcbNrXj/uBNADdxUvl8c=; b=rWX+LFEQXmBscpESUp+egun9vwTO/tZ+wToJrcNvuSay/a7RcS7lBWiNNvTs50QZuN /ifZ0b6YE0zzf12PFhIH9oGQOET7sPTTbJ9/czRBt4A3pRdn2cvQ6oe5jF1735z4OdUP CWvIHgzOkKZ3Bektq/RCf8t4ikkc4lDAWPA2NhCZfstAlW6nGZsdXDZKy7Z/31N5Ij41 L2Xc4RaTIiFvzFkCHvLYYbnZwz/Pbx8fjzKDohXuO0CAiJ0BJGWElShpA+t6taICobc5 9TsxVAFhC/W6B+vuAUlIup7EFTZo6zEavOK4RtLwP2YuLz1OI1RmuYDaDo9lOvTEe+JT 4NRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=hQwO97kSF1EDfwMtlNT2yypCcbNrXj/uBNADdxUvl8c=; b=pHGyQ0R2qgQH3MTUAfIu038udN6omH6idEy5nrwBI/ZFHTqT57iOl4bIvlcTIos2wB jeSHElIPz5TKxsmKvctQYtHRlzdUldD45vUqEdq2SPyoDI7uaQzREFvWs3H2iT9Lknin FdMnEpCUQu74YRinU1cd6x5cYQHBc/ElR5Mg9a47gKMCXHVq+O3oUSx/jqITMW3OcppS r3d+95gGCSboeLrjbUSq7e4EGqDHPv+r6C3R37G7eabV5O0+l7eL7slQd6K3kyz5R9VN qWqXWJUQpMzW+j06CtGQDCg3kSquCZ4GJJEzCzSe3NXbBkYIhgidtWvXp5ZH7kskn354 mbcA== X-Gm-Message-State: AOUpUlHnXayCAYJthlqLGcOyzaIs2t9AZqOoEFwy3nh0+1p8GxXoHlpT zs8D3sdRwtgimdpAESXQAE4= X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr39364655pgp.65.1534682051138; Sun, 19 Aug 2018 05:34:11 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id v22-v6sm15046690pfi.60.2018.08.19.05.34.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 05:34:10 -0700 (PDT) Date: Sun, 19 Aug 2018 20:34:03 +0800 From: Wei Yang To: Oscar Salvador Cc: David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Stephen Rothwell , Pavel Tatashin , Kemi Wang , David Rientjes , Jia He , Oscar Salvador , Petr Tesarik , Andrey Ryabinin , Dan Williams , Mathieu Malaterre , Baoquan He , Wei Yang , Ross Zwisler , "Kirill A . Shutemov" Subject: Re: [PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages() Message-ID: <20180819123403.GA22352@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <20180816100628.26428-1-david@redhat.com> <20180816100628.26428-6-david@redhat.com> <20180817081853.GB17638@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180817081853.GB17638@techadventures.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 17, 2018 at 10:18:53AM +0200, Oscar Salvador wrote: >> failed_addition: >> +#ifdef CONFIG_DEBUG_VM >> pr_debug("online_pages [mem %#010llx-%#010llx] failed\n", >> (unsigned long long) pfn << PAGE_SHIFT, >> (((unsigned long long) pfn + nr_pages) << PAGE_SHIFT) - 1); >> +#endif > >I have never been sure about this. >IMO, if I fail to online pages, I want to know I failed. >I think that pr_err would be better than pr_debug and without CONFIG_DEBUG_VM. > >But at least, if not, envolve it with a CONFIG_DEBUG_VM, but change pr_debug to pr_info. > I don't have a clear rule about these debug macro neither. While when you look at the page related logs in calculate_node_totalpages(), it is KERNEL_DEBUG level and without any config macro. Maybe we should leave them at the same state? >> +#ifdef CONFIG_DEBUG_VM >> pr_debug("memory offlining [mem %#010llx-%#010llx] failed\n", >> (unsigned long long) start_pfn << PAGE_SHIFT, >> ((unsigned long long) end_pfn << PAGE_SHIFT) - 1); >> +#endif > >Same goes here. > >Thanks >-- >Oscar Salvador >SUSE L3 -- Wei Yang Help you, Help me