Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp307790rdg; Thu, 12 Oct 2023 06:24:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDpUcvBY9QciWMTxu4dqQnMT78aFH39mPrXp2dqeYsyM/mQZ8MH1QuGNvkoRYlvYZcUVbH X-Received: by 2002:a05:6358:63a9:b0:141:10f4:1cbc with SMTP id k41-20020a05635863a900b0014110f41cbcmr25644225rwh.14.1697117085984; Thu, 12 Oct 2023 06:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697117085; cv=none; d=google.com; s=arc-20160816; b=aoqKirAzJRVAjS9UgnIXuvyNFckBtEghBC9RtW4En0EPl4/uaBnROqpuVHoALtgPu3 Tcy/qJ32fBbRSWwvMVhODCiEqPi4cnLTTOsKgLflGPtKZcUToALnCP3SR1ghJyq28JwQ UucNbm+QWiGUC1f4zq7rSCgslX0vvNGZS0yiTLxim+D1NPYGfIEf0/zAqaaiTL/0AqlA 533CQ1E7NBGicb80D4Vp7ppzVeyYWh7mst+m0rNslL7qpjCc2NQZnFbabB+ZzqPmgEOZ EdQLJOGw9QQCPBi7FsY9EdOr7daB2TqcxfrAkwqhyDMKHWsn/HR+bIXZqR6VVojIgdg6 Qu1g== 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=spaohdgI24cG4kQHtyiiSD+lhPwRDc3CWohPOVbu6/o=; fh=C7HG5V2qJgDCUtG5iNgf38DqFeZ6EVwWyydLK3IqHwc=; b=XYLYIsNb6VPfbylsBMnuC7P/HS0kU/ImN8BzXWF6+yq6nR1cDZIHdgp2oxlSILQd3r aHYAP2ernNETEHApRrmGIjinMGT+IONhAvfz0glHqX5uxLwhCgwxge/vb9P63I0q1gkq YFGOxiI/0ILrjI3gaDRJQ3EP1YHZeiZbti9nfzLQfdulaHsbRjeee/wovNQ08He6u76o l0Fait3VriDGQqcOEyQd84/vmS24BWnX1QQ2l8s0vEQqU9fqu3iGXMNvKeT5yHko4oE5 5sU2XZ+WTqPdXQMantlrm0vqPORomrfe8IMyH8DPzMHMqvurLbEKtx/qTvEBVA1tsFQK mqtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U5xLo5pM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e124-20020a636982000000b0058988fb697csi2148959pgc.358.2023.10.12.06.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U5xLo5pM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 537738255481; Thu, 12 Oct 2023 06:24:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378847AbjJLNYc (ORCPT + 99 others); Thu, 12 Oct 2023 09:24:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347230AbjJLNYb (ORCPT ); Thu, 12 Oct 2023 09:24:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA53ECC for ; Thu, 12 Oct 2023 06:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697117068; x=1728653068; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=cZ4V9GzEqz4BgoOaXGC/uxjgn6AC9Hl2WV/jrbzKEVY=; b=U5xLo5pMDBHnfLqiwlJvQdJtHQIehW4ePqVD/PEjeAlpK2ez95hIu1n4 IyKBP/7iOEfnaUVbZ8E3TapdadQVfkCG4IR3iaARQE5JpABF5ANKBeOAq CijYEEx4jKHfuGqOaYrTYBzj0VdsDkgS8tDrVOyMw2Yo0uJXo8btZAOZO AT3q1/sl/RrmlSG9ZU4npFbG6kZ+36YxYr+anZJXIe2nQwRr72CCQTSrP N5HihRsbAcA+L2RCQZ5fzaPV/cLIcreg7FkSILe69kfrdz7ZOvY+UG7Qm u+45TDtMEc2eZ1WYdg8HSc+wzJOL/SbrgxFK0MGnQryW9b/+5rbc32UiB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="3519284" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="3519284" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 06:21:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="927982873" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="927982873" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 06:21:08 -0700 From: "Huang, Ying" To: Mel Gorman Cc: , , Arjan Van De Ven , Andrew Morton , Vlastimil Babka , David Hildenbrand , Johannes Weiner , Dave Hansen , Michal Hocko , Pavel Tatashin , Matthew Wilcox , "Christoph Lameter" Subject: Re: [PATCH 09/10] mm, pcp: avoid to reduce PCP high unnecessarily References: <20230920061856.257597-1-ying.huang@intel.com> <20230920061856.257597-10-ying.huang@intel.com> <20231011140949.rwsqfb57vyuub6va@techsingularity.net> <87lec8ffij.fsf@yhuang6-desk2.ccr.corp.intel.com> <20231012124958.dj5ug5hih3joa542@techsingularity.net> Date: Thu, 12 Oct 2023 21:19:03 +0800 In-Reply-To: <20231012124958.dj5ug5hih3joa542@techsingularity.net> (Mel Gorman's message of "Thu, 12 Oct 2023 13:49:58 +0100") Message-ID: <87r0m0dlmg.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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 06:24:43 -0700 (PDT) Mel Gorman writes: > On Thu, Oct 12, 2023 at 03:48:04PM +0800, Huang, Ying wrote: >> " >> On a 2-socket Intel server with 224 logical CPU, we run 8 kbuild >> instances in parallel (each with `make -j 28`) in 8 cgroup. This >> simulates the kbuild server that is used by 0-Day kbuild service. >> With the patch, The number of pages allocated from zone (instead of >> from PCP) decreases 21.4%. >> " >> >> I also showed the performance number for each step of optimization as >> follows (copied from the above patchset V2 link). >> >> " >> build time lock contend% free_high alloc_zone >> ---------- ---------- --------- ---------- >> base 100.0 13.5 100.0 100.0 >> patch1 99.2 10.6 19.2 95.6 >> patch3 99.2 11.7 7.1 95.6 >> patch5 98.4 10.0 8.2 97.1 >> patch7 94.9 0.7 3.0 19.0 >> patch9 94.9 0.6 2.7 15.0 <-- this patch >> patch10 94.9 0.9 8.8 18.6 >> " >> >> Although I think the patch is helpful via avoiding the unnecessary >> pcp->high decaying, thus reducing the zone lock contention. There's no >> visible benchmark score change for the patch. >> > > Thanks! > > Given that it's another PCP field with an update in a relatively hot > path, I would suggest dropping this patch entirely if it does not affect > performance. It has the risk of being a magical heuristic that we forget > later whether it's even worthwhile. OK. Hope we can find some workloads that can benefit from the patch in the future. -- Best Regards, Huang, Ying