From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD00CC433E6 for ; Mon, 1 Mar 2021 22:05:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 573B1600EF for ; Mon, 1 Mar 2021 22:05:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 573B1600EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DBD6C8D00A9; Mon, 1 Mar 2021 17:05:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D469B8D0063; Mon, 1 Mar 2021 17:05:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE8518D00A9; Mon, 1 Mar 2021 17:05:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0063.hostedemail.com [216.40.44.63]) by kanga.kvack.org (Postfix) with ESMTP id A2E4F8D0063 for ; Mon, 1 Mar 2021 17:05:22 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 4A987180ACF62 for ; Mon, 1 Mar 2021 22:05:22 +0000 (UTC) X-FDA: 77872687284.26.EDA042A Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf16.hostedemail.com (Postfix) with ESMTP id 0E82080D3987 for ; Mon, 1 Mar 2021 22:05:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CA236AB8C; Mon, 1 Mar 2021 22:05:14 +0000 (UTC) Date: Mon, 1 Mar 2021 23:05:12 +0100 From: Oscar Salvador To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Minchan Kim , Michal Hocko , Vlastimil Babka Subject: Re: [PATCH v1] mm/page_alloc: drop pr_info_ratelimited() in alloc_contig_range() Message-ID: <20210301220512.GA4425@localhost.localdomain> References: <20210301150945.77012-1-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210301150945.77012-1-david@redhat.com> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 0E82080D3987 X-Stat-Signature: jeuu467pipho93q7sxwawcqzugfyt9nu Received-SPF: none (suse.de>: No applicable sender policy available) receiver=imf16; identity=mailfrom; envelope-from=""; helo=mx2.suse.de; client-ip=195.135.220.15 X-HE-DKIM-Result: none/none X-HE-Tag: 1614636315-762178 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Mar 01, 2021 at 04:09:45PM +0100, David Hildenbrand wrote: > The information that some PFNs are busy is: > a) not helpful for ordinary users: we don't even know *who* called > alloc_contig_range(). This is certainly not worth a pr_info.*(). > b) not really helpful for debugging: we don't have any details *why* > these PFNs are busy, and that is what we usually care about. > c) not complete: there are other cases where we fail alloc_contig_range() > using different paths that are not getting recorded. > > For example, we reach this path once we succeeded in isolating pageblocks, > but failed to migrate some pages - which can happen easily on > ZONE_NORMAL (i.e., has_unmovable_pages() is racy) but also on ZONE_MOVABLE > i.e., we would have to retry longer to migrate). > > For example via virtio-mem when unplugging memory, we can create quite > some noise (especially with ZONE_NORMAL) that is not of interest to > users - it's expected that some allocations may fail as memory is busy. > > Let's just drop that pr_info_ratelimit() and rather implement a dynamic > debugging mechanism in the future that can give us a better reason why > alloc_contig_range() failed on specific pages. > > Cc: Andrew Morton > Cc: Minchan Kim > Cc: Oscar Salvador > Cc: Michal Hocko > Cc: Vlastimil Babka > Signed-off-by: David Hildenbrand Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3