Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1402662pxy; Thu, 6 May 2021 07:19:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXH4jsO/Ks50xUMDRJgrh3u4yhuVHjb9njrAXyDhHlj6wAMdgCMA3qZKdis0HsQMyzO2/w X-Received: by 2002:a17:906:d9ce:: with SMTP id qk14mr4565134ejb.411.1620310796548; Thu, 06 May 2021 07:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620310796; cv=none; d=google.com; s=arc-20160816; b=plD2sIx9f8Osu/4q4oyS1BPsY/ZHAyJ8lTvVi8bhbZLauusNX53NQ+UGXWVyQiFVqd eca+wFqli1g6U7k8nnwS7RWq320an/uXLSIx8heJoHqgnRtvwdvyRbzk1CHjSGKY3mfK E2cv3WhMcZKCQvfSTUJGt+qZcfOe+grhTDXZ7cAVYLOJbMlwjiUMFwyhC7TfneExK3jp 29k+lGnUjVSo5UdOTPq+4rXi8MVWf2/d4i4PsB5utkJwN7gD9oali6Fow8KVpwqSR5r9 Ff4Yp83juDSxvap+i4elI06Wg24f/EjbTDm5GDT8dDucRYySzWtj/KCSQScTJf073jTe +JVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=cVOwBRMeDQwpyXrjIN8eOF3PvWV92gupE1wPHZOeERY=; b=flw4NkFCtBnshMHQDqbxP2O3VNmEBY01owKR3XzvELE7I/l1uGabuiUmukCPfrt3Wc IAZC5yuDP2TWlZZEVj+CH5+GCXkEaLuZ2RMVBHge6cQGAs6VEObgcuE908haXR3EJEuv QCBQ0BLNpxrSUK62a1Q4lZv8a8GrZSbfhyRhHzXEO3JDMXbEiz03FPxu+6ECB/ZxD9Mb yiPLFyDGuE5D+pH4bwj+Q59PKUGZP3hO+9WsWvWx73Lmp2b1VP5vGqAFYR5RFeEfcAaP sxd8Od1UUr2vO6PVTb32QMoq4mWSWTqQjXO4Eanotj0BoNv3P2T9DpDBkcfKW+VIhbyB GMJQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si1150387edc.322.2021.05.06.07.19.30; Thu, 06 May 2021 07:19:56 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbhEFOSp (ORCPT + 99 others); Thu, 6 May 2021 10:18:45 -0400 Received: from mga06.intel.com ([134.134.136.31]:48746 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233737AbhEFOSn (ORCPT ); Thu, 6 May 2021 10:18:43 -0400 IronPort-SDR: 33ZLxfnA7o8IDcgkDqHAkDvQtilmnt//Uthm41OKf/AmlSinh7oQtYbEpTeDJP9FrtaUbe3AR8 t4QFmyTTNrnA== X-IronPort-AV: E=McAfee;i="6200,9189,9976"; a="259761859" X-IronPort-AV: E=Sophos;i="5.82,277,1613462400"; d="scan'208";a="259761859" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2021 07:17:18 -0700 IronPort-SDR: hn02Kj8lMN1tRBnSxSDHsBy1bNo+nrUylKglaI8arSXJDe0mBho9E15Cs/Nm/LWV3A4FDH0h7H e2AN+d5DHQuQ== X-IronPort-AV: E=Sophos;i="5.82,277,1613462400"; d="scan'208";a="539970015" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.219.76]) ([10.212.219.76]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2021 07:17:18 -0700 Subject: Re: [PATCH v5 00/20] Introduce threaded trace streaming for basic perf record operation To: Namhyung Kim , Alexey Bayduraev Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Adrian Hunter , Alexander Antonov , Alexei Budankov References: From: Andi Kleen Message-ID: <4926ae4f-b14b-1048-229b-0b789204c192@linux.intel.com> Date: Thu, 6 May 2021 07:17:17 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Andi