Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp284194rdg; Thu, 12 Oct 2023 05:50:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHC7vxX6+oEOTSH4R/vin98oEIp/Z8i8K2jcc+QeEZwuBHeN+PeesAFWT24iI7JjY4Ekpzu X-Received: by 2002:a17:90a:6e01:b0:27c:fa8f:4e91 with SMTP id b1-20020a17090a6e0100b0027cfa8f4e91mr9598202pjk.23.1697115009043; Thu, 12 Oct 2023 05:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697115009; cv=none; d=google.com; s=arc-20160816; b=yVhjRRYQwZJD2m5FxKNBArBMiVt3inoDIQ/G6oSw0mn1eRrfj8W+vdkqlYpxHpnF9N qFs6Q3IH/cawUVdPI2URrJ5uBgvdvf80ygmCMA1ENBiNhoUwEA7pEEFKGOafyDzymsQd yb0H4Lyo02HWI5if288Bjux/pT/7tAngzNJtzgNCPYGSrY9nvCxF2DUeP6+KMioFQZBx BJ/RNeudQezXs7dThuey/vS6kHOmY+UqEQOX10VRwrh56KVqK61gpo05D8iMmegABhLc R9SxLgPVRmW7ajbbHUqARyRv4GOH1ckzvo2GdyFtB4yF4HD8IpsqyErJ7aYG6gSe3tgb PVFA== 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=7CLCsfd4sRV2jjKLz/glkanNtygQ9gHnRmXk+ux5wVY=; fh=dcvRyeCoUiVz/v1fo/p/GkAPbNAoFDOodEN0hb9O3hI=; b=uPEZVeaFN+G3M5c25/OtS+rHtLl/5pXpzEkAQcktF1zZSU8B/1V4M9FutWXWL3BWzw IozDzuv5e+PlgMQtMrerB7pPE4vuzWSyVHZAB4qDJKQjJZQF9Le2G1PNBP81k80MayS9 DsQ65GVPmt8hrEoLkPtoC7bK15iZZW7FKHYZQ8Rq08MPmuBzXjsG+FAu115ofRbl54kA CaKxNHmdUGXPeR63shFov2iwENhiZg9V8BVwP39puAlaCf/nQ+czLTgur7gjkFpoUG63 RvWidRHJEvwOsHWH3NVp4p7Ip3LNcSSvsn/vEjc8gR4CESSgjvOLtXZ1T+unxC8+D015 vcyw== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id rj9-20020a17090b3e8900b002773363d105si2336598pjb.188.2023.10.12.05.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 92170822CFE7; Thu, 12 Oct 2023 05:50:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378368AbjJLMuF (ORCPT + 99 others); Thu, 12 Oct 2023 08:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343872AbjJLMuE (ORCPT ); Thu, 12 Oct 2023 08:50:04 -0400 Received: from outbound-smtp56.blacknight.com (outbound-smtp56.blacknight.com [46.22.136.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BBC91 for ; Thu, 12 Oct 2023 05:50:02 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp56.blacknight.com (Postfix) with ESMTPS id 8BB39FB099 for ; Thu, 12 Oct 2023 13:50:00 +0100 (IST) Received: (qmail 5189 invoked from network); 12 Oct 2023 12:50:00 -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 12:50:00 -0000 Date: Thu, 12 Oct 2023 13:49:58 +0100 From: Mel Gorman To: "Huang, Ying" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, 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 Message-ID: <20231012124958.dj5ug5hih3joa542@techsingularity.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <87lec8ffij.fsf@yhuang6-desk2.ccr.corp.intel.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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:50:07 -0700 (PDT) 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. -- Mel Gorman SUSE Labs