Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1638268rwr; Wed, 3 May 2023 19:26:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5TvmtSYoA/8BCQX+bSm/QCfOR2YLSplLjPy59K9mCXp1rXXsHGtBzfQ+IBuDli2FCMnM+I X-Received: by 2002:a17:902:e883:b0:1ab:a30:c89d with SMTP id w3-20020a170902e88300b001ab0a30c89dmr2593259plg.51.1683167209363; Wed, 03 May 2023 19:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683167209; cv=none; d=google.com; s=arc-20160816; b=YRuxALZ4El+lnJ4UeuaoZHPK4/ON+jwuYnwcbxT028UyWxX6QtQB8hMVPAsmTkw+JQ UsejNQtPXxD6C5I2cs7GZm7XhE375vIiBTezq5kCBLeL1Tok4FZ6qI4YsbaVgtMfttcI nWW6EpIjYCsxMQ8ahwy9ICqi5TRHLtDuU4XSg5V+WcQBzI84sG3hr2YEOtzqX/VRqdu8 JgxM36aqT0C3/Pf3BFEUr/h5lz7CSON2QMVhsE21cx8/6zuDw1SDk0MzQKm85tVVaSNw HRfPhi/tKTo9KVKIRy+S/lJNQTxY+jdl/jUXASZQ9LDsrKPQXU+zICY42FNeigbLjTNL ueJA== 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=xki9EImbF8EHplkOG7u13eoQc3pPoVT6i0i48IKNO48=; b=wXmGEnWk7qkBMxDaTQ4LWKxYWnCZa6aCUtnN3ZKe2Hwc9Hoz2HHcJqwRXdLfsLpMVV KrjAkAiC/o4Fg0HTegvl5P46pik5xdSS3ED3MzNGqFTnI0tFlf8IFoaKMT3Ox91YWMyQ oJYGaNVUIbuvLmL1VfBnmaX0Mi9Wvc4d0fFdzuKbCrGyDywVuyuhdHSN1Nxib+gRRMMh jcDoA73PA3bVOUKXFCCzyRpKo5diwQsOwDBPWjhb7nOZX1kHCOEuAOQvy2/WuI2Z7q13 fAd0Ch4W1BzM3yHp/XPFcDxPJ9tRdoMHj4C7l0YB0NZOv5K71Evz4lIedRUTgabnYzJA NXDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AVbZGT9K; 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 d9-20020a170903230900b001a63a2de59asi37617146plh.494.2023.05.03.19.26.34; Wed, 03 May 2023 19:26:49 -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=AVbZGT9K; 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 S229678AbjEDCQu (ORCPT + 99 others); Wed, 3 May 2023 22:16:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjEDCQs (ORCPT ); Wed, 3 May 2023 22:16:48 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB6851A5; Wed, 3 May 2023 19:16:47 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-24df4ecdb87so13048a91.0; Wed, 03 May 2023 19:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683166607; x=1685758607; 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=xki9EImbF8EHplkOG7u13eoQc3pPoVT6i0i48IKNO48=; b=AVbZGT9K0r89MqzrSpIR7uMQXdw8u/F4834X6xnRREOGxmDQ4D/A6MjHGUxFG3npis aSiP7azLezP1XiGgrGudWR33IUl22a/61L8gQoe/STrWaRoCtDxodSejGGl7LbFwoSoW y8er0cowxZ+SiTuo8NZyP0h49wpyK2kMLhUVxrO1AuEfSIV5AQV6s/WtZ233X+EY2wzS HnH2l/EQfk2fmkfN3WEcKcwTa+M18CB0b6bZWDe3dFh5+ms0vEqPkw0zF+C7i7OAyOn6 4mDKRPiK7AP3pPjuxFNw9ey2zSAa4AXCrWoax2bREtiC64a4zO5i43E6Ply2PNr5/uI6 ybJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683166607; x=1685758607; 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=xki9EImbF8EHplkOG7u13eoQc3pPoVT6i0i48IKNO48=; b=MM3dMURXSfcey280qVppIyEXYmxA2k1cqSaGUgC6OyY1mKYPyY1Rqwbl/5AMXA3F5+ L2KutqNafXDwxulqpMdhu5r2QRmGvFA0qYJV/EmAxCJcleGWVq1QaDOXzWJviEOpgU0f mPZabcKYZlSRDLrlaciFQN7RhvfwJ87yp1+nFHaP4TpDpur6QmNP9/qpAj1vjzefFbOo wxrjpgkBb0enqT98KbxuAXuaKH9ByBR/RScxprsNnwVduJzvCEufOtJa7MtHNI0eb5/A VrJhdjUF9q6LnwZiI14k8K0ki1XOKT5Q+8M3sI2PKZwj/JdbQ0xhMzAbfz8nsaIJ5iMR WoCA== X-Gm-Message-State: AC+VfDzlO5LO6efHztyzEliefkgZFQ96LwxpC8c/19Pdgb6SKlRnnXLX YIlukQVBpcjWV6KUYDRRKt8= X-Received: by 2002:a17:902:a60e:b0:1a9:2b7f:a594 with SMTP id u14-20020a170902a60e00b001a92b7fa594mr1984126plq.29.1683166606837; Wed, 03 May 2023 19:16:46 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:6454]) by smtp.gmail.com with ESMTPSA id jd20-20020a170903261400b001a682a195basm3871260plb.28.2023.05.03.19.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 19:16:46 -0700 (PDT) Sender: Tejun Heo Date: Wed, 3 May 2023 16:16:44 -1000 From: Tejun Heo To: Suren Baghdasaryan Cc: Kent Overstreet , Johannes Weiner , Michal Hocko , 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: <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 Hello, On Wed, May 03, 2023 at 01:08:40PM -0700, Suren Baghdasaryan wrote: > > Yeah, I was wondering whether it'd be useful to have that configurable so > > that it'd be possible for a user to say "I'm okay with the cost, please > > track more context per allocation". > > I assume by "more context per allocation" you mean for a specific > allocation, not for all allocations. > So, in a sense you are asking if the context capture feature can be > dropped from this series and implemented using some other means. Is > that right? Oh, no, what I meant was whether it'd make sense to allow enable richer tracking (e.g. record deeper into callstack) for all allocations. For targeted tracking, it seems that the kernel already has everything needed. But this is more of an idle thought and the immediate caller tracking is already a big improvement in terms of visibility, so no need to be hung up on this part of discussion at all. Thanks. -- tejun