Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp171804pxy; Fri, 7 May 2021 00:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz15eYbw1/YH9LxL5czCA1madnmAlFcRBeWBqrA2btsRqn/UOLgJd80+3VeSXdYw8eVrooO X-Received: by 2002:a63:c13:: with SMTP id b19mr8472496pgl.198.1620371040529; Fri, 07 May 2021 00:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620371040; cv=none; d=google.com; s=arc-20160816; b=SSE0Iqhi2Bn4GvvsFDlexw56KGNQifzZjFw6rKlZ/7ILPm2HFJSe0WbgiGAquxT4dP 7kT+al2ev0wGl+tZg8oFK/0oVhpK97f+NYPQBARjv5yu5PjScZCe/S1nuv4r7nrDtc7S /AyGKFgi0lG39E76e/zxzlscLjEbVt0ht1vmluOHflStCQE+joXkekKO7m8rVQ4GTD7e rLk3FYwyYI7nAgi2RdRJZ2bA6AdzbS6cbpKi6waJF+xEg6nFjzYGzDzQ7cT+B9Zi6TEI oL9uOytE9Hgu/IMV51nfZlBaVp9OKAHsgS6Uawh0IV3OotJcZYdEhbFD8FmzsH7VgLrD ixZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=OMYfG+wCUME/JqxM/c81ldOkffmHkn+K2+759i6K0N8=; b=nfZYA9q0P2+d+vTNFFAzvEnjeXmsz90aQWDri9BSVpYftxpuaY56/YlzT1DP2UjRQK mxRCIW2np8cmLnW8dyT+v8uuwrJrOmuS5KmtGsxENOab1j5iazoZw4QrPjZ6LZMLmRMO 5C1gBTjDa5JrUezzPinpSAWSU4t5FX19E3SATtDA6tJTR5sgGxuhYWYN1ZmiwN4p7qzf CPdmlNerYqHsI/eCuOJ6sNPh15Crf631zSgBeyG9ranSW5MAh2pokCh/KrZGMW1yEsP4 omDYjBBSkAnlfaVJvDa5d9VSvFiPRZo56HWP72mkdkAivzb//L9cFBo6NnCrK9/kjOBs o5qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si6625367pfa.57.2021.05.07.00.03.47; Fri, 07 May 2021 00:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232344AbhEGExg (ORCPT + 99 others); Fri, 7 May 2021 00:53:36 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:33570 "EHLO mail-lj1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbhEGExg (ORCPT ); Fri, 7 May 2021 00:53:36 -0400 Received: by mail-lj1-f172.google.com with SMTP id s25so9958902lji.0 for ; Thu, 06 May 2021 21:52:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OMYfG+wCUME/JqxM/c81ldOkffmHkn+K2+759i6K0N8=; b=L6/Nyt2PgCZzXdi18Zhdh7DVdU/d53ZYJhyCygoRUsRAe80H80g3Cc46+KsbFanawS 457UUpj0s/3LEYhV1Z+Dmun3RuE219gZz9oX0sIUrUNIFRfM4fuFSZXEVfeCVtyvEqXE fx+tGKcKHZcijnN1R9NK4XTXLS/IIWw7+qbV+YXWt8+JZB9uU1p8fcph0E8hECY6NsjQ fSCJIH/xiSniWfLfMDbYh67R0mdAHDjKWcM+ODco5h284t5VD9IQxoJ5fASN20xqPCgS OGQ2Y8p/LDQVzUp+0emFVXgcXChERPCS0ozPoLLZmhJZrZzRNJP57v/37iD43rAyVJX1 Yz+Q== X-Gm-Message-State: AOAM530jHWG2expsbTcT4J+iTbQQWAxCk1Sk8nZe7vS2yay6eNsE9uit 0BO4Z1LekEWR41Qy8CIdKxNG+ev/rq+cW2nUpZk= X-Received: by 2002:a2e:b746:: with SMTP id k6mr6043703ljo.275.1620363155161; Thu, 06 May 2021 21:52:35 -0700 (PDT) MIME-Version: 1.0 References: <4926ae4f-b14b-1048-229b-0b789204c192@linux.intel.com> In-Reply-To: <4926ae4f-b14b-1048-229b-0b789204c192@linux.intel.com> From: Namhyung Kim Date: Thu, 6 May 2021 21:52:24 -0700 Message-ID: Subject: Re: [PATCH v5 00/20] Introduce threaded trace streaming for basic perf record operation To: Andi Kleen Cc: Alexey Bayduraev , Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Adrian Hunter , Alexander Antonov , Alexei Budankov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andi, On Thu, May 6, 2021 at 7:17 AM Andi Kleen wrote: > > > On 5/5/2021 11:20 PM, Namhyung Kim wrote: > > > > Do you have an idea how to improve it? > > > > I have to say again that I don't like merely adding more threads to > > record. Yeah, parallelizing the perf record is good, but we have to > > think about the perf report (and others) too. > > perf report/script can be already parallelized with --time xx/x% and a > simple shell script that runs multiple processes. While that's a bit > awkward for interactive use it works fine for scripting. I use it all > the time for PT batch processing for example. The real bottleneck we > have is really record on systems with many CPUs (which are more and more > common), and that can only be fixed with some variant of this patch kit. Right, spreading partial analysis to multiple processes would work for some use cases. I also agree that parallelizing perf record is more important, but if there's a way to improve perf report/script we should try that too. Thanks, Namhyung