Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp430307rwe; Thu, 1 Sep 2022 01:48:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR521CtZKi0pknrgDbMJsS3NYQ6klVvDwBtXurYPy5oDTz6WYnqiaB9NenA5g5nlboVqj8aE X-Received: by 2002:a05:6402:11c8:b0:440:6513:be2c with SMTP id j8-20020a05640211c800b004406513be2cmr27604283edw.45.1662022100998; Thu, 01 Sep 2022 01:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662022100; cv=none; d=google.com; s=arc-20160816; b=lv67afA3dbSzetiEG8KPlKJNpZGTcJdHsv0Vy1IgVXp005Z0foFc5PKerfCuiAyjZp sDlWyqdQv2tyD0wZ+dTNMCnmEy/8HYC0UWaoHD8DX2RLALzemfSKBJdgm/ukX7dbF1Vm 09D2SBy8dZB2xRBPClIjDNW1VADvmrv4YEaOIVBPGQPW8kX0TOQY+g5/UHqyfr2vnsX5 Yd5BblpgE8+6xayMilVnFFxDYdyUvgcm8BRj+SQhR2Gzo3JwXWJsnH/KDiNUA5K0shCM UcXGh78Cxt0t6JPgxy2OrE+2S87iOg/tS1R3RxHjh8Vao/wSNiMEW6pNHIHvBUVDv1Mn qd5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :organization:from:references:cc:to:content-language:user-agent :mime-version:date:message-id:dkim-signature; bh=fAYRQilXBeVPqddsxUYpdqrwWan1aH9ZFdN7uQibkcg=; b=fagYMUTZAIm8/ycWuvrCxP1CEUcUISjRIKcHNd6Npm9EOEOolLTSPcZTleOOkz/Bfb ZlhP56dnkrVV5sqhcZ32na4M7MCaMRoS23vK0Sw3zTNF0qljUmls6xs75Rfv55AdJsJb cngisTew11Ooilc0NzMArSx8NHuVToz+x+5kOw8Ix5EDvONJe6s9em1v3PDxunAX22Oq KFc1fMo7IO5nFsDMTQnOgb8vG8y1pyPS6vJZR0ilY/vjrvoPRvIO+UIIG0m6/XNk3tmJ +5XbmdyN43x/Zwfsxcen7VRaqGwuZKU9MA26POMqcN9Y02Kn1XIw4DlnN1t/R+e5L2RI A6KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dEXbCdf+; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056402164e00b00447e24d55eesi1139257edx.81.2022.09.01.01.47.54; Thu, 01 Sep 2022 01:48: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=@redhat.com header.s=mimecast20190719 header.b=dEXbCdf+; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233750AbiIAIFy (ORCPT + 99 others); Thu, 1 Sep 2022 04:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233298AbiIAIFZ (ORCPT ); Thu, 1 Sep 2022 04:05:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F4F232DA0 for ; Thu, 1 Sep 2022 01:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662019508; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fAYRQilXBeVPqddsxUYpdqrwWan1aH9ZFdN7uQibkcg=; b=dEXbCdf+pMIyvOhREVLL9uIrKVCRrLyDoHHoVmWuAFxXwPaY1LbZ9jaQFCAzpj6IdM03J6 ZfADA6Y1QpOvbOqpGpzd+NBYyzTD9cugJid0TqTsCc0iBGedtaWhjukmPtW0hfdYESot+z OYZUcCVfx6b4zkZZgdw1y8SL8KDftOA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-515-JH8el14WOl-HcmIFC1RM8w-1; Thu, 01 Sep 2022 04:05:07 -0400 X-MC-Unique: JH8el14WOl-HcmIFC1RM8w-1 Received: by mail-wr1-f69.google.com with SMTP id r20-20020adfb1d4000000b002258c581ba2so2843506wra.1 for ; Thu, 01 Sep 2022 01:05:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:organization:from :references:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc; bh=fAYRQilXBeVPqddsxUYpdqrwWan1aH9ZFdN7uQibkcg=; b=gdrIK7gl5U4A70ArwvXLWf1SrwyT5cnTyMlJxWGil7ly4sEKoh2XTzmpO3ZD/0MWk8 Ae8YejVy9Xyps1dbeHnRwzAeXyvnvop+hTCUX9sK+mclRM3nM6pApz6FXdMQpcZ3dPkW PQDNBO9JVsA8nK+T12KaC1IMfJ07quTfdkczd0e2ZM1IM+2zcVZTxivjaqtxZ3Tu1hQ6 jY2rjjshXpLzwHjkDDPeJYSKmJuQx8lbIpdBl0vvFYdUva+yyvSv4GQDqFaeFHc652Hw /+1D0a7Wjaw//oyjbBAEIqSvpfsoAfT3kji8E0Z0qpYwHZOPYo5jK0Ue2pvwr/PuPbUE cPbg== X-Gm-Message-State: ACgBeo2KQjgRP6MkanQIYrLe65NjInv7FZzg7baH7QPV/DdQtp6Fo/y9 /VU4zXmjl0uifQ3xStHMGpPocyzSsOMY70mTk7Wjo2c/JXgKhLHuR8rFGgc/dyGCgyNIZfMZkdA yVwX+lMeJss8585VVUonAtxgB X-Received: by 2002:a05:6000:1e02:b0:226:f21c:e192 with SMTP id bj2-20020a0560001e0200b00226f21ce192mr2042377wrb.7.1662019506251; Thu, 01 Sep 2022 01:05:06 -0700 (PDT) X-Received: by 2002:a05:6000:1e02:b0:226:f21c:e192 with SMTP id bj2-20020a0560001e0200b00226f21ce192mr2042345wrb.7.1662019505980; Thu, 01 Sep 2022 01:05:05 -0700 (PDT) Received: from ?IPV6:2003:cb:c707:9e00:fec0:7e96:15cb:742? (p200300cbc7079e00fec07e9615cb0742.dip0.t-ipconnect.de. [2003:cb:c707:9e00:fec0:7e96:15cb:742]) by smtp.gmail.com with ESMTPSA id b8-20020adff908000000b00223a50b1be8sm14023827wrr.50.2022.09.01.01.05.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 01:05:05 -0700 (PDT) Message-ID: <404e947a-e1b2-0fae-8b4f-6f2e3ba6328d@redhat.com> Date: Thu, 1 Sep 2022 10:05:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: Kent Overstreet , Michal Hocko Cc: Mel Gorman , Peter Zijlstra , Suren Baghdasaryan , akpm@linux-foundation.org, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, void@manifault.com, juri.lelli@redhat.com, ldufour@linux.ibm.com, peterx@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, changbin.du@intel.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, arnd@arndb.de, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-mm@kvack.org, iommu@lists.linux.dev, kasan-dev@googlegroups.com, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220830214919.53220-1-surenb@google.com> <20220831084230.3ti3vitrzhzsu3fs@moria.home.lan> <20220831101948.f3etturccmp5ovkl@suse.de> <20220831190154.qdlsxfamans3ya5j@moria.home.lan> From: David Hildenbrand Organization: Red Hat Subject: Re: [RFC PATCH 00/30] Code tagging framework and applications In-Reply-To: <20220831190154.qdlsxfamans3ya5j@moria.home.lan> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 31.08.22 21:01, Kent Overstreet wrote: > On Wed, Aug 31, 2022 at 12:47:32PM +0200, Michal Hocko wrote: >> On Wed 31-08-22 11:19:48, Mel Gorman wrote: >>> Whatever asking for an explanation as to why equivalent functionality >>> cannot not be created from ftrace/kprobe/eBPF/whatever is reasonable. >> >> Fully agreed and this is especially true for a change this size >> 77 files changed, 3406 insertions(+), 703 deletions(-) > > In the case of memory allocation accounting, you flat cannot do this with ftrace > - you could maybe do a janky version that isn't fully accurate, much slower, > more complicated for the developer to understand and debug and more complicated > for the end user. > > But please, I invite anyone who's actually been doing this with ftrace to > demonstrate otherwise. > > Ftrace just isn't the right tool for the job here - we're talking about adding > per callsite accounting to some of the fastest fast paths in the kernel. > > And the size of the changes for memory allocation accounting are much more > reasonable: > 33 files changed, 623 insertions(+), 99 deletions(-) > > The code tagging library should exist anyways, it's been open coded half a dozen > times in the kernel already. Hi Kent, independent of the other discussions, if it's open coded already, does it make sense to factor that already-open-coded part out independently of the remainder of the full series here? [I didn't immediately spot if this series also attempts already to replace that open-coded part] -- Thanks, David / dhildenb