From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D34ECDB482 for ; Thu, 12 Oct 2023 13:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378846AbjJLNYd (ORCPT ); Thu, 12 Oct 2023 09:24:33 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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