Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp471382rwr; Wed, 3 May 2023 01:07:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qrzE73zZUwX9+gQ/ozJ6l7mFU9yECO/WfMwou9K2PvmAAYgDdGCuOE3cEfdrAO1iLQWTh X-Received: by 2002:a05:6a20:4291:b0:f3:e0fc:a654 with SMTP id o17-20020a056a20429100b000f3e0fca654mr24682067pzj.7.1683101268566; Wed, 03 May 2023 01:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683101268; cv=none; d=google.com; s=arc-20160816; b=icbAXU/641Ul0SNUYJaS/JpSgMG+dsH+QDNKr2onSaXSSDcXohcI7T9mxR1tnkPcJ7 e6QfHOVMSXzkiOjPG20IgYR8wcnvMQxn4wBNxXKGhtGYaC5kZfL3cXzN/INrKE9yDop+ UfK0x5bVXvkSIYjdubKAIF3j6grpYjMIFSoj4x1TIypXrFWfyxms0N0J1WCwb7MM2wV9 To2VAFPyVhCoRWpBZyzHQUuerKCBC44RuXOc56C+z4b3PNjhaMzIF6LAZY4p7Fs6RWFV u3RBtAJRwV/tMxJDyOuSHsozMlMSKcvdL9eqsoLXHhY7Ozm0Xcn1+4BkWGcLDfZrJgEX ac7A== 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:dkim-signature:date; bh=Af+2O/2Jo9IC9XECoO60Ibec+DnzA9yRBnuv4Bp8O9Y=; b=v8Ys11kC0MYty8+B4Z/Tv/a/MxRoDHH/RWh/hPOz3HSkBZoH5cylR+prvuD1MP7/Rs 3YlkVMwp51XSSkneqvbXUYBSX7F2GHntf4aZQocpj5tJ6zKfHUrxc5JdHMV36/XDdKao 3xtVQSNLz2VlSFSlpUWlMHc0putvAVWWARqK+xrFgYn6JCkaBLToINsbigxzpayCQRW/ RNG1BJL5CPa3lXy80sFYUuHZiirRXtM0W0C7UnPtMgR+Q21iExqUBojo60sG7BoooxaA sjkSUIS/EBHpSjgiahnBbdEKDrvr03msQ5Bvdu63c8pAU2AI+q1OVHnfPJbmlpqOwPFI s5qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rqHkCee1; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a63d550000000b00513a662096fsi32779907pgi.775.2023.05.03.01.07.34; Wed, 03 May 2023 01:07:48 -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=@linux.dev header.s=key1 header.b=rqHkCee1; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbjECIGs (ORCPT + 99 others); Wed, 3 May 2023 04:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjECIGp (ORCPT ); Wed, 3 May 2023 04:06:45 -0400 Received: from out-49.mta1.migadu.com (out-49.mta1.migadu.com [IPv6:2001:41d0:203:375::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C83198E for ; Wed, 3 May 2023 01:06:14 -0700 (PDT) Date: Wed, 3 May 2023 04:05:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1683101119; 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=Af+2O/2Jo9IC9XECoO60Ibec+DnzA9yRBnuv4Bp8O9Y=; b=rqHkCee1X71Oj3G6VysOrsK/rdJHy9B0yyXfZMJ4T4TWGYp3bKIJl27dUenlhtN0eAw3EY 9wtRJDXX0Vxp+Xc6ZM2YYwJwQELwnDdfgbU2buAGO1Vb841r/qxmb4h0I2pylWL1m2aZFQ DMBUFXd/kgyZZl04aMULTG8rjWs+sv0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Michal Hocko Cc: 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, 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, 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-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 09:51:49AM +0200, Michal Hocko wrote: > Your answers have shown your insight into tracing is very limited. I > have a clear recollection there were many suggestions on how to get what > you need and willingness to help out. Repeating your previous position > will not help much to be honest with you. Please enlighten us, oh wise one. > > > - It has been brought up that this is duplicating functionality already > > > available via existing tracing infrastructure. You should make it very > > > clear why that is not suitable for the job > > > > Tracing people _claimed_ this, but never demonstrated it. > > The burden is on you and Suren. You are proposing the implement an > alternative tracing infrastructure. No, we're still waiting on the tracing people to _demonstrate_, not claim, that this is at all possible in a comparable way with tracing. It's not on us to make your argument for you, and before making accusations about honesty you should try to be more honest yourself. The expectations you're trying to level have never been the norm in the kernel community, sorry. When there's a technical argument about the best way to do something, _code wins_ and we've got working code to do something that hasn't been possible previously. There's absolutely no rule that "tracing has to be the one and only tool for kernel visibility". I'm considering the tracing discussion closed until someone in the pro-tracing camp shows something new. > > > - We already have page_owner infrastructure that provides allocation > > > tracking data. Why it cannot be used/extended? > > > > Page owner is also very high overhead, > > Is there any data to prove that claim? I would be really surprised that > page_owner would give higher overhead than page tagging with profiling > enabled (there is an allocation for each allocation request!!!). We can > discuss the bare bone page tagging comparision to page_owner because of > the full stack unwinding but is that overhead really prohibitively costly? > Can we reduce that by trimming the unwinder information? Honestly, this isn't terribly relevant, because as noted before page owner is limited to just page allocations. > > > and the output is not very user > > friendly (tracking full call stack means many related overhead gets > > split, not generally what you want), and it doesn't cover slab. > > Is this something we cannot do anything about? Have you explored any > potential ways? > > > This tracks _all_ memory allocations - slab, page, vmalloc, percpu. Michel, the discussions with you seem to perpetually go in circles; it's clear you're negative on the patchset, you keep raising the same objections while refusing to concede a single point. I believe I've answered enough, so I'll leave off further discussions with you.