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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6902C27C79 for ; Thu, 20 Jun 2024 07:26:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D4E76B044B; Thu, 20 Jun 2024 03:26:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35E546B044C; Thu, 20 Jun 2024 03:26:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 225496B0452; Thu, 20 Jun 2024 03:26:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 032796B044B for ; Thu, 20 Jun 2024 03:26:28 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9C838120AD9 for ; Thu, 20 Jun 2024 07:26:28 +0000 (UTC) X-FDA: 82250434056.03.42B236A Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by imf09.hostedemail.com (Postfix) with ESMTP id 223D2140011 for ; Thu, 20 Jun 2024 07:26:25 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=f4WEh8y3; spf=pass (imf09.hostedemail.com: domain of ying.huang@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718868377; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=PjAuAbocvQ/g768MwJJOZvoZq2JQfGbulXRfyiBPo9I=; b=E2pMZeLSlxuSwr9SW7ZYYQjsScvQ/tPhtImZ3M7lpdRDTjic1m2CKvoLjIRh6QHbAgRdBP G/KOG4eAi3B1v/NrvOfNbua3zKN/zYLmL8eD/xdKKCZ2DtsLwGIvCe+X6m/yhDXOMXwTu0 XWRX09wDXzzyeeBA4oo4UQhn7qavVQ0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718868377; a=rsa-sha256; cv=none; b=mJfDrKVsHhcittyHFdGL0dDhN7QhowLpUXekg+uEO6HvWwhelmGfja/q2jf3IBUqkPW4EU 7qYaovD6IOw/WvOsTBcmOiommxVkaKlOKUeGsuqGvjjdhTJ1i0qsUf6r1x4oRucPLtp14A BTCl0ls7iRYs6KnDFIjH5xpF/4RBf1k= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=f4WEh8y3; spf=pass (imf09.hostedemail.com: domain of ying.huang@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718868386; x=1750404386; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=8/A1Y3E8GY6PIn4gC4KVtV56SOoGUo+DimAJe67mlxs=; b=f4WEh8y3OH5a5TqoWO2cwdSnnB5MpBS67l4pOnJ9kkmYg6+zirar1F7r 9s55rEwuOKmrT+PqSmd4TFYjA67gWRz3Ne24S2N5tkyOzr9NFEuVRM+wF vFSHj0eQmjnz7bTkuUFCCF1BdbU4XBTofbkX+QA7bjOcWT6Iat471yYEC H+Ec4cjC+npXPGChkr5gPMUggs/gai+54/LtHtf+fodht/FthxNeAWnMC dve5LDCTkD0/Vf8KDE99jlVidgTYl2Pg1KDgGwxfN2m9eNcH9PxEXpiQ8 4F4gm3vr3E4wV25d0HH+GyPyUnHx3EQSsWBs53isC+tG3n6TcJM1T5bP1 A==; X-CSE-ConnectionGUID: f4UOdUfHSYabAgbb+q/gkg== X-CSE-MsgGUID: AtItcLkqT3qTNuuXCDcIgQ== X-IronPort-AV: E=McAfee;i="6700,10204,11108"; a="15966944" X-IronPort-AV: E=Sophos;i="6.08,251,1712646000"; d="scan'208";a="15966944" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2024 00:26:24 -0700 X-CSE-ConnectionGUID: YPSl5iKzSRa7ktrwYfds6Q== X-CSE-MsgGUID: MuPmNWmlS8mScjrAeRBEkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,251,1712646000"; d="scan'208";a="73344286" Received: from unknown (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2024 00:26:21 -0700 From: "Huang, Ying" To: David Hildenbrand Cc: Barry Song <21cnbao@gmail.com>, akpm@linux-foundation.org, shuah@kernel.org, linux-mm@kvack.org, ryan.roberts@arm.com, chrisl@kernel.org, hughd@google.com, kaleshsingh@google.com, kasong@tencent.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Barry Song Subject: Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout In-Reply-To: <3e185f8d-da63-4a61-9cd1-9804bd972515@redhat.com> (David Hildenbrand's message of "Thu, 20 Jun 2024 09:20:43 +0200") References: <20240620002648.75204-1-21cnbao@gmail.com> <87zfrg2xce.fsf@yhuang6-desk2.ccr.corp.intel.com> <3e185f8d-da63-4a61-9cd1-9804bd972515@redhat.com> Date: Thu, 20 Jun 2024 15:24:30 +0800 Message-ID: <87cyoc2i1d.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Stat-Signature: 7ag3cja9i8q1hjfi7t9kgxj7cofoyg98 X-Rspamd-Queue-Id: 223D2140011 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1718868385-818484 X-HE-Meta: U2FsdGVkX19sgRKgnI3YfB6XNRN+Bo5jjZC8K8bzNr5v6GCaB1OCRC/HKRokYvDGG9MZPOp93MAKAPZO2scSp6ZW/8cliCgqz6UHm3wyyMTDDpnMRqv9rdf7BuhaGeYY9Ju09dFzwWzW0SJYykaR4JLIEXkOx/in3sp2aJStsuIlizA1DMW3yEdmVxJwqka3cCbzI8MiO1Tm1XIqbMaLCVYXGV5AlQboKDJaz5QvdOJ1sxlVZfU8iR44thJxyL76O9MspN2NEvVZVs0dlRhkuR5r1wx6HxjH4gIBZlk6PnQ0EotKBUPosfvHgPXgw50evYvEFBshxZ27qCx5Jb5tuvW4fQHJAK9+/hMYchW/MDkmxbwy4tX5GqydWEcTlfFZ0skxirgwjC1AXd2D1eiKX/mCIwTg2OKr7+uilSrwVHHmeJKHnQcB1JJwWep2wAH7clZcfKdw3V2Kwe81+JNIJl5FqnazTS+g3ZPGrYEtS1ck0Lr3Mb8RYeEE5LYTsoogU9YI3r4vBpupJyUT9+rguOvy1RcqCkNxEq15nxyo6WEGCUgpWt18r2KE8oq4PoVlBNW9phQSh0QEcYZOQ1BF64tyXZlOWIRJrtSByz90OlIkF85QAngnz8nQWsLzJOS1FAPhyCn/l3+pYTRI1NgHzzSWOs37Z+4NqF8vyh9rGL8BpRit+qHXpVRJ4Ks7X3gPKH/u7G5g4mYE8PRCfoTgO4yjBPerlHiWkfVDXZK6nfdMcjc9HIpINXX7E1wtR2iP7H6Bju0Z4VeZVmSqJtBEZOtHveQCoVIwNrpcGbTlGWl/nCAuXY/mEjNU40mlYXYQSQjDBmQS02CdWa9gQQfVPXRofzoRvETCr1OPi/6R9H8mE3r6zCBRuQg7STeAmHBeLGBeRJ0LlOFyIfvjvjU1/w68Ki8uxKOvIOZd/Gn0hwVjy84kNyEdFVg9IaKHiW6KFgHBmckh62Qeg+SuzXN VDrTVa4i HqavfSCk3F8fFHtG+r5+Zk1k7w+gUPGE0YwYsNAZyd0Gjlkwsle+JKaUGvWEhmvjAT4Ts0wITeNovKwf7UR0lFXTy7sIVQ5nFXyDuThz+9hIt8Z+ryO6vfsob4qREYtu0VGGI3BuKsaQDuJbTTUZnc7Kq1Wu6XJwnT6+iBhoNxvMiudW70z6t4oqBbN1oUa7r3ZgpJc1e0dOdtzn4os0Ln12wL5lce4VlPFJFRWBRznGvzJyfYT1k86g7snfvUG6cdBpJFALKtR5+rtxKrfYxosi80ekQwyaHfIhyySWS8ykpM+6wdVUA1l6dOGuE97xBsgoT X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: David Hildenbrand writes: > On 20.06.24 03:53, Huang, Ying wrote: >> Barry Song <21cnbao@gmail.com> writes: >> >>> From: Barry Song >>> >>> Both Ryan and Chris have been utilizing the small test program to aid >>> in debugging and identifying issues with swap entry allocation. While >>> a real or intricate workload might be more suitable for assessing the >>> correctness and effectiveness of the swap allocation policy, a small >>> test program presents a simpler means of understanding the problem and >>> initially verifying the improvements being made. >>> >>> Let's endeavor to integrate it into the self-test suite. Although it >>> presently only accommodates 64KB and 4KB, I'm optimistic that we can >>> expand its capabilities to support multiple sizes and simulate more >>> complex systems in the future as required. >> IIUC, this is a performance test program instead of functionality >> test >> program. Does it match the purpose of the kernel selftest? > > We do have the similar tests at least for ksm (ksm_tests.c) and > probably others: > > $ git grep -l clock_gettime > ksm_tests.c > migration.c > mremap_test.c > transhuge-stress.c > > > I recall that gup_test.c also measures performance things. Good to know that! Thanks for your information! -- Best Regards, Huang, Ying