Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1265464pxu; Mon, 23 Nov 2020 16:27:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWiJ1AO70P8QkoXo8aiUwIBvwjI5ZflXMRzZ34SXlYeZaMlzKXZaFIqXNQnmZRRCcoR8JC X-Received: by 2002:a05:6402:22c9:: with SMTP id dm9mr1677852edb.96.1606177655406; Mon, 23 Nov 2020 16:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606177655; cv=none; d=google.com; s=arc-20160816; b=UN/X8x9t8sd9/djSZgizscYxMc+IbIuDes4YbANerWEwsyErFh/P898joTjhsGruQN /BxX3G/FIqTzmNJoMJVcanfvkI0jXDDeoAJzBlDYYKijWduktfV03PbZ/k3+M/0c8QRy NoIGj5X0vgm5pc36rSB4HbsvmhmxEYdinOObDqn+Z6VXFf6HC/NJ3Zc/dqNNbtoxxYbw n0jKBOrqqhN9QwpGV2mNVC7Omx0r6p30QGtxUcsM4ZckTAzxOY9vjlWaEhfsfDQ27ZK6 gi844Jb4j6WRLmWBRYZulj3ExAWXdB8vLtb+OIO3MwSklohX78H+O8I/owC1bzsXhk5t IfoQ== 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=ctnkZidQcbONL2E2GNXaD6vWwJeHp8xZUqynseoO/sA=; b=NGPPANlbNP+kCO3FTNzNVvgoRjLAnolfY4IawNP7yUjbUyUUhp+E5V9KSMDEyA1nzO vzjR69BJpe+/3CtVrVwTjURR+glB86MfFY5D8wbohjG+ok24qs+lMYZRmGs3yUwj6QaF i1PthoP+j94cYZE3gePqOmVc+p/fOyL3tMRzvQp2CYvIquZbAQlpc11R6FZgHeSyvgjB fJSKZkQ1/hAbw6/mkJP9gC5X7/Hiob9lqe1xXHfaChS/tRWBkZ3q2xXxe8jKbowFTXuk FMjtE61+8wdnBr5gXNwFufGpQcac8UzjhY4MtH+dEnYPbg0gQWkXkU+2VDHZsx1mNWVA XCRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kd7EHCER; 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 lj2si7663608ejb.246.2020.11.23.16.27.10; Mon, 23 Nov 2020 16:27:35 -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=kd7EHCER; 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 S1731334AbgKWON5 (ORCPT + 99 others); Mon, 23 Nov 2020 09:13:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:52562 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730401AbgKWON5 (ORCPT ); Mon, 23 Nov 2020 09:13:57 -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=1606140835; 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=ctnkZidQcbONL2E2GNXaD6vWwJeHp8xZUqynseoO/sA=; b=kd7EHCERweUSVilu2uB4nLfReLStHEYhuU1ziibqx0MG3I0FjP4Wt9AZ7rMZY6GOBfjwfM Zyl+pcYt1NmcZP6J6XfW76nkR6ZxVStM8Dd6qoDNOvKdiKRUEWvYY2UPbA3ZdWmrRwALyL nFUApIeWlgMH/omBSFYOZpv8XfH5Y1g= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8A260AC23; Mon, 23 Nov 2020 14:13:55 +0000 (UTC) Date: Mon, 23 Nov 2020 15:13:54 +0100 From: Michal Hocko To: Charan Teja Reddy Cc: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memory_hotplug: put migration failure information under DEBUG_VM Message-ID: <20201123141354.GQ27488@dhcp22.suse.cz> References: <1606140196-6053-1-git-send-email-charante@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606140196-6053-1-git-send-email-charante@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 23-11-20 19:33:16, Charan Teja Reddy wrote: > When the pages are failed to get isolate or migrate, the page owner > information along with page info is dumped. If there are continuous > failures in migration(say page is pinned) or isolation, the log buffer > is simply getting flooded with the page owner information. As most of > the times page info is sufficient to know the causes for failures of > migration or isolation, place the page owner information under DEBUG_VM. I do not see why this path is any different from others that call dump_page. Page owner can add a very valuable information to debug the underlying reasons for failures here. It is an opt-in debugging feature which needs to be enabled explicitly. So I would argue users are ready to accept a lot of data in the kernel log. > Signed-off-by: Charan Teja Reddy > --- > mm/memory_hotplug.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 63b2e46..f48f30d 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -1326,7 +1326,10 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) > > } else { > pr_warn("failed to isolate pfn %lx\n", pfn); > - dump_page(page, "isolation failed"); > + __dump_page(page, "isolation failed"); > +#if defined(CONFIG_DEBUG_VM) > + dump_page_owner(page); > +#endif > } > put_page(page); > } > @@ -1357,7 +1360,10 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) > list_for_each_entry(page, &source, lru) { > pr_warn("migrating pfn %lx failed ret:%d ", > page_to_pfn(page), ret); > - dump_page(page, "migration failure"); > + __dump_page(page, "migration failure"); > +#if defined(CONFIG_DEBUG_VM) > + dump_page_owner(page); > +#endif > } > putback_movable_pages(&source); > } > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a > member of the Code Aurora Forum, hosted by The Linux Foundation -- Michal Hocko SUSE Labs