From patchwork Mon Feb 19 03:19:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fangzheng Zhang X-Patchwork-Id: 13562140 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 A43A8C48BC4 for ; Mon, 19 Feb 2024 03:22:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1BB9B8D0003; Sun, 18 Feb 2024 22:22:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 145C18D0001; Sun, 18 Feb 2024 22:22:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED99B8D0003; Sun, 18 Feb 2024 22:22:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D66C18D0001 for ; Sun, 18 Feb 2024 22:22:55 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 713321201CB for ; Mon, 19 Feb 2024 03:22:55 +0000 (UTC) X-FDA: 81807106710.02.6840CA6 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by imf22.hostedemail.com (Postfix) with ESMTP id 33CABC0007 for ; Mon, 19 Feb 2024 03:22:52 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf22.hostedemail.com: domain of fangzheng.zhang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=fangzheng.zhang@unisoc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708312973; 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: references; bh=vsHhc0PSIDJmUN2H1AsxMMlWt7SgQIUDPpKa/8abvhg=; b=rmgSkLFXjlNdC+AKWLmVE9tMdGMBsgT4wdplDsR+HbT4leLJXNV7y+TkOPxR8eOxM2FEDL L9KsWlRmsdpBm2qWbfkZ85i2I2KhQd5i1fmIZ/0HWhELRgoZzQVGQU72RtAeNdw+LuIwJw YKmsmGrLEd1FZREROUO9NAPa53ibQEs= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf22.hostedemail.com: domain of fangzheng.zhang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=fangzheng.zhang@unisoc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708312973; a=rsa-sha256; cv=none; b=vxAKdLTnpgZVwOmzUedWLBYgBbSf41OaglaQCR75RSgN0Oaj5UZBAHXGjU9u+nDzDiDwPq os7GAnSTtPdtYuJf3nhXaK3CrqoOxAZd9hrDyOUcszJE1iAgW233ADqWjdkGaoxpS0mCFx 7M9qUVtZu8xIVdYhsXxjXLO8skwyOgg= Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 41J3JlGn005483; Mon, 19 Feb 2024 11:19:47 +0800 (+08) (envelope-from fangzheng.zhang@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4TdSSN4KKWz2KCV0Q; Mon, 19 Feb 2024 11:19:16 +0800 (CST) Received: from bj10906pcu1.spreadtrum.com (10.0.73.72) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 19 Feb 2024 11:19:44 +0800 From: Fangzheng Zhang To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Greg KH CC: , , , Fangzheng Zhang , Fangzheng Zhang , Yuming Han , Chunyan Zhang Subject: [PATCH V2 0/2] Introduce slabinfo version 2.2 Date: Mon, 19 Feb 2024 11:19:09 +0800 Message-ID: <20240219031911.10372-1-fangzheng.zhang@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.0.73.72] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com 41J3JlGn005483 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 33CABC0007 X-Stat-Signature: tabsmxcpsm7asnwysah98mrrdznpach5 X-Rspam-User: X-HE-Tag: 1708312972-266381 X-HE-Meta: U2FsdGVkX19wi6fMWnZtAwbEFk+HMbvgQ7og8MZbazPZVQ+Me/1K8GLa9+wnEGJoS3Q0SGUR55KyMBE0NPSd6olTi0uh6Ea91rjVgU4WxNAga9ykFvJjqvf5mQEbXpe6rg4uV7VJNfxUGRvHoOpWYDCtJwvnmkOxQQPA05ksZj1H+rnBzRWrH7CqgRIlwT2eYE4YyyoOSPzcRikb0k8FKSJiQ/mrpbzt7x7ooq4OjeRd0+0V+sWuumN0qvrJQfP/qpgfvpglhTsYvWo9NLuCAM26Wpsa7abPrZ5JwfK9MWKs3Awl+1pyfgrDTlI4xK+GpgcQN02YeTu0C4MrsZIAV72IXjMiVsdxI5uDd0/5aFQncg4KdUi7hEg+//5vjuBUjcahUjAfO9QcDZmc/Dl99ByUUxE8kV1t1/qxovgH2/wkasdv9+s75TFt8C3RlpQ5BNy7Rb2YJ4Gu+oC2LdZ3HC/FGQHhe5x6juo/fef4tKgBN/XnovPGvkYibzyhWN3vcqcSxv2y7NYME1fEultvT9tcSXi6m38Qlk9WDsNFasFDRvvlhDhcfn89jSfjzxXN5fFMyPkrBZbL5KLcfhwwQRJJKpbGETJbw15RGi8arPRuCh8ImelF7GkE1bfS63XvCoMZ+Y4lDLBxDgUaYnbBgw43ex2J6+d9jfnncXsEsWhvebU+ksuo672vjG3vrEadRbRHAnc5zaBn7bZcJxESL7814rBbHl2WZZzGxpaZlJJzC7EZZSD2/kCZ1KW2i9ViEFPwEO4tk1HLml+cEQXH+fwkQeuDAou4o+xeIDm2NyKvk8wb7qIcwiuAf5F628LsRXwBszpWZBA6DuALIGtw+KsuxwLta8hh5ERZLOmZUbQrKBx1K0K3PGSKtFEe6y/GqYf5YT4M/9w9dc7qROtG0RMRL9cAwVv+CYd5hPQ8AJK5nHoKhiS8diMgaVP+IYMxWmdFbUv0MU4BhMx7gOW eEoU99dX tKTCd5WEnZ6MJkM087USmAyXy8BVgcna4Y+fLHvOhuUAlJDmQ4ezCt41MLkIVl5gKYksUoUuu/r6nFfsZk7bYiE0mSbYZAfgGSpEBMOt/o30NmW1GkKzRsb4vhtK8poe5UPE9kuasudv7aVt9q3pomHvrAHdNGIP5ParkVI21b+QPcASB6b9OM8j5uZ6icfelGq0Q0cIQ1G6NnFyo50xDeXsZ8SQ1+BNjvhvHNViNlxelXXGaQ4xMBX6lmQ== 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: Hi all, This series introduces slabinfo version 2.2 to users. In slabinfo V2.2, we added a slabreclaim column to record whether each slab pool is of reclaim type. This will be more conducive for users to obtain the type of each slabdata more intuitively than through the interface /sys/kernel/slab/$cache/reclaim_account. And we have added an example of the output result executing '> cat proc/slabinfo' in the file Documentation/filesystems/proc.rst. Changes in v2: - Modify the slabinfo version number to 2.2. - Add an example of slabinfo output and future works. Changes in v1: - Add a slabreclaim column to record type of each slab in file proc/slabinfo. [1] https://lore.kernel.org/linux-mm/20240131094442.28834-1-fangzheng.zhang@unisoc.com/ Fangzheng Zhang (2): mm/slab: Add slabreclaim flag to slabinfo Documentation: filesystems: introduce proc/slabinfo to users Documentation/filesystems/proc.rst | 33 ++++++++++++++++++++++++++++++ mm/slab_common.c | 9 ++++---- 2 files changed, 38 insertions(+), 4 deletions(-)