Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp773812rdb; Thu, 15 Feb 2024 15:26:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlxhD2ZTKIdmTiCtlrSfl6T4fYLBZlQZnPTgsdKizJY30x8I2pcR6jIgGxVNmsuXxKvhnQxJ6vA0prraMGZe1cQ77kNkJW5pZwwmPU8w== X-Google-Smtp-Source: AGHT+IG+nmjT78gn0T/iLhX1lhyZYMDxSX3rwXqGxttpL1DunejhjlQ31Bv8ftransgiCvjyMZW7 X-Received: by 2002:a17:90a:fa97:b0:297:803:924a with SMTP id cu23-20020a17090afa9700b002970803924amr3438410pjb.23.1708039614238; Thu, 15 Feb 2024 15:26:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708039614; cv=pass; d=google.com; s=arc-20160816; b=g8H1j1ljJCuDkqmVVroiurZmeDOQW/EiYNjdLJffPSVn5IR2b3iyneeF65NaFViUEN GMj/sm8anTNa8h7xi8xgi5DtMgYyqvDgmznzG3Hm2Xwh2/5dE/rW/3jKM84mrla4Xxnp zUKpHT7Aac7sA2soMyP6q5SYOvLF2YCr68F41TvJQt54BuzqZHP1qv0fDE2XDVseIoa0 Lc12znsckY9mjwKBAmYdcgz5k/9K6bLDAuLTNxEzHVx4wZ6JNPhP7wrRzX4a1oCp3fcE ZC3pzfM4Zio9EtoXQoZ85OA6iVN/fcIVFJW/2SJohDx7G2wAY/hzVz/x7b/PUA/2pI8P D6dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=Qp6dBo8TIOWe+z2EYinfAxQCNXTbCZlTX6RUIQ/0wW8=; fh=yAsR8mz6OHt7FqUIcMxTq2xSLRkYQrfOXi2SdkYqlko=; b=QeK/KoCAnbGqF9zyDnb4KxlawJS6k++93sOpiGZjfB2Y4nTPvx+Vl0AFRtl7sxJ0PI 7Q3XpyvCSio/7BZkEuz7qy0GbfY2xPpSCkxFBECiqJ6ECdKxO+NhJdID3VYzyqrsZV+3 kiA1YX8ap07umHvrbaGOd4IIOYp8rTA5fdlyekbaI2S1V95cBViCVPK7cwoNjxgrimhA ieDN/Qpf6fvsX14smsFQMtS/SvAVz5dF/HJKe6YYDw74Yhi2OY3P3BOp1dMtYhWvPns0 DJKP5F3rA9NjOxQqDDws8MdxuS7YfC7QU+4ayteAlzoQcwGdRzUeKUOYn2OMLXLbwJZI fkYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67824-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67824-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lb18-20020a17090b4a5200b00298eaf275casi1983916pjb.145.2024.02.15.15.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 15:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67824-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67824-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67824-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8688AB242D7 for ; Thu, 15 Feb 2024 23:20:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DC8914600F; Thu, 15 Feb 2024 23:15:23 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F824145B3E; Thu, 15 Feb 2024 23:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708038922; cv=none; b=M1szX93WIN9XSIq+cT9TF6Tu4IBW4n2DQcHQUCToeYYXGBUIYWl9kl6qR7Koc42uc7UZlkgvSYNvCqY4nXjGq6nO8K1l9aWOWVa9gK+nKsen/L3xAvC0h9x3XFARRLUSVt75u2zmog+y5hsNaO+5vJOhAtGNB3JRCv3NWkV+nos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708038922; c=relaxed/simple; bh=ip/9Kg1Z3F2WBU1bYH9SJsjerMjosMs2osrTFKWhflQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Hk/HhlKtnj3ZuGyDMIV704/+p2OzUEXh5Q/+hFEyfqbKjZ96RfJsJcWJBgOrEyHBrtjUi1g3O8JoNp1FJLaEl5aKfn7v8evN/tl72CIRBcczA83PUiz+rCekZWtLRIN+OYlVUQcCJeBPxHgRjDoCOzVfYwkngHyT/DLMWhfYvH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97C9DC433C7; Thu, 15 Feb 2024 23:15:14 +0000 (UTC) Date: Thu, 15 Feb 2024 18:16:48 -0500 From: Steven Rostedt To: Kent Overstreet Cc: Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , akpm@linux-foundation.org, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH v3 31/35] lib: add memory allocations report in show_mem() Message-ID: <20240215181648.67170ed5@gandalf.local.home> In-Reply-To: <20240215180742.34470209@gandalf.local.home> References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-32-surenb@google.com> <320cd134-b767-4f29-869b-d219793ba8a1@suse.cz> <20240215180742.34470209@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Thu, 15 Feb 2024 18:07:42 -0500 Steven Rostedt wrote: > text data bss dec hex filename > 29161847 18352730 5619716 53134293 32ac3d5 vmlinux.orig > 29162286 18382638 5595140 53140064 32ada60 vmlinux.memtag-off (+5771) > 29230868 18887662 5275652 53394182 32ebb06 vmlinux.memtag (+259889) > 29230746 18887662 5275652 53394060 32eba8c vmlinux.memtag-default-on (+259767) dropped? > 29276214 18946374 5177348 53399936 32ed180 vmlinux.memtag-debug (+265643) If you plan on running this in production, and this increases the size of the text by 68k, have you measured the I$ pressure that this may induce? That is, what is the full overhead of having this enabled, as it could cause more instruction cache misses? I wonder if there has been measurements of it off. That is, having this configured in but default off still increases the text size by 68k. That can't be good on the instruction cache. -- Steve