Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5312353rwd; Mon, 12 Jun 2023 03:17:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hs7Ic5BwHchcm3cAQ/BmZ54+S6RCD4uNiykacmk1NYRU/Lx9KFTlAFKup3wrt67agC0gw X-Received: by 2002:a05:6a20:1442:b0:10c:1501:3c22 with SMTP id a2-20020a056a20144200b0010c15013c22mr10350995pzi.29.1686565030413; Mon, 12 Jun 2023 03:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686565030; cv=none; d=google.com; s=arc-20160816; b=ugwhbK6xlJjj3XR5C+Ty5VQuRRo10CLgl0yFK0zmdHsnVXmyO4MFKY5JPXeFi8oLqc onoYEjWSZfdQ8b2Ue5PC9RVW2zaWaDFd+Gs4Kl8+ODbfKxWdHzVFJWKYQoSXuZN0u949 STMyeAnzAp3fUcObBgYFbEMN81DKFsu27GRu1Ux/2DrwZjGl6p9d9LpBarB0xBmPeM1t C+HJML+QNRuxWGcsbl7QqkGSZLSRlLzFt4skzvNNOc8hMuGQTO6axC6RfVPYyOotkkdV 2n8QzlngziGy3RDNGs/Z2+oCfCu50WhDyXVOJ92wDrTnSOrnqYkPfRgmv6IZa+PyIESJ obAA== 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=D3WIPm4z3+5JGaYbfhg2L2EMz9XADf68AcDZRHShQv4=; b=Q3H4OnRqXC53vSSuT0Ul2FsCO2GF79D96rUZ0uqgXfmPtBhWIMFLyhsW5D6W+3aeXe SklkWba57Y0JHTX7t12UDfe/MKIW35YB1ZoowzYM3SaAKo+mA3qRo2XpkYmgdySViDW/ pHKVjFjPMSvrGaQ3eBRrMNTKooGkEGjndwIEMyGPHFjmccfnDSjSx3t78W/8PiCNLhsR 2Bzk1yFtePgkdh9T17JrhYGUBLfjC72qa7sW4Bnx9iiigN12u+gqMpPBrn5AtJPotV4t hBIHCd7Fs933LUphedJ7vzf/6uq8eAGn9q+ijtlHH15nIvf6MOArRKNJw5d1PWBP+20n 87SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJTV87DU; 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 i185-20020a636dc2000000b0053f0cdab819si3663832pgc.366.2023.06.12.03.16.57; Mon, 12 Jun 2023 03:17:10 -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=GJTV87DU; 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 S236426AbjFLKDC (ORCPT + 99 others); Mon, 12 Jun 2023 06:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235965AbjFLJ5y (ORCPT ); Mon, 12 Jun 2023 05:57:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0431D4C2B for ; Mon, 12 Jun 2023 02:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686562926; 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=D3WIPm4z3+5JGaYbfhg2L2EMz9XADf68AcDZRHShQv4=; b=GJTV87DUEE67fLmNtfs8yr86FU2ZUcWP8xlW5N2HC9hh5Ad4rb9n0FmDghQuh5aV9e0t6t p8JkpdNhEae6Yxr+iD58FBPHBwHrLNRSL7d2hyJrCCGxT/S4zdq70DrTt7D1twshfjOx/+ fQLb6QNGdp4zNKcTl4R13yJNad2Wv+o= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-296-WHiiV8xsOKmrj6eVzeUj2g-1; Mon, 12 Jun 2023 05:41:59 -0400 X-MC-Unique: WHiiV8xsOKmrj6eVzeUj2g-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3f5df65f9f4so17553025e9.2 for ; Mon, 12 Jun 2023 02:41:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686562918; x=1689154918; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D3WIPm4z3+5JGaYbfhg2L2EMz9XADf68AcDZRHShQv4=; b=mBu3VSNj155IrDlxQmiWjoM6rr37qfRYqvIIJmlq+BRcENz1LIutpb4FN93XnIwqeg kZ8equ5qzpxinmGtLJnChugSj9n7A33h3T7OdFU2SjM6CgWT51nL3mpB/M9JAk52czHf 3yIui1UmuhB8PbVyNX1gYez1aSN1zySCL0I3xwJcbuhXdtHKJkupZEEbZCmN+Q/GJIQp V/sQnoLrgXikbO44PLoue8uvQsF/EtiqjQSFcHCxfLNB8TbjCD2kyk7y+V4LJ5ju0tur eQBB3CpCpeS/ia597FLaIiHehMU4KHg/ctqPaN0c+rkkRoXw8tUVjDlzbo/ByZk0du9o Cjpw== X-Gm-Message-State: AC+VfDwOu+ycsABu1aYMcxmhzsX1bYHqbypT+8bJSTHuGbS1afe3IauI AoTdcQF9WyNJnlJzQdJkrbEIYxfS91p/B8ySEDwszv+jbPqPET57fUazF1mbp+//ek6HcQQgk4G aORg650oMFHM6tySbRwfxMqGT X-Received: by 2002:a05:600c:2254:b0:3f7:e535:ff3b with SMTP id a20-20020a05600c225400b003f7e535ff3bmr5477921wmm.3.1686562918184; Mon, 12 Jun 2023 02:41:58 -0700 (PDT) X-Received: by 2002:a05:600c:2254:b0:3f7:e535:ff3b with SMTP id a20-20020a05600c225400b003f7e535ff3bmr5477906wmm.3.1686562917812; Mon, 12 Jun 2023 02:41:57 -0700 (PDT) Received: from localhost.localdomain ([151.29.46.22]) by smtp.gmail.com with ESMTPSA id y10-20020a1c4b0a000000b003f5ffba9ae1sm10886705wma.24.2023.06.12.02.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:41:57 -0700 (PDT) Date: Mon, 12 Jun 2023 11:41:55 +0200 From: Juri Lelli To: Daniel Bristot de Oliveira Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Steven Rostedt , linux-doc@vger.kernel.org, William White , Masami Hiramatsu , Jonathan Corbet Subject: Re: [PATCH V3 00/11] rtla improvements Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Hi, On 06/06/23 18:12, Daniel Bristot de Oliveira wrote: > This is a series of improvements for rtla, mainly as a result of our > daily usage of the tool debugging problems at red hat. > > The cgroup support and house keeping options are from our usage > of the tool debugging containers. > > The auto-analysis overhead reduction is needed when we go to > large boxes - but it is really hand in practice, as it gives an idea > of the problem without having to look at the trace. > > Running hwnoise 100 % of CPU time might cause some systems > to slow down too much. Reduce its utilization to 75% by default to > avoid problems for people using it for the first time. > > Finally, it adds support for running timerlat user-space threads, > and to collect the additional field via rtla timerlat top/hist. > > Changes from V2: > - Add timerlat hist -u option > - Link: https://lore.kernel.org/lkml/cover.1684863094.git.bristot@kernel.org/ > Changes from V1: > - Add the user-space thread support to rtla timerlat top > - Link: https://lore.kernel.org/lkml/cover.1683827510.git.bristot@kernel.org/ > > Daniel Bristot de Oliveira (11): > rtla: Add -C cgroup support > rtla: Add --house-keeping option > rtla: Change monitored_cpus from char * to cpu_set_t > rtla: Automatically move rtla to a house-keeping cpu > rtla/timerlat: Give timerlat auto analysis its own instance > rtla/timerlat_hist: Add auto-analysis support > rtla: Start the tracers after creating all instances > rtla/hwnoise: Reduce runtime to 75% > rtla: Add timerlat user-space support for timerlat top > rtla: Add timerlat user-space support for > Documentation: Add tools/rtla timerlat -u option documentation > > Documentation/tools/rtla/common_options.rst | 8 + > .../tools/rtla/common_timerlat_aa.rst | 7 - > .../tools/rtla/common_timerlat_options.rst | 7 + > .../tools/rtla/rtla-timerlat-hist.rst | 7 +- > .../tools/rtla/rtla-timerlat-top.rst | 7 + > tools/tracing/rtla/src/osnoise.c | 65 ++++ > tools/tracing/rtla/src/osnoise.h | 5 + > tools/tracing/rtla/src/osnoise_hist.c | 90 ++++- > tools/tracing/rtla/src/osnoise_top.c | 83 ++++- > tools/tracing/rtla/src/timerlat_aa.c | 35 +- > tools/tracing/rtla/src/timerlat_aa.h | 5 +- > tools/tracing/rtla/src/timerlat_hist.c | 262 ++++++++++++-- > tools/tracing/rtla/src/timerlat_top.c | 229 +++++++++++-- > tools/tracing/rtla/src/timerlat_u.c | 224 ++++++++++++ > tools/tracing/rtla/src/timerlat_u.h | 18 + > tools/tracing/rtla/src/utils.c | 324 +++++++++++++++++- > tools/tracing/rtla/src/utils.h | 7 + > 17 files changed, 1277 insertions(+), 106 deletions(-) > create mode 100644 tools/tracing/rtla/src/timerlat_u.c > create mode 100644 tools/tracing/rtla/src/timerlat_u.h > > -- I've been heavily relying on these for debugging various issues with latency sensitive workloads and they work like a charm. Tested-by: Juri Lelli Best, Juri