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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 339C9C4332F for ; Tue, 12 Dec 2023 17:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=90sZMLAG2X4m3pKNSrWMVmS5Fz2IhfLy6E4wnOPcxwM=; b=XnnC3XjuvWuCEQ jaP/r97KNFgE6KK6E/+UOlixEcC39TY7Y5sFk/EXGOqghbUUsi0QVsMNMEK8UBNj6o6d20EpbnHht Iz7eMKGZ1KFxwvRFLisk7UH9PuEI+0SKEym8X6j9HNNeeOVJn/lONP/4/gXWxSRFksylRj+ClrRUt JKpIQmRIXOTg1TLhKVTFaxiXRD8LXRgqm41I7S8HpFWuUZGA2tVMMNrFNWUViZeShK968rlMkup3P pmXJ/M9qENQSDbm/G0+MUnrRgVMdu0qWvvvqzkNV6wVpSOcRBIDkfwY1J2z5xTiMt3dSeVIUWezww 1zQmDEvhsIwKmDr5js9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rD6Op-00CMCI-2q; Tue, 12 Dec 2023 17:18:27 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rD6Om-00CMAy-28 for linux-arm-kernel@lists.infradead.org; Tue, 12 Dec 2023 17:18:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 8AA98CE1B22; Tue, 12 Dec 2023 17:18:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 426EBC433C8; Tue, 12 Dec 2023 17:18:19 +0000 (UTC) Date: Tue, 12 Dec 2023 17:18:17 +0000 From: Catalin Marinas To: Alexander Potapenko Cc: will@kernel.org, pcc@google.com, andreyknvl@gmail.com, andriy.shevchenko@linux.intel.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org Subject: Re: [PATCH v9 4/4] arm64: mte: implement CONFIG_ARM64_MTE_SWAP_STATS Message-ID: References: <20231113105234.32058-1-glider@google.com> <20231113105234.32058-5-glider@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231113105234.32058-5-glider@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231212_091824_927971_9A635D78 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 13, 2023 at 11:52:33AM +0100, Alexander Potapenko wrote: > Provide a config to collect the usage statistics for ARM MTE tag > compression. This patch introduces allocation/deallocation counters > for buffers that were stored uncompressed (and thus occupy 128 bytes of > heap plus the Xarray overhead to store a pointer) and those that were > compressed into 8-byte pointers (effectively using 0 bytes of heap in > addition to the Xarray overhead). > > The counters are exposed to the userspace via > /sys/kernel/debug/mteswap/stats: > > # cat /sys/kernel/debug/mteswap/stats > 8 bytes: 102496 allocations, 67302 deallocations > 128 bytes: 212234 allocations, 178278 deallocations > uncompressed tag storage size: 8851200 > compressed tag storage size: 4346368 > > Suggested-by: Yury Norov > Signed-off-by: Alexander Potapenko Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel