Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp512135rwn; Thu, 15 Sep 2022 02:09:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XZC/0DxFQufNlr3UZKeoUcDxKsxM9LAfh6WU6UhvqV4bX6XHsX/FsxPacYNUnTAkEA6GR X-Received: by 2002:a05:6a00:27a1:b0:548:ea2e:885c with SMTP id bd33-20020a056a0027a100b00548ea2e885cmr3908973pfb.55.1663232992685; Thu, 15 Sep 2022 02:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663232992; cv=none; d=google.com; s=arc-20160816; b=jNMZpvvm/2CvyqdLs8KP29mprelQP2TsBWz41PG9I+/ROXteydtkhllvSDeqrFeUEM qu+X6TMm8Tx2EGyBUfs7SHfmn70Wz4rVctiRfNsK+9YMvqL296q4+Pmd9sZDR49veIln BMzTtNYx4AozR/f6mfeCpSyaqA+OGkUlL8TYgBj28IQSu1TvmpV7BcmY7XCXd8504cxL 0jzZ+Yensvz8+bv5zRZHDK7nBH20FWtk0jv3Jdm7Bqsmy3n3xU/LKWXtozOUxj9UcrvZ r8heFvKz6i+CA+RX8TL/sWf5gDoQFxeYY2fOg/+asB25lyCdtKMUK/tBBIT3xtGz5vVz KoTg== 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:dkim-signature; bh=KSEO7grr1p/8DaZzm61xRKuesIZdIt0bL/jRmRVRgkc=; b=kdJgaBm3sDmTnDjJg/iMsi0y++XEPFRntD7z6COYBUg5xN2tZkjvLwen1DgVD82Ifc ocvz3DkmrNxsW1dNA6vBfHcrivIPXRww+pLxooYQUMfEGuXCeWd78cyAlRifd8oztrwn 90yp3xARnw/5Sck2yGDOTCjP2qAM//DD6zP8n4LnvEUGjYux4m1Jbv9Jkr54VvyQrAB+ 8OH4YZPrDjdk3wkawyFZXft9LFacNYzuKYqcrZ5Eyte4t0T/anH6gQMu6cKkFUoit080 VyyHgr5mKuWg1UAN6V9HfyS3MolE2xr2P4svK9xL3UIKYRSuS5PcFX3YcwmboJnC+rWT ae6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eWfNCTgy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170902f69000b001768b8287d8si7502055plg.124.2022.09.15.02.09.40; Thu, 15 Sep 2022 02:09:52 -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=@infradead.org header.s=casper.20170209 header.b=eWfNCTgy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbiIOIuo (ORCPT + 99 others); Thu, 15 Sep 2022 04:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiIOIuk (ORCPT ); Thu, 15 Sep 2022 04:50:40 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A29A58DD8; Thu, 15 Sep 2022 01:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KSEO7grr1p/8DaZzm61xRKuesIZdIt0bL/jRmRVRgkc=; b=eWfNCTgy4m5xfBnkmORobqoHKt sFJ6c69laoIcGWhFYCSHxNjZUb+0eC7j6x+mmTaJFyE+MKvFrR7QsQEVXAW4KyPQgXe+XXEQimLhU Y5Zwbogw7k9JbmeB/1mojdNG2sHLQ2wcu3JvJFCBfxhHMrKekY8CN9BIUmBd6PEvj5+bm0/2ocnBV Qenn+6RcPTKt0pLFW/RfTGbYLhecpztpv7IbWLR12+Dq7OfZaMdC7+Bh1oVwO7I+WN+958sg0EBJA rP/r//3zdykpw7yKoMve0utqkXgMBahbgyWfLj6vf3eyhOivM6bweBMIAmKNn0kCz1eKGlCsYTXrf awa3nFTA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYkZb-000wGY-Qo; Thu, 15 Sep 2022 08:50:15 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 69FC530029C; Thu, 15 Sep 2022 10:50:12 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4EB85201ABB97; Thu, 15 Sep 2022 10:50:12 +0200 (CEST) Date: Thu, 15 Sep 2022 10:50:12 +0200 From: Peter Zijlstra To: Joe Damato Cc: Dave Hansen , x86@kernel.org, linux-mm@kvack.org, Dave Hansen , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC 1/1] mm: Add per-task struct tlb counters Message-ID: References: <1663120270-2673-1-git-send-email-jdamato@fastly.com> <1663120270-2673-2-git-send-email-jdamato@fastly.com> <20220914141507.GA4422@fastly.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914141507.GA4422@fastly.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Wed, Sep 14, 2022 at 07:15:08AM -0700, Joe Damato wrote: > I could patch count_vm_tlb... to account on a per-task basis. That seems > reasonable to me... assuming you and others are convinced that it's a > better approach than tracepoints ;) Well, we *could* do a lot of things, but we can all spend out cycles only once. Doing endless variations of statistics contributes to death-by-a-thoudsand-cuts. If you really think you need this, write yourself an eBPF program and attach it to these tracepoints. Then you get less cycles for useful work, but the rest of us isn't bothered by that.