Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8004475rwn; Wed, 14 Sep 2022 07:37:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7w6sWC2XUnRNqNgNEgEZ2QnSGObpgbGDIYm3Njx8SUKFPdxCErIQnKJl+AUu8cqpi6QoXl X-Received: by 2002:a63:6384:0:b0:434:a42a:3629 with SMTP id x126-20020a636384000000b00434a42a3629mr31802839pgb.243.1663166245104; Wed, 14 Sep 2022 07:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663166245; cv=none; d=google.com; s=arc-20160816; b=XqlFP+5oQm+RaJE4nh+7iGiYQxf98GXsD/1q0TLLBScYUgYVniqpltlIzA8kzyNCHZ Sn3NEl5gl0vFt7w5ux3LLi7jFwIjEDxOoiD6eVnFBJYmTaXvVsG1wYUlQVl2B0POvGHQ 6vjO95bX3/P4HnnFV3Lo/LALp+5r5hKGRSU3rtXGM/IQcKtVnW2ssj9RTvI3lTt+BcJX Wrl8vmvyjTs5guFAuo6QdYFcKiIQiZWjqf4gDkJdHiwuT+N1MfhzT9g9OHCpNWuUTjtf a7wXDjXMGUBO7KLr7yRIWrPQhljY2XNlnDHdKCUqlstiW1Mk5z9Ko92y5Ka3Z/jEust2 d9yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7X3jI/FDmkrBs7DhtU4sYpQT4M91OAzd4bF9ysc8YQA=; b=aVVyaIufmRawg6iCRuvQK8320tiBv7f64B5/bTCWMpbydEdZPt1aYpDoz66wZ6sTvj z8UrcN1fv5imEh4KCTDg25HS7ogbYdhMsw5/unL6QOjjn3DR2atjUG9gX2ZamF2QvYds WPJdtPXVYtU0HU9alxK3aVIMd8z9/QShAga0MeyHruePxtkU3rTiZgsAr8wNZKJn2NOx SvYX25SyUL/5V5+fv72Vfgp61BJvEcW2okBIU+fbzaF+9OPhk3K5CaHcg6uDup2amOCp MPi3pJPqLJTgqvPkCCfFRx38ICr2LavU8Wy2rRHCKZxFKyKKai7tgiD1JSLM3rbs9057 dBog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=kuTFYHmJ; 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=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i185-20020a636dc2000000b0042b16d0cbf9si16210955pgc.638.2022.09.14.07.37.12; Wed, 14 Sep 2022 07:37:25 -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=@fastly.com header.s=google header.b=kuTFYHmJ; 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=REJECT sp=REJECT dis=NONE) header.from=fastly.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbiINOX7 (ORCPT + 99 others); Wed, 14 Sep 2022 10:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiINOXU (ORCPT ); Wed, 14 Sep 2022 10:23:20 -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 5D5E74F389 for ; Wed, 14 Sep 2022 07:23:18 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id y136so15096450pfb.3 for ; Wed, 14 Sep 2022 07:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=7X3jI/FDmkrBs7DhtU4sYpQT4M91OAzd4bF9ysc8YQA=; b=kuTFYHmJmpQFxv2JP6mXl4t7RMOKICwKvTcwLslqUJQ/xIlbxwQYeNKTsYUk2K2fIw 16zOvbCrZ98E0IA/KYx5UktK/z6ClyAYPoHMSE7uJ30cU5o9IDFy857orY0dbk+oVpLL f/C15UDXNwotak1w8D3iBgvVTrcdx0jaXtqGY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=7X3jI/FDmkrBs7DhtU4sYpQT4M91OAzd4bF9ysc8YQA=; b=hH7dV8UqaXMFQDpO4y6wGjQgkvOVhPUBxHtclKd45w3u29ZBrhnYm0c2+HgKyIOXgX ccg7O5KVE2hRcEXPsZoITweYVAQKGAJndEu1/IaeqKowZZzubjrkkZMubYO7gO+A7ru0 wRN2N1hZ3tfZrTda1iTQj5HaPF3hbNHXfwXeuCBKjTDTQ3bVju0jf3oq1h8eL+ahbQTO nuEJ0pKddwFgoF0/oMGZG+s2y8x4HlnAOkTxkLKFvX0HQ3KgMKTMCUlGBJJIHbgWkWEW Bj868SOWxQb50nCVjwC4f4xxWultgJGcLGxBZWj5bs+X8Ou4u5DMTk+s0Ry+Tq2JYoKa 2pGQ== X-Gm-Message-State: ACgBeo1DrkGq1pdvPgtfwgLjcmk4WnWn/c5zgmVSlCrRSM02RnjGA9Vv VsXEP4tnhPr51qmuXQ0cIYt+Lg== X-Received: by 2002:a63:ed18:0:b0:439:4176:3ea6 with SMTP id d24-20020a63ed18000000b0043941763ea6mr7224872pgi.363.1663165397855; Wed, 14 Sep 2022 07:23:17 -0700 (PDT) Received: from fastly.com (c-73-223-190-181.hsd1.ca.comcast.net. [73.223.190.181]) by smtp.gmail.com with ESMTPSA id q6-20020aa78426000000b0053b9e5d365bsm5350864pfn.216.2022.09.14.07.23.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Sep 2022 07:23:17 -0700 (PDT) Date: Wed, 14 Sep 2022 07:23:14 -0700 From: Joe Damato To: Peter Zijlstra 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: <20220914142313.GB4422@fastly.com> References: <1663120270-2673-1-git-send-email-jdamato@fastly.com> <1663120270-2673-2-git-send-email-jdamato@fastly.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Wed, Sep 14, 2022 at 01:58:27PM +0200, Peter Zijlstra wrote: > On Wed, Sep 14, 2022 at 12:40:55AM -0700, Dave Hansen wrote: > > Why didn't the tracepoints work for you? > > This; perf should be able to get you per-task slices of those events. Thanks for taking a look; I replied to Dave with a longer form response, but IMHO, tracepoints are helpful in specific circumstances. On a heavily loaded system with O(10,000) or O(100,000) tasks, tracepoints can be difficult to use... especially if the TLB shootdown events are anomalous events that happen in large bursts at unknown intervals and are difficult to reproduce. IMHO, I think that being able to periodically scrape /proc to see that a particular process has a large TLB shootdown storm can then instruct you as to when to apply perf (and to which specific tasks) in order to debug the issue.