Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1237481rwr; Wed, 3 May 2023 12:03:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WUmKCEpDbAYfWUWPVIcHX6UfrDVEbAkrmGYQUF937XX3YbO6YRF7sIiAjcsTsv0jdjre9 X-Received: by 2002:a05:6a20:8e19:b0:e8:d218:739f with SMTP id y25-20020a056a208e1900b000e8d218739fmr3148892pzj.21.1683140636768; Wed, 03 May 2023 12:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683140636; cv=none; d=google.com; s=arc-20160816; b=xjxOzSuYc0SIiZHZTtj2KMVjX1t0TZcHeaKk1+/wv5NiogfVRF2Yg9Ubqq/fxC2fVu sxSiUDbYmfff2ArK7fNjkW9RYQkkjQK4dmHNBIM6PeRDVSUo8B/FDRoYKe9QV/Mua+64 nAJFw4EEfyDLik5HCoVhm9kY2sHlLFtWSlnTpG4Q+0E9NhrtXkawnxKWZs0A0kCYoS58 +5QE0v8DwyBImV8mh6c2k/EfatTHCtbuk7t+hPQ7eCXZKiqbnn1Zq2dA5huo6Lh31dQc zIWoQbOa8k4A5XsJHn8OmoDRbwy0nBXlWXK+eaxRB3gZjOj17+pB0iXKNoG4vD981TNb oFYQ== 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:sender:dkim-signature; bh=vMlAqtjRc2HuzX77sJKufpwTYm/Gq3h8+fD7OUvgqfE=; b=JUYpgzu4cqgLGAP0OGc9Z8+lEBdXQmQBjwYJ2/MRmEmweB3bv49pOCBCIdQF2VIDd3 KnKu/7WUt/r8XX7tVQ6x6WEV0WEyD+fXNkZdm2ZDyLYky/1JLT2dIBvYkCFVa1huvw4X 1WBZ1DycyPvbbb2dMEB0c5UEi1mFKQxAFMNu3IryzwgIcrrb5Y8iTOs0stQ22YeCsMD3 00Ob3aQpemHWVDtfKuQiwlIuQDf9uoCcvN0E6ozz29iClHL2CHC287Rgw23VANyxekqz TJ21kxr4i4TfrIGf6Qm+QAkZoGdoH0/XuA7WtIEU8JpVWq1j+/03FRnJHNyS64FFYYaj K9IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AAvxk54Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a6560d2000000b0050c10cfd6f8si33263803pgv.198.2023.05.03.12.03.42; Wed, 03 May 2023 12:03:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AAvxk54Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbjECS64 (ORCPT + 99 others); Wed, 3 May 2023 14:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjECS6z (ORCPT ); Wed, 3 May 2023 14:58:55 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4271572A5; Wed, 3 May 2023 11:58:54 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64115eef620so7164053b3a.1; Wed, 03 May 2023 11:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683140334; x=1685732334; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=vMlAqtjRc2HuzX77sJKufpwTYm/Gq3h8+fD7OUvgqfE=; b=AAvxk54YlMnkI7FdWDgkmXppZ5N5YVAtZzB/uFzgetK350E1VsosLNsIn+t9yAmlyz Mpf/EdDThAl6AdsQ4NqZZ4WQmsihQ4PIOjP2ktSZnRqbu/hpU+fSBV+6Seq32dABAuoB fgBMvXiDGIWraIMuHQyLJ8k8C2Rfu3BrjRS/alNIzOPn/3Xdw2WUHmjkDBEutrfMrPpb QTijZH34gDsEJTP9EXOMMbAzxdlErf6OrxB7h8VV2kzs6tN2Aq3j/W560a3R8Pg4/lCz FYHP8xcU1EYp/9E+JwiaUk9zf6GvPs+LS2bU4OlgAsosubDIcUNZjh57x1aZiOnb8NOJ sALg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683140334; x=1685732334; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vMlAqtjRc2HuzX77sJKufpwTYm/Gq3h8+fD7OUvgqfE=; b=Pv7EcBcdiwLQETD5ny8wnpO75RrF7iKml8dFvGHoMoc7fyYCmFFFJPLnwbmEzfYmnT IwPj2rGw9c/rzp7iFyn9mgVoTwXqrzUKfvk9mLh6H5LYDTPqCYr5A16B2DtCEC5qTojp N53/0YK2GEDDsNCTX6Va2zc8WDyJmg8oa+FreOV4u8nT5CZKeA9DAYKW0nARkiVkDVLP LlHSzsrgbPZorIgX3q8Xsxu0BCfA8JjvIYlKxqhQFH5IhW/vq8+U+COsvayTQRxEc+Pi Oi/C3q1aFfydvTdD6SaYBll5q4cA+bY0WtT++2aUIK00dd1l6jHzlgGfwmED2w7rCutJ Z4MQ== X-Gm-Message-State: AC+VfDz6fPloNlz9upWGBxDLYfF3h6ymmZ4QMvw6aLEXYuw75Sf3JnIZ JrPFUnvQ94GkZp9PBXvx54E= X-Received: by 2002:a17:903:2345:b0:1a9:6a10:70e9 with SMTP id c5-20020a170903234500b001a96a1070e9mr878641plh.33.1683140333441; Wed, 03 May 2023 11:58:53 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:6454]) by smtp.gmail.com with ESMTPSA id 11-20020a170902e9cb00b001aaf92130afsm5726253plk.116.2023.05.03.11.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 11:58:53 -0700 (PDT) Sender: Tejun Heo Date: Wed, 3 May 2023 08:58:51 -1000 From: Tejun Heo To: Kent Overstreet Cc: Johannes Weiner , Michal Hocko , 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, ldufour@linux.ibm.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, 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, 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, Alexei Starovoitov , Andrii Nakryiko Subject: Re: [PATCH 00/40] Memory allocation profiling Message-ID: References: <20230501165450.15352-1-surenb@google.com> <20230503180726.GA196054@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 03, 2023 at 02:56:44PM -0400, Kent Overstreet wrote: > On Wed, May 03, 2023 at 08:40:07AM -1000, Tejun Heo wrote: > > > Yeah, easy / default visibility argument does make sense to me. > > > > So, a bit of addition here. If this is the thrust, the debugfs part seems > > rather redundant, right? That's trivially obtainable with tracing / bpf and > > in a more flexible and performant manner. Also, are we happy with recording > > just single depth for persistent tracking? > > Not sure what you're envisioning? > > I'd consider the debugfs interface pretty integral; it's much more > discoverable for users, and it's hardly any code out of the whole > patchset. You can do the same thing with a bpftrace one liner tho. That's rather difficult to beat. Thanks. -- tejun