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 889E5C4332F for ; Thu, 14 Dec 2023 20:22:10 +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=YickmlASzMN0+CjTXLThRfKPgbgyVqcflPzQs3y4MnU=; b=xlJbSKDpTnlgOF RLoOxC7eOlRA+gEVrBVPLBTRwUhOqgjvWQ+WSPZ9H0J8Awv1AMn35R8hqs2pPJLW1FrjNqgIgUXq/ Eb9KR0dNaWccfTaXJ2t/J0/qplrAE1mGSfRRI9Z99dG7oghU7KIqAIau/wSaQrnYM4h4Du2T3tEcz GdFqSuMxoGcWCLp5h8wsjtEInPJVW4MMOl2aMZkiMCrSRWoobECXmqZJ7FktUSdFpXkDH3l0yL04K wEs/IxpYlboo7goTEWo+VH4GrN1c+KeHJWcuROEnL+OKDvElH3Nz1RwkspRlkiAN0hXpY7whogppd mYkLCSGIUocMwRUSbD7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDsDE-001DP7-0n; Thu, 14 Dec 2023 20:21:40 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDsDB-001DOm-2B for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 20:21:38 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5e2cfece112so21246407b3.2 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=lists.infradead.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=SXqIm4Vwt1NHz3YsSORS5eN2LZesLVtRZfqK4+3I9mQNdGsB39AigGVu9uFO63cU5F KLf24ZW0pVRxCCSkoYe0klRh2oDLYh8bu+FCJHDQR2hk9sTe0ZNG/XQKZKTZ9srv+UvE kj7tYLOU0/2+MTGm7jroaRLn8s7zbbnOPrYUT0flkdtYUrgGny/bCzDe3h8IIxWHmMZh OswoC7ocgoDYidImuM67ZsqkA/JQeyuNW16pyUqWo6iRJ0PK2tH71LjhTg2DBHRxDIMu 2Sd129C+92iBmPx5P8afo6MVc/eZo8QOlBnngY/XfXvBtP/1TydZ2NpW0PIroeH0THBG BbkA== 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=lrlyqXec7W47b8tm47zMHWWsCUVeNuWy9Z5rqTAirdV4dgHXG9ueAqcrDWdTn3/Ff7 +Ildl4ECmmvxpPz12G05Pfxa51Gsn/AAzDjf9tUKWCI1J6MKtkDLCZOQjs8vu4Rp2Uqk O62X2lopipLfJf/l5tB4on5u7AGWuQ7XoE3bpsi0lfn7vMm8Y/jxkjz/0Qps2+5fy2J3 pj5cfaMzlE3OmhZ/4gEVS80So86CPN9TPDa7sW7oCwr7Q2DKSEn8whhqDaVIB3QNmu16 OjhJPJIsQRBcPiRamf3ke+xu+i1RkwFrcGLonmLjAev8tbHBolCVzo9y1BDTh4cUqyoP 5UZA== X-Gm-Message-State: AOJu0YzEUynuVh1jqJaCoD9zKbUVm/URiQSorHiL9GetmkJN9S152KWG FwPQ/Ca5yzL1qdCGE16ukqTeXpYVS/A= X-Google-Smtp-Source: AGHT+IH6MVDnIfZpDTYJc+kzuqNRej0Kpgze/9LKxdZYLtUlmHEhTb2/k7vIFa/q+pFVHL+MlHqWpA== 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231214110639.2294687-8-glider@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_122137_738485_1A1D1408 X-CRM114-Status: GOOD ( 12.23 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel