Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp297722rdg; Thu, 12 Oct 2023 06:09:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHg21p2es8klboP7+ANqW8iVpQNVuVPKt6bkLIJYshMUlbVlnB54QJVWu8dl4XaO+E1vcds X-Received: by 2002:aa7:88c2:0:b0:68e:36bc:194a with SMTP id k2-20020aa788c2000000b0068e36bc194amr31480922pff.15.1697116182251; Thu, 12 Oct 2023 06:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697116182; cv=none; d=google.com; s=arc-20160816; b=h03+BxoypC5pWsy99z5X/atxMRnJYsCU/HlXoIVwmJb5o9pk8VWTNrIMtoc8WGBsaB rDWFqB1VqGAcIzWHFSM+kMN/jBzpqgzmxhFUrQlwQNgNkh4M9Ag7vue0G0HCIIOkXKEm Ak0vefwgPk+C8pbbLfKvwPiBokRxWGNQwO7gj3p7hTS23uYt/5Elg6hym4++i7yN6AaW xsNcb0KlerVOk0MJkwvY32dcWxiFfjvfxAZfKd9aIpb9udmn0E2O8nWuK2jQ+/X4pREo f+HIX02ip56ymb5tD5ClXPIIsu4d3lwRmvPz9N4ePGaCA27CgnMVB3PMNqg7HdWQth0x c2+g== 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=y0WfHSGgbBNG2TWhORUZ0ekiiVJoWbQuebCHhEZCKPw=; fh=uP898DYFQ5bAFB8kRHYByM5nag1upn86iB3mFF/0xJ0=; b=rnudqOrUOnYL6h/zY3fPHp8PtXsGJJRNZvHj7BtIOiye+JL7ljx+lrHCLAYVoColkL 5oEVtXCFbIRRG7EKk4d/7k6tAq+W7oEVLNPzceOC60mBwAUUz5klKppgxisreqHl/qnH n7VR4kfrJkhtCIp+O6K/OLn1MbCYIrt/CrvU9ENULSVJPoYQhvOHvcMOYwDpFcZoIpM1 J+PDhpd7XM05dZ/I0QgWno8YyoGHoRtqzEt/bo1Tq6+VhlE2aqrV1C+XlFtFvuW4Dg4t QsfiZTf9UcAAR1D65kT83l9lcSCApcO+Shu2L7xzQNDJbDmxBW+hjh/h8Ds+BlHmZ327 rMjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h9-20020a056a00230900b0068fc080f79dsi14681042pfh.122.2023.10.12.06.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5BD7E809F39E; Thu, 12 Oct 2023 06:09:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344014AbjJLNJ2 (ORCPT + 99 others); Thu, 12 Oct 2023 09:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343765AbjJLNJ1 (ORCPT ); Thu, 12 Oct 2023 09:09:27 -0400 Received: from outbound-smtp60.blacknight.com (outbound-smtp60.blacknight.com [46.22.136.244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11DE91 for ; Thu, 12 Oct 2023 06:09:25 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp60.blacknight.com (Postfix) with ESMTPS id 64163FB149 for ; Thu, 12 Oct 2023 14:09:24 +0100 (IST) Received: (qmail 469 invoked from network); 12 Oct 2023 13:09:24 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.197.19]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Oct 2023 13:09:23 -0000 Date: Thu, 12 Oct 2023 14:09:21 +0100 From: Mel Gorman To: Andrew Morton Cc: Huang Ying , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Arjan Van De Ven , Vlastimil Babka , David Hildenbrand , Johannes Weiner , Dave Hansen , Michal Hocko , Pavel Tatashin , Matthew Wilcox , Christoph Lameter Subject: Re: [PATCH 01/10] mm, pcp: avoid to drain PCP when process exit Message-ID: <20231012130921.mkcftgq4njnpl3qy@techsingularity.net> References: <20230920061856.257597-1-ying.huang@intel.com> <20230920061856.257597-2-ying.huang@intel.com> <20231011124610.4punxroovolyvmgr@techsingularity.net> <20231011101617.2f814633defaa13e77308d9b@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20231011101617.2f814633defaa13e77308d9b@linux-foundation.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 06:09:39 -0700 (PDT) On Wed, Oct 11, 2023 at 10:16:17AM -0700, Andrew Morton wrote: > On Wed, 11 Oct 2023 13:46:10 +0100 Mel Gorman wrote: > > > > --- a/include/linux/mmzone.h > > > +++ b/include/linux/mmzone.h > > > @@ -676,12 +676,15 @@ enum zone_watermarks { > > > #define high_wmark_pages(z) (z->_watermark[WMARK_HIGH] + z->watermark_boost) > > > #define wmark_pages(z, i) (z->_watermark[i] + z->watermark_boost) > > > > > > +#define PCPF_PREV_FREE_HIGH_ORDER 0x01 > > > + > > > > The meaning of the flag and its intent should have been documented. > > I need to rebase mm-stable for other reasons. So let's please > decide (soon) whether Mel's review comments can be addressed > via add-on patches or whether I should drop this version of this > series altogether, during that rebase. The cache slice calculation is the only change I think may deserve a respin as it may have a material impact on the performance figures if the "size_data" value changes by too much. Huang, what do you think and how long do you think it would take to update the performance figures? As it may require multiple tests for each patch in the series, I would also be ok with a follow-on patch like "mm: page_alloc: Simply cache size estimation for PCP tuning" that documents the limitation of summing the unified caches and the impact, if any, on performance. It makes for a messy history *but* it would also record the reasons why summing hierarchies is not necessarily the best approach which also has value. I think patch 9 should be dropped as it has no impact on headline performance while adding a relatively tricky heuristic that updates within a fast path. Again, I'd like to give Huang a chance to respond and to evaluate if it materially impacts patch 10 -- I don't think it does but I didn't think very hard about it. Even if patch 9+10 had to be dropped, it would not take much from the overall value of the series. Comments and documentation alone are not grounds for pulling the series but I hope they do get addressed in follow-on patches. I think requiring them for accepting the series is unfair even if the only reason is I took too long to review. -- Mel Gorman SUSE Labs