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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54CEDC48BC3 for ; Wed, 14 Feb 2024 15:02:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C6ABA8D0012; Wed, 14 Feb 2024 10:02:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C1A8A8D000E; Wed, 14 Feb 2024 10:02:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ABB478D0012; Wed, 14 Feb 2024 10:02:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9B6898D000E for ; Wed, 14 Feb 2024 10:02:08 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0FFC4C0F1F for ; Wed, 14 Feb 2024 15:02:06 +0000 (UTC) X-FDA: 81790724652.13.3C33295 Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) by imf28.hostedemail.com (Postfix) with ESMTP id 8B1E6C0012 for ; Wed, 14 Feb 2024 15:01:28 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ntCXoZ0V; spf=pass (imf28.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.176 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707922889; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t/AETcYHznmpv4/j2syV358dOWN8/yUI1GROKTci8BI=; b=OKyUyZPlHUcVJS9JJVXEkBtGvvYzb/0UPDhkPid0knuCLgCoO94H20A5zO6xRl7cFTMtQA yyPfdXuMFkZTngGsW/tNHiLdyM8nmf19RU7/56lNdlfYxJTvqITdBzwFfIDKJ2uH0YXTpZ yxBFeqro2Dq3iEPK+lUZcqzfzkG+05I= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707922889; a=rsa-sha256; cv=none; b=oTtsDUxFxlLNfVXJnv2khA2zcS13LwQ+OCoxkw7zDvvAjrpiNM928vTprjCumDp9+d7wef 0PPn9ss6+wPhQ4lTRmYCaOImoLf02/IxMh99erQxK3njleLtfE9AX/iwRt+2mlD8bORRkc c6mUS+KXLPve5d5N/t8Q506hYQSTKH8= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ntCXoZ0V; spf=pass (imf28.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.176 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=linux.dev Date: Wed, 14 Feb 2024 10:01:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707922886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t/AETcYHznmpv4/j2syV358dOWN8/yUI1GROKTci8BI=; b=ntCXoZ0VMMCAIYtsPiibjtpORudbEFoAtU1qYcguvGF7mSfGX7qoRUBfyl4bB4idy/W63v fvLCK5XGJcO/TsFo6VG2fL+RXP2HusW2uO949y7vUaBPjM7wvWHNvrysfaEyXdkkF/pz8M wHqh5GWyZyyGIKiP8Dc8AerWtRI9mCY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Michal Hocko Cc: Johannes Weiner , Suren Baghdasaryan , akpm@linux-foundation.org, vbabka@suse.cz, 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, rostedt@goodmis.org, 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 00/35] Memory allocation profiling Message-ID: References: <20240212213922.783301-1-surenb@google.com> <20240214062020.GA989328@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 8B1E6C0012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t ejCPOa2M+pe42p5cyxD9ny9AQg4MMW1TMOZ7F5EcsbPXiPqQB0zyntN2QsBAsI3yYGNjMSm6Jljnvq9/xIa5QcqUn83JwuJ/f4w0Q2PE6bh5rlZv6vgmwAvpxadkbdXCnzYHD7LSlapf0X5Q2HS/OEHE0Ew== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Wed, Feb 14, 2024 at 03:46:33PM +0100, Michal Hocko wrote: > On Wed 14-02-24 01:20:20, Johannes Weiner wrote: > [...] > > I agree we should discuss how the annotations are implemented on a > > technical basis, but my take is that we need something like this. > > I do not think there is any disagreement on usefulness of a better > memory allocation tracking. At least for me the primary problem is the > implementation. At LFSMM last year we have heard that existing tracing > infrastructure hasn't really been explored much. Cover letter doesn't > really talk much about those alternatives so it is really hard to > evaluate whether the proposed solution is indeed our best way to > approach this. Michal, we covered this before. To do this with tracing you'd have to build up data structures separately, in userspace, that would mirror the allocator's data structures; you would have to track every single allocation so that you could match up the free event to the place it was allocated. Even if it could be built, which I doubt, it'd be completely non viable because the performance would be terrible. Like I said, we covered all this before; if you're going to spend so much time on these threads you really should be making a better attempt at keeping up with what's been talked about.