Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4789359rdb; Tue, 12 Dec 2023 09:18:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvT52zypCIzRrWWG3xaYYVG+5Vuc1UUY+JGyiCXDWswnAMkYBCuMGrVgCNnxXoLcnmo5uo X-Received: by 2002:a17:90b:2342:b0:286:b41d:8d19 with SMTP id ms2-20020a17090b234200b00286b41d8d19mr3384091pjb.9.1702401518547; Tue, 12 Dec 2023 09:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401518; cv=none; d=google.com; s=arc-20160816; b=K8oixoEzfvXzVGY0haR9DCTkNPAbPWH2HNdkBQ9n9/Pc5+/8lVFIrwBX26eRf9Jfi3 fgVHBKFXWSP+gGixnR2XOmANJJMTQgn693HgnPPnoV39rxTbOeCdkmxjY0oJJN1xL+ip msKMisbHDeO2VsdcrjD7Gkx3ik+x6GzNl3lOLHg7VYnBQQmY+mpki/yZd0gn17FfMKbt +4GoSwTSm+p1i6uK6pfANhCeyJIVPj+tGSxger1jZlclNWkACi2ZyKUFTyAeurgEwVHH eO6+D1KO5/0sy7lXSMtAGTK2mb2l8nQH86B6DYFyOmjIl75b468/dako9f7cusdNspgG 4JNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SmZiAzdNEistdCq6gxAxoDaA+4m3HEpbwRJDyjCsEDw=; fh=0JQmW7xdAE/XjsRtMti+IKQwjHH3yd/qowBnwzDBl7U=; b=LI/lNBWfueB+0dacTeNYoSxfNVvzt+L8B3PJAR4/oFzBzKWljg4pwkzgSx1Z9r/TLP MB1N5hRHQhUkR65h7LKD7+IXHc/WRROB/8V3uUn351PjeGEJsD9jpkWpIHw7fGJSG7M7 23P6BaLwAHCS26dkDgyoH+b/+OgKwFuVGS5ssv9wzCmjGZZAqgwKv1DTpyCKCDn4hgFJ twmLOtSSkQNWErgqYmAUMVjsHx25PaDnPuzs3e2TVIZ24IiZp7Evi2smD5NDpFi/RSb+ PdqCQHJRhRgzd25C8SkHkj546GV7VMiGAjqvmKQkKHXtBQ7HPB2l6mES5WY+QGrhgBKE zFfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bj19-20020a17090b089300b002869ff9ab7fsi8107877pjb.27.2023.12.12.09.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:18:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id ED3CD80A5654; Tue, 12 Dec 2023 09:18:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346582AbjLLRSR (ORCPT + 99 others); Tue, 12 Dec 2023 12:18:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232817AbjLLRSP (ORCPT ); Tue, 12 Dec 2023 12:18:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F5A99 for ; Tue, 12 Dec 2023 09:18:22 -0800 (PST) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231113105234.32058-5-glider@google.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:18:36 -0800 (PST) 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