Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1203061rwr; Wed, 3 May 2023 11:29:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MghHw5CsTVfKAE5nsVAZDztcokSLs6MMGMhYul0CMQ84L959PAQBqFaM8ZPxZOXFs5wxO X-Received: by 2002:a05:6a20:7351:b0:f0:1b0b:acf7 with SMTP id v17-20020a056a20735100b000f01b0bacf7mr29611926pzc.2.1683138560981; Wed, 03 May 2023 11:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683138560; cv=none; d=google.com; s=arc-20160816; b=s1D0U2WECgIrdeWCqs/1CASEU6L19V5qKK2aVmhD3/sCd93K8tZa3hzIIcRVtlGt18 zXF0A6TjVHr/6OxI04D7JEMFnsh9rlUXo5JcVfe9kc3ms79a315IQ+ZiTRrn5yfqHOyE GKJAnOkPNhx8er+XAqfxjJq2HDDZFAfzbg8nnykBiy++Tm2o9rj/tf8hMA+0yp7hglbE WkovaOLKqmreXu5B6A2MpGXQRPP+huQDhdS7WV3ELTwym1GM2v2kx77zCmLKbsX6no6L 8Q8lvKbi1YeuriGDvvyulLUEUMeXBYmoQIu+DD3jjb4owSpDXPlcfCUzoa3p9uHsyrwG iDdA== 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=HAaHXuopg20H7kDrY4ngFywwBOIWWtTHOJdh9Kk4ti8=; b=t0ZtGavX9mKFTjJa+t0mNYC+eCglF5xa2L8/mhtiOKXZscSdxzy6NqLsB1YQHZJbwJ bMaJaEwnB9MvUc7+zm/nUFlGKpw5X3KEO9qsFhTfLcc3CXZq6Hc/IlC2avRcfsYIq+OE tKciW6yahs7tPXm6Cptj6hNb+k1Ksj3ACANwDXLei7xNIUe1HpsBgn4baFKtZyMvABl2 7uq7vMPoze8sMvOpRg91WWUHHhT0N2/LaSovrbdm3IDeNBppwYQ5XRml/OeHUS2Jbxva fyrgqsl0RPtXuErtw96IVfmdOebfPLBCjTCoQWXZBCwZlbYxWPhPNqp6G8X40/TNTnFm NMDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aB33hUnZ; 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 o35-20020a634e63000000b0052038e68f10si33457191pgl.496.2023.05.03.11.29.06; Wed, 03 May 2023 11:29:20 -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=aB33hUnZ; 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 S229986AbjECSYL (ORCPT + 99 others); Wed, 3 May 2023 14:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjECSYJ (ORCPT ); Wed, 3 May 2023 14:24:09 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4539E4E; Wed, 3 May 2023 11:24:08 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-63b5c48ea09so4177652b3a.1; Wed, 03 May 2023 11:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683138248; x=1685730248; 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=HAaHXuopg20H7kDrY4ngFywwBOIWWtTHOJdh9Kk4ti8=; b=aB33hUnZnfHPZlWWtIoWkOnjjHisPYabb6S2uWTBQ8h3onE+k8lH1fwWNrmP3+C2Ae V9xYfHUAfa1MQR5bGsnZZI/T3EfAtEbMB7LJgZA6S5DUFfa3NoHlKU045MUvM3dSPcwJ O9knvzOZHAicKc7Q1U9prQ5QYBA7iuXytpIxNnq+/0XAMdmK6s/cx66iKx/7bF6fFMVt 9qvyKftWjNhL52s2yKIZb6lNZsILUvRPIJqsyqINqcoQfODMA3flr2J6lxf4LYnNwpJG HZgaEjG650bHbl05TVNvOqMZG18RkP9d2mBdzyVqPL8pMYePQurNMT2j8/2P3LbRKc10 RP1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683138248; x=1685730248; 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=HAaHXuopg20H7kDrY4ngFywwBOIWWtTHOJdh9Kk4ti8=; b=dBig4BFc2E4RL2+ra5xqZ04y409pmUod4DWpp+YWPLM9C/T7JRVNbkhvnCZm3Khgnn 0EPlRH++A5iCerMyRyGA7eDenS6IUYsHKUZRAgJDjy4HB1mrNOuM+MUV+D5kjUOKRYaY lOgtNaph4oJ1AbrB0haEonBEtE0i0ExnKSGeQ/2BkjcxeMFREThGkipX0CMAdKv6J72q 6w1v54g2/DhOGQk3VarXiV7QhdjgDe/z9ev026YoH3B+w3LmGlb+NVmlrA/X4yKmVb8C nCIbVvqnGhjgGbAA08DvJEt1RsHvex3eUfz6PwAu7FhtlWD2GyzFSAJFCB5yfr/8hHp0 YiBw== X-Gm-Message-State: AC+VfDy1wYoDmVfMf3/dA0Rco1QCHULNCCkYmGk1wJ5vlsLdcwBpfubv hNY0118zsH5r5j4u2pDCPEI= X-Received: by 2002:a05:6a20:1616:b0:f3:b764:5de3 with SMTP id l22-20020a056a20161600b000f3b7645de3mr27371733pzj.48.1683138248162; Wed, 03 May 2023 11:24:08 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:6454]) by smtp.gmail.com with ESMTPSA id c17-20020a056a000ad100b005ae02dc5b94sm23989633pfl.219.2023.05.03.11.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 11:24:07 -0700 (PDT) Sender: Tejun Heo Date: Wed, 3 May 2023 08:24:05 -1000 From: Tejun Heo To: Kent Overstreet Cc: Michal Hocko , Suren Baghdasaryan , akpm@linux-foundation.org, vbabka@suse.cz, 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, 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 Subject: Re: [PATCH 00/40] Memory allocation profiling Message-ID: References: <20230501165450.15352-1-surenb@google.com> 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:51:23PM -0400, Kent Overstreet wrote: > Do you have example output? Not right now. It's from many months ago. It's just a script I could find easily. > TBH I'm skeptical that it's even possible to do full memory allocation > profiling with tracing/bpf, due to recursive memory allocations and > needing an index of outstanding allcations. There are some issues e.g. w/ lossy updates which should be fixed from BPF side but we do run BPF on every single packet and IO on most of our machines, so basing this argument on whether tracking all memory allocations from BPF is possible is probably not a winning strategy for this proposal. Thanks. -- tejun