Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp96284rdb; Sun, 17 Dec 2023 23:23:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIowJynjFDqeqYRQstkKuu2eG8DOWEw2Am8J4i+tnqK0xYZ5tz4c2Fk5s7pxL+iwgS/TsD X-Received: by 2002:a50:a688:0:b0:552:fccb:c3b0 with SMTP id e8-20020a50a688000000b00552fccbc3b0mr3243646edc.25.1702884202347; Sun, 17 Dec 2023 23:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702884202; cv=none; d=google.com; s=arc-20160816; b=hZ+YDybqNx3+Yp5RKqnF/5riospaYT6M/seZ9nepgdVXCLtX6kzuD2WKTqswADpy6E 9iA4bz1bLADcMWP/2+I2xoOm3l8tqjlcw5ZwmNfpRjdyLWwgETT5y8lsrd70Iv5utsvP uFk+dLJWigd0SaJIz9aGPXAHxXHJcZm5n5IUwdf/o9U79L+Dfe1PnpAe224EIJ/QqohH EhOkk2NUnayTsxkoFUh5yF9CrPmCbzcAdH6XR2I3GDdsa6p70hqdS7IuFYuMgv3qPmsh 7ymv7dOqQ8hdgDZCyyWz5pBs6UnQD+y36CY3kgekFvis0tHNWCthEs0ejEYl0wcI1For oidw== ARC-Message-Signature: i=1; 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; bh=krSjKk+rF7jMIy1s3oY5+XS2mHWBxCM4C7SWuFzEcHQ=; fh=tH37pqJOImwkObuJ/LzYJiT3U0ndttEPUl9UOARz1eA=; b=YSR3xBqNXenTaxStYiDhQBLP37mrI0OeYKHpBEVz/TMQxjKSgNQShs+seG0Fkt4LMe 5zSbqOkDAmgkikButrWqFV/cVPVasNDLj5fQEE389WRCok9cY2IFBIoB/eoE8StjSJRp I50V1A8ARJF3nYStL//8kGvNBCq5Zelqj07MoVlTuO7ocBOicX52FPPixV/XO+PfcdFv OllDIAOhylgvJz3hTRZ24MuSJADNIZ1czagutP0oLmP7d+oWQiZ+66RiXw6bKucMNdGe HoM3ucoOGssGuVfbD4CvY3SSEhe9DlX/j4LuAgmacNV9MEITehK/6s9m9Bmauh+69X4s poiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3092-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s26-20020a05640217da00b00552811b12dcsi3564952edy.254.2023.12.17.23.23.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 23:23:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3092-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E813C1F22D79 for ; Mon, 18 Dec 2023 07:23:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C90A28477; Mon, 18 Dec 2023 07:23:08 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17A7F79C7; Mon, 18 Dec 2023 07:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-ef-657fefc8c14b From: Hyeongtak Ji To: gourry.memverge@gmail.com Cc: Hasan.Maruf@amd.com, Jonathan.Cameron@Huawei.com, akpm@linux-foundation.org, arnd@arndb.de, bp@alien8.de, corbet@lwn.net, dan.j.williams@intel.com, dave.hansen@linux.intel.com, emirakhur@micron.com, fvdl@google.com, gregory.price@memverge.com, hannes@cmpxchg.org, haowang3@fb.com, hasanalmaruf@fb.com, hezhongkun.hzk@bytedance.com, honggyu.kim@sk.com, hpa@zytor.com, hyeongtak.ji@sk.com, jgroves@micron.com, john@jagalactic.com, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, luto@kernel.org, mhocko@kernel.org, mhocko@suse.com, mingo@redhat.com, peterz@infradead.org, rakie.kim@sk.com, ravis.opensrc@micron.com, seungjun.ha@samsung.com, sthanneeru@micron.com, tglx@linutronix.de, tj@kernel.org, vtavarespetr@micron.com, x86@kernel.org, ying.huang@intel.com, kernel_team@skhynix.com Subject: RE: [PATCH v3 00/11] mempolicy2, mbind2, and weighted interleave Date: Mon, 18 Dec 2023 16:07:48 +0900 Message-Id: <20231218070750.2123-1-hyeongtak.ji@sk.com> X-Mailer: git-send-email 2.37.3.windows.1 In-Reply-To: <20231213224118.1949-1-gregory.price@memverge.com> References: <20231213224118.1949-1-gregory.price@memverge.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Sf0yMcRzH973ne8/zdByPq803Zc1NozaRtfnYLP3RH4+JWd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bkYmJTkuNTmquIDqpleaR1Ix5yhFR/y7u5+K+/zwsIcukvFml+qyg USti5LSElJj9gte1jSYKG75XEGC0VNIwm/OEgfGaORr6Gq8iyM97haC/ZoEKxjoZaDGZaOif +SaCpOQeEu5YD0DZk88I0gpraHh+JZmGd453CMa/DhJw4+5SyOibQtD600lDkyUMzCUOGpqL 2imwTaXTUHLlFgn1j9pJ6Koz0vChcp6Cl3VVFAz+LCfgY2YodDaaRNB6rVEEdsc3Cr501zHQ n9EqgtHqMQQ2ax4BztuPFxY+5DDwq6aXgnZDLhnqj6fSMkmc1jlL42lnDsJzbZU0bh4aJXB2 ygiDHxreM9hkjcepLcMUtlWsxWX1AyJ8Tz9JYqs5g8bWHzkMHnnxgsFtBdPkIZ9jkm2RQowy QdAEhoRLolKeXibjuhefr7ZVEEmo1E2PxCzPbeKfXR9hXExza/gbSWWEHrGsJ+fL2xtW6JGE Jbhahs9r6iBcjge3h68drmdcDsmt4ieb4l2xlAvm9emPmD+V/nzWPaPIxWJuO291XEUulnEh vGW6mf7jL+HbC/tIVw3B+fGWYpkrJrjlfMr9m0QWkhr+swz/LMN/lgkRZuSpVCeoFMqYzeu1 0VE6tfL8+lOxKita+JLySzPZtWiia7cdcSySu0s5/0RBRikStDqVHfEsIfeU7ixdiKSRCt0F QRN7UhMfI2jtyIcl5Uule48K4TLujOKsEC0IcYLm71XEir2TUNW5/D065wnJSY+I46UNy/yK vCZkEe76kfQ4SVbq/lOVZHPP3YzDR0aHNr7VzXtJLSqH24nnA7at4tUXNwRt//jJY3pzsep0 QENhdODAIh9jb5Vvx7ZU5wqTL3WurPygeMtkeOiDHcJ4dV9uV/DK4/vcM7vDdr0OwOaSN4Gl 86fV/nJSG6UIWktotIrfF9TRyCEDAAA= X-CFilter-Loop: Reflected Hi Gregory, Thank you for the v3 patch. Gregory Price write: [snip] > ===================================================================== > Performance tests - MLC > From Ravi Jonnalagadda > > Workload: W2 > Data Signature: 2:1 read:write > DRAM only bandwidth (GBps): 298.8 > DRAM + CXL (default interleave) (GBps): 113.04 > DRAM + CXL (weighted interleave)(GBps): 412.5 > Gain over DRAM only: 1.38x > > Workload: W5 > Data Signature: 1:1 read:write > DRAM only bandwidth (GBps): 273.2 > DRAM + CXL (default interleave) (GBps): 117.23 > DRAM + CXL (weighted interleave)(GBps): 382.7 > Gain over DRAM only: 1.4x I've run XSBench based on the v3 patch and got numbers below. I used your sample numactl extension from here: Link: https://github.com/gmprice/numactl/tree/weighted_interleave_master Performance tests – XSBench NUMA node 0: 56 logical cores, 128 GB memory NUMA node 2: 96 GB CXL memory 1. dram only $ numactl -membind 0 ./XSBench -s XL –p 5000000 Threads: 56 Runtime: 36.235 seconds Lookups: 170,000,000 Lookups/s: 4,691,618 2. default interleave $ numactl –-interleave 0,2 ./XSBench –s XL –p 5000000 Threads: 56 Runtime: 55.243 seconds Lookups: 170,000,000 Lookups/s: 3,077,293 3. weighted interleave $ numactl --weighted --interleave 0,2 ./XSBench –s XL –p 5000000 Threads: 56 Runtime: 29.262 seconds Lookups: 170,000,000 Lookups/s: 5,809,513 In terms of runtime, weighted-interleaving shows 1.19x improvement compared to dram only, and 1.47x compared to default interleave. I’ve repeatedly run XSBench and have not observed any significant variations across the runs. Kind regards, Hyeongtak