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 X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE79FC7619D for ; Mon, 17 Feb 2020 08:48:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AF13D2064C for ; Mon, 17 Feb 2020 08:48:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="qTbWMIvs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF13D2064C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4AAF16B0005; Mon, 17 Feb 2020 03:48:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4351C6B0006; Mon, 17 Feb 2020 03:48:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2FD266B0007; Mon, 17 Feb 2020 03:48:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0167.hostedemail.com [216.40.44.167]) by kanga.kvack.org (Postfix) with ESMTP id 130586B0005 for ; Mon, 17 Feb 2020 03:48:52 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9602B82499B9 for ; Mon, 17 Feb 2020 08:48:51 +0000 (UTC) X-FDA: 76498993662.05.fowl50_30363680f194b X-HE-Tag: fowl50_30363680f194b X-Filterd-Recvd-Size: 4802 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by imf44.hostedemail.com (Postfix) with ESMTP for ; Mon, 17 Feb 2020 08:48:51 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 67AB2578; Mon, 17 Feb 2020 03:48:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 17 Feb 2020 03:48:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=zWf+0HG22W45afcXZHRTV9rKlLD+feL1RTETMk2WVss=; b=qTbWMIvs G8Bd9in1JE2ZL5w8vE5vpfRBHHKNLQUyHwCZuqnPn/+dlIjYn/YtSR2UP/xTridr SLuvzcFjZXO1m6zM+aQ4J7JmQNtUAhXbcvwVOGHLMNDKwSwkj28mPjq0nKxlU2ZT 62jMO0Kfryoh7nQFJM+nElBXju/nFC7w9sDd0uiORPswwz/pod4hqArPT8VBQSjT sN9ibdbtijnPeRLyd3zn1JiLPjGEAhC1wfSYaHYLb2Y8UKsEBO8aRlTiaE4ngSqq NFln2sJjUPBqoqhmA1fm/31cOeiTeiOllorE5D+zfDqhwmZj+dh009w8GRjcJv53 4AtRdiEOaqKOMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeehgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffosedttdertdertddtnecuhfhrohhmpedfvfhosghinhcuvedr ucfjrghrughinhhgfdcuoehtohgsihhnsehkvghrnhgvlhdrohhrgheqnecukfhppedvtd efrddujeefrddvkedrudektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehtohgsihhnsehkvghrnhgvlhdrohhrgh X-ME-Proxy: Received: from ares.fritz.box (203-173-28-180.dyn.iinet.net.au [203.173.28.180]) by mail.messagingengine.com (Postfix) with ESMTPA id D588A328005A; Mon, 17 Feb 2020 03:48:46 -0500 (EST) From: "Tobin C. Harding" To: Christoph Lameter Cc: "Tobin C. Harding" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] slabinfo: parse all NUMA attributes Date: Mon, 17 Feb 2020 19:48:26 +1100 Message-Id: <20200217084828.9092-1-tobin@kernel.org> X-Mailer: git-send-email 2.17.1 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: Hi Christoph, I found a few files in /sys/kernel/slab/foo/ that contain NUMA info that is not currently being parsed by `slabinfo.c`. I do not know whether this is intentional or not? Since I did not know this I just printed the info in the NUMA report section like is done for the per node slabs and partial slabs info. Just for your interest; I found these while re-writing slabinfo in Rust, thanks to the type-system. I guess that if they were unintentionally missed then this is a small win, if they were intentionally missed then this series is just noise :) Patch one is a one line whitespace fix. To test I comment out the code that inhibits NUMA output for single node machines and then the output looks like this (relevant bit at the bottom) $ sudo slabinfo kmem_cache_node Slabcache: kmem_cache_node Aliases: 0 Order : 0 Objects: 1877 ** Hardware cacheline aligned Sizes (bytes) Slabs Debug Memory ------------------------------------------------------------------------ Object : 64 Total : 34 Sanity Checks : Off Total: 139264 SlabObj: 64 Full : 15 Redzoning : Off Used : 120128 SlabSiz: 4096 Partial: 17 Poisoning : Off Loss : 19136 Loss : 0 CpuSlab: 2 Tracking : Off Lalig: 0 Align : 64 Objects: 64 Tracing : Off Lpadd: 0 kmem_cache_node has no kmem_cache operations kmem_cache_node: Kernel object allocation ----------------------------------------------------------------------- No Data kmem_cache_node: Kernel object freeing ------------------------------------------------------------------------ No Data NUMA nodes : 0 --------------------------- All slabs 34 Partial slabs 17 CPU slabs 2 Objects 1.8K Partial objects 789 Total objects 2.1K Tobin C. Harding (2): tools: vm: slabinfo: Replace tabs with spaces tools: vm: slabinfo: Add numa information for objects tools/vm/slabinfo.c | 69 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 6 deletions(-) -- 2.17.1