Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6246877rdb; Thu, 14 Dec 2023 12:21:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiBsxdcfntVJ+8ZZLw7tKAk+zjMDDLYzXuFdnuVmy7uRfIiZM5S7fDQMqdaEH05VY4UrW5 X-Received: by 2002:a17:906:190e:b0:a19:a19b:78d1 with SMTP id a14-20020a170906190e00b00a19a19b78d1mr5315855eje.148.1702585304439; Thu, 14 Dec 2023 12:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702585304; cv=none; d=google.com; s=arc-20160816; b=z9Y7+Es+BN2Xjwry0qkeEjauWH67hgl4+Mw4y8UvYSp0ouTn5F+ubu5i4hmBYWhmEU N8dapCFcPuZj2+MhLBTldzmimTYDRxT7C1mG5MNNjz7sB4Q80TYwkwkcbqGUlDYFLN+j oegeRluCM9Kr99hS10kZ9a7wh4VGqoAxhC9ZPyFACC6BORjecL01huq97SeVLAJdyaAE G0lK2mbRyR46pfX/RQA6CgbOEulBgobgsLN3sxNKSUpZ7+yN8Y1auPftU1MUHFeea1PW q085Quukd9Kx/hGe6iXUl5MqH1Ki2wCaMDTnikkcppvqYHryGzt1loKGLIZJ62EWSq9Q XGBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0wx1hqqMyfv3pgRgZ5ojp2Fytlta9hGiEwGZy5N6JD4=; fh=ol76viA0RHXQgfGdxvILE8kHY71cr5Q20cOblM7quc4=; b=WszX/dZjOdliUh1QOLS1Ac5HCJd/J1H5sOwLQaKdBIXS3RkydUL31pBBVTbf7MZswp 5AnsdnYKgpng5YYUXY8HLGt/ujGdw6VInv/ihDE0u8+FAakpHoZwDDjpCW6lEB2mMOtl JFOhRdPvj7SYw97wQvlUUjfWmKf5M+5kjASc/5ZGk0Y4JCFot4Tp4mr7366H12VeISeE h/QW4ckvIk83hOGugxZX49EkEPXB7hC5s4pQn4WH7n5aSu+KBrLsU+Je2iDS4qdO0F0q 3ih9a7Vp45ccAWbf6eQN6x/dCQP5gyC8TMLdxVQmvhbZmf5yeQDT7delcAge/Is5DWC0 K+Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F8y+kedQ; spf=pass (google.com: domain of linux-kernel+bounces-61-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n21-20020a170906089500b00a2006e628c3si3267813eje.522.2023.12.14.12.21.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:21:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F8y+kedQ; spf=pass (google.com: domain of linux-kernel+bounces-61-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3669D1F2158C for ; Thu, 14 Dec 2023 20:21:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C7C36A32F; Thu, 14 Dec 2023 20:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F8y+kedQ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 991C468B99 for ; Thu, 14 Dec 2023 20:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5e36848f6c6so12555227b3.1 for ; Thu, 14 Dec 2023 12:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702585294; x=1703190094; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0wx1hqqMyfv3pgRgZ5ojp2Fytlta9hGiEwGZy5N6JD4=; b=F8y+kedQIPfWURjaDthTeivUxFN8aEh4B94LaJ3hBlMVz2YVp2/c1x3tE7AH76nMJb TlN+BaOxR1F1r/W/uQnWd5/9l5cXpBHo6nvUxGKwuwsxn9sADiGhG8fQFM3xWoDnfCJV cKgmVNHfz7UG3aucvTNW4D7re//ctnFktZ7n2GrsraxcuIOz8wL44vg1uC5lrXmeYSWq HObeTST3hSLd9xbQ2l6O027mTEaf/KtA8LH2TzwwuUZsVchM+Nmq1LsBMDxrQVwS+9K6 V9Svw5MXUBkL3Kf2tv8BmyhL9zYEC/WeQ+q5M5oJ7Hg6mCcaRpjfmFJlwZUYFy/jfDrR j39Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702585294; x=1703190094; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0wx1hqqMyfv3pgRgZ5ojp2Fytlta9hGiEwGZy5N6JD4=; b=fszNc5Mr6tUsPzgpAcsoTDzF7UELHw5Jqn2nrDU2iASOyQg2iriOle6rPXCUsMY4Zk S2XVResj85TgxIJ1nJF1iqYg3CmcZj1VDBIWY0QgAddVflm229OD0SOVhPOJ5uzoTIqv Q9yE4ZpjgTJRPta/QYWY0XicjKOXUKE4MOZv4o/Ws51cY/J7OBwn0WUV9/5N1FpMfOH5 Y77KY2orK6JlQ6VugsIu5PucPiJO9/cP/aheaWSPMk9WTPLxsIG3fGFbIN66y5T6QhKb 4i94BiHmwcwVbCFPqe7NciTVZCI+S9ydpZr9EUI13TzNozcH49WUlO17GOa3Lyg+6tQu xfDA== X-Gm-Message-State: AOJu0Yw5juBkkZ8NQuvclN++4djgQ6HegBZRRcmFtMcmUh9wGp/c3Si4 9y3+K2XleDRFRdm+ukZOKrc= X-Received: by 2002:a0d:e68c:0:b0:5e3:4879:602a with SMTP id p134-20020a0de68c000000b005e34879602amr2164949ywe.88.1702585294417; Thu, 14 Dec 2023 12:21:34 -0800 (PST) Received: from localhost ([2601:344:8301:57f0:e177:373d:4717:ff6c]) by smtp.gmail.com with ESMTPSA id cg4-20020a05690c0a0400b005d39efe78f4sm2763406ywb.50.2023.12.14.12.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:21:34 -0800 (PST) Date: Thu, 14 Dec 2023 12:21:33 -0800 From: Yury Norov To: Alexander Potapenko Cc: catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, andriy.shevchenko@linux.intel.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, 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 v10-mte 7/7] arm64: mte: implement CONFIG_ARM64_MTE_SWAP_STATS Message-ID: References: <20231214110639.2294687-1-glider@google.com> <20231214110639.2294687-8-glider@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214110639.2294687-8-glider@google.com> On Thu, Dec 14, 2023 at 12:06:39PM +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 Reviewed-by: Yury Norov