Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp293045rdb; Thu, 22 Feb 2024 04:07:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWlXW1LrTx/qXksrZdI9LIEV/N0Jo8IIFfGL+LZ1z+TSrm2Q3drzKJ10FYBR2EPrSh/E57Wg8hFzaqwxdgU+7ctbMI3lSJYgO+YKpt2g== X-Google-Smtp-Source: AGHT+IHhRZ0Xrh4uxAG4c9IEEm0iyx9VRLhPiyD2RUmNLxN/ouEE3qVkoofO5fLLEuYcO+h9Ijkw X-Received: by 2002:a05:622a:4cd:b0:42c:6714:f3eb with SMTP id q13-20020a05622a04cd00b0042c6714f3ebmr27558347qtx.8.1708603675633; Thu, 22 Feb 2024 04:07:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708603675; cv=pass; d=google.com; s=arc-20160816; b=e4mfiDiWVP2FDpZPkLJYD6iTiEoid4cPnrLvR/7ZwITP/DcY2+y/xtAEowUeQHSpMF SQ6raT5g5lT92WqWmD/3F1pfbEOjrodVu9dSBxH4BTiWrniO+zXHzpone0Jp2xM1i2ti SjRjwToXRntVB+Iv6DQfGI/2A6SEq02ggChWbrNEC4xph6WoMdQdYmJjqnqmyXBsnJOB pKj/zLRtDKQHGcA6K2C9kygKhU4gABc/qSx4lcHl2p5PX4Bl4pZqthFALPs/XH3Nwft7 39MXtB1E36BxxhE/X5fKug88AuI1tMaOEgVRkx0zw6cHPYwiZjgNxV31b9gTbqt+WqIt YDEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aJelF+A7FbrcwEIKz4Dcu4qyo1ggiaqhQz9rwK7WuvA=; fh=3fdzrPrAIjOfNaelfP+00OgM38l2QLHySLj13GaL8dE=; b=Uq8xzf1p2m/ulpfOmVK2385b6uEeec4Q/oC8UspQmTc1XOFeuF1MHauynNE3EdO6FG mGdwhI0j4+nF4DvGiyUAKbD0k19kjDE6npiFUzIBw6xQm2JSzl72zrMDBYD2zfGsJ+xh 2BRB8+JR/5KOOAlnabWspgQ/G1UJa1aUeFPegVyVZHFG3dHYjf6QwQhH6CfrXa6aNhf/ DlbMGJpSHrr1vpFnaIBnvMtlOM6roac1nStuGC7Xws4JO5kpsY3ItOyvL4EcAzL+VQbP zbEEF1m4d6n7CnDAP5kRz/m7eq0qNwSWRK0pGf8l0WMOMbOUwKI8n8ce5TeXRCqn2mEY qH/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fe2xFJoP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-76481-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e20-20020ac85994000000b0042e3233e161si4533102qte.599.2024.02.22.04.07.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:07:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76481-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fe2xFJoP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-76481-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 641B21C2353A for ; Thu, 22 Feb 2024 12:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0DBC5F87A; Thu, 22 Feb 2024 12:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fe2xFJoP" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57B823F9ED for ; Thu, 22 Feb 2024 12:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708603667; cv=none; b=aDpzChtt+ipnGIKSumH28xfFoAY9wBiERs1XgA6NUk/0FoTLKXxASPSaNooaERJ0J7sl6iVxzkqSfZHoMbZ3TV2dohOvFgQvSBO2yVCQ/4Wz+a514WynSL/PXnTFGushF5SaBU95WzKhBqorb0+gfaVh2jG5LRnyGPuNOceVdOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708603667; c=relaxed/simple; bh=OyVyEzm6PAoZwqACVETHMIR8OveG5ztRrupRqvUuqXc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EhRs0ncOeGKofgQ/4erSe237xj21h+wF4dQfjsnq3HjyIngDhbOif9ELN42OIZ46LBXO85Ytxojp81at3XY0ygnwIXp1Pst21/BQOhGOjO9SUBp3pF8A3HuYAqsa5edvHOKtDHR7jx8a33/GI5We60eYfiG66hMjByJbdoWWs4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fe2xFJoP; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708603666; x=1740139666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OyVyEzm6PAoZwqACVETHMIR8OveG5ztRrupRqvUuqXc=; b=fe2xFJoPE0Swie4uo3RzkcWmuWYyywmhtkao1Spr2HUmfzYgjgvrlig0 5n93jMpdexgM1wYGqz8UejAHDVFRFJMg/iQz1ZFolYk9oypY1hbuTPHLB 3C8RmO9cMALLdUTJCJJHKXxgh8hQGwA1ja2FCe85tdz8u4KZYJLcRdKq5 OUXQKD3N5YpOoC80mSFe26PX/B4fGu7JAKoxlj+0Rmv9YaD2rA7nhAPun mDOYd93qDWsLXng8RCYSF5oBNb3dh8gzKsBTWsV7NfeFPpLQk47fLqfB/ 0c55ezYfus09ZBz2AUMaeSClyszkr7nRX9SYK/65t0BIG/Gt537w9118+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10991"; a="2974025" X-IronPort-AV: E=Sophos;i="6.06,177,1705392000"; d="scan'208";a="2974025" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 04:07:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,177,1705392000"; d="scan'208";a="5843178" Received: from linux-pnp-server-09.sh.intel.com ([10.239.176.190]) by orviesa006.jf.intel.com with ESMTP; 22 Feb 2024 04:07:42 -0800 From: rulinhuang To: akpm@linux-foundation.org, urezki@gmail.com Cc: colin.king@intel.com, hch@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, lstoakes@gmail.com, rulin.huang@intel.com, tianyou.li@intel.com, tim.c.chen@intel.com, wangyang.guo@intel.com, zhiguo.zhou@intel.com Subject: Re: [PATCH v3] mm/vmalloc: lock contention optimization under multi-threading Date: Thu, 22 Feb 2024 07:10:45 -0500 Message-ID: <20240222121045.216556-1-rulin.huang@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Uladzislau and Andrew, we have rebased it(Patch v4) on branch mm-unstable and remeasured it. Could you kindly help confirm if this is the right base to work on? Compared to the previous result at kernel v6.7 with a 5% performance gain on intel icelake(160 vcpu), we only had a 0.6% with this commit base. But we think our modification still has some significance. On the one hand, this does reduce a critical section. On the other hand, we have a 4% performance gain on intel sapphire rapids(224 vcpu), which suggests more performance improvement would likely be achieved when the core count of processors increases to hundreds or even thousands. Thank you again for your comments.