Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp316064rdg; Thu, 12 Oct 2023 06:37:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3rXMC15iW+wHLerPMeQbkVb7zLQKn/gDh+uc6JHIcx1lyxbxaxxpzswE7gbf1kL24sOqn X-Received: by 2002:a05:6e02:c62:b0:34f:a4c5:8eca with SMTP id f2-20020a056e020c6200b0034fa4c58ecamr22197318ilj.27.1697117867060; Thu, 12 Oct 2023 06:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697117867; cv=none; d=google.com; s=arc-20160816; b=j7GG3KunbvzsxzpSLE3qkF9x3G+cp2CWS+TjVpSZnIBi+Qjcgw6X4uqgGjmSCZf0l9 vmM3Xn96+RMyGctxEy21m3tLhkTxeWfyUdPM6pJXqa8CniWIyJ729lzMLGi4J1VvCQ4Z Qg9od9/0pQx0BibXWth8v2Ruwt5jSYAVZbCSvWKsxKO2smrJM4PkVTrrzJNdGVIngeYq teajCC4BUyiVkz4L2Nt9h63bJZ3YjSjHV+IUp81mQ6hNyfciy7JY43M6311Q3bx1KhIi Le8DrBVscMZx8LqBLCusegR54c8MApKzL/8LFL6kYhffxGAYsj6PATjaJo05RA39Nwdw UlFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=DlsMoTwDjOsqMcslz8wvJSyaA9FQoGSQ2eR6cRRonq8=; fh=o/QHSPw3PmKph8TTwj4rah792npSRShnjtafWJDgFGk=; b=WylbZoSrcgMJBSW3eWXUUHAEUtEEIohyADrO5ECciZLHKABco5s0Rjl94/Q5DrMSwA FB2SCe92wfHLLFLM3isE0sty4ZkCi3GOy/M166H0QbWog+j3+s+CiC5Fdp9Rk1pZu7zj JKMg4U0J/6W0hbXWc5kbo2XCmI7RvUStFSz3vImpCufKUUXSaroR49PvZshsaXzdAEiU PRO2qrz/42uzWJUDVOecT4MEaCYdWoZHs3Xsw+CGbk6sE4lZiSb6n+xhogmbVD0rA6se tz/BFoZ7zSO0+fAyGyOrCs+N9Q+xbHfejgV8iVdNoiCgRcrRdg77vhSIrtvJscQ1/eGm 4EqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fayMnZ5D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 12-20020a630e4c000000b005a1d8816a2bsi2252301pgo.72.2023.10.12.06.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fayMnZ5D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AA6BB8198C57; Thu, 12 Oct 2023 06:37:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343859AbjJLNhh (ORCPT + 99 others); Thu, 12 Oct 2023 09:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343605AbjJLNhg (ORCPT ); Thu, 12 Oct 2023 09:37:36 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E36394 for ; Thu, 12 Oct 2023 06:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697117855; x=1728653855; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=2es9QpCjQe0fxU3AdQYO6Eo7Ee3E5kJdWJAssUgAlGU=; b=fayMnZ5DUtTyYQ30RNmffvMc1OiTV1dOHBeR/emx2L7dRq37DD3j3ntF TqGT0CrsJg+mP6QOj+9s3svOZABGMk1a4vQPzBmBYm6wNVSKaHSvWpc3N /s89afhYpUdkzUBdv7KG8yRVUDIVQQX8nXq1DY1aR84k4/gTNCjcX1um0 efKvgcMg+SshFTRClc3aViLO1l+G2yb1TTcCdmGK9AvPrBsmEWOP5gEFB 3vux79s7s/VUAoGcyGk0zR2/kWAhK+UeY2nNtj1VLTA2deBJpC2jBR//M M0KFFdDGhEwwTgEayJd5FJNJQ1nEuvtTpN3F/atxqaS4gv+GhdDc+x4g+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="415971372" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="415971372" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 06:37:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="845003581" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="845003581" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 06:37:32 -0700 From: "Huang, Ying" To: Mel Gorman Cc: Andrew Morton , , , 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 References: <20230920061856.257597-1-ying.huang@intel.com> <20230920061856.257597-2-ying.huang@intel.com> <20231011124610.4punxroovolyvmgr@techsingularity.net> <20231011101617.2f814633defaa13e77308d9b@linux-foundation.org> <20231012130921.mkcftgq4njnpl3qy@techsingularity.net> Date: Thu, 12 Oct 2023 21:35:26 +0800 In-Reply-To: <20231012130921.mkcftgq4njnpl3qy@techsingularity.net> (Mel Gorman's message of "Thu, 12 Oct 2023 14:09:21 +0100") Message-ID: <87mswodkv5.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 12 Oct 2023 06:37:44 -0700 (PDT) Mel Gorman writes: > 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 am OK to respin the series. It will take 3-4 days to update the performance figures. > 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. I am OK to drop patch 9 at least for now. In the future we may revisit it when we found workloads that benefit more from it. It's not too hard to rebase patch 10. > 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. Never mind, your review are very value! -- Best Regards, Huang, Ying