Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2367344rwb; Mon, 19 Sep 2022 04:12:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cBYGxzPKHMW4xd3HITBk7cB5WBXPnYBvcRjvkuQymcSSvNl+LtDdSKDyOoeIBd/lXTjnx X-Received: by 2002:a17:906:fe08:b0:77e:a290:988e with SMTP id wy8-20020a170906fe0800b0077ea290988emr12220759ejb.223.1663585951944; Mon, 19 Sep 2022 04:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663585951; cv=none; d=google.com; s=arc-20160816; b=FV8BUU4y0qphNFewRg9eEU8WTTeiYqsObp7zRFvSxWzf8/mvgMHXDwpSm8Z1/qHT/K MPKL+jnxahcyXi09keVCNRN2hx6lfbA/VW9zL7kNnZq4fvsDMQ8ST5zrerT9noA5ddyb WAmjFqmqxlwhpXmbT13TI20nLWBw5kMnOyiLYa7raW/XqeJz7CwqMce+cd7HLVZE5u3M Og5rsHiI9ZbFfwPg4Dcf9FB18vaRvq6eiYk5JKE2PVNG3+6X0zgAEzZoDMrYplyFZb/U beh24nDY1QqusW2pXtDFT6lhcOzsDOhQeShwYaMq7qt+11Z5dm/0mKE2Ws8G/wV5eDak x12g== 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; bh=cABuqXI6y9Nv9kFAvUbHVnhDnfKYCMQl34jhtxnV3zk=; b=QwVmN0yYM54fKWr5uGZ24R0kcCH/DeQiv9FESZnnUi31/bXiEMLAdMKQJvcr6x7R8w QnCnugjv13f4G8g1zK+yE0Wmz19FhaspjU9njI4JCXel+MrCa4ZywxQpSitXpuEBN+H8 5BCoAMt70RUSMULbYI5bTJ+5Uhk2DUfqqEFDWQYAcKVG2aOuf0Q/vQUHDnSVaM13VuK7 LYvb3+xT9YMWr4RoakL16wC8BRj43ggpGmJ0A80DlJ+6XCmOrD7D4wNE4to1G57Y5lsd ALR91zp6bisd92AOcGTqo/qXOM0Px5gpX3vplP2bEzHq+/P9uAy/BMzvylQMqpEegugl uMmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a1709066ad600b00734c8b99826si19920135ejs.803.2022.09.19.04.12.06; Mon, 19 Sep 2022 04:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbiISKrM (ORCPT + 99 others); Mon, 19 Sep 2022 06:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiISKqo (ORCPT ); Mon, 19 Sep 2022 06:46:44 -0400 Received: from outbound-smtp55.blacknight.com (outbound-smtp55.blacknight.com [46.22.136.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1F427FE3 for ; Mon, 19 Sep 2022 03:31:39 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp55.blacknight.com (Postfix) with ESMTPS id EA4AFFA79E for ; Mon, 19 Sep 2022 11:22:26 +0100 (IST) Received: (qmail 20035 invoked from network); 19 Sep 2022 10:22:26 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 19 Sep 2022 10:22:26 -0000 Date: Mon, 19 Sep 2022 11:16:29 +0100 From: Mel Gorman To: "zhaoyang.huang" Cc: Andrew Morton , Zhaoyang Huang , linux-mm@kvack.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com Subject: Re: [RFC PATCH] mm: check global free_list if there is ongoing reclaiming when pcp fail Message-ID: <20220919101629.xlafi2y2dk357wk3@techsingularity.net> References: <1663325892-9825-1-git-send-email-zhaoyang.huang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1663325892-9825-1-git-send-email-zhaoyang.huang@unisoc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 16, 2022 at 06:58:12PM +0800, zhaoyang.huang wrote: > From: Zhaoyang Huang > > Check the global free list again even if rmqueue_bulk failed for pcp pages when > there is ongoing reclaiming, which could eliminate potential direct reclaim by > chance. > > Signed-off-by: Zhaoyang Huang Patch does not apply and may be based on a custom kernel that introduced a problem. There is no description of what problem this is trying to fix. Checking the status of reclaim for a specific zone in this path would be a little unexpected. If allocation pressure is exceeding the ability of reclaim to make progress then the caller likely needs to take action like direct reclaim. If the allocation failure is due to a high-order failure then it may need to enter direct compaction etc. -- Mel Gorman SUSE Labs