Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp157761pxy; Thu, 6 May 2021 23:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVna2Qk46pQcsrVpRDGDK0wMY9mWF5FfIziovIX+0cXplVul9/cq3f5f/rrwsvnR16Edm9 X-Received: by 2002:a17:906:fa81:: with SMTP id lt1mr8342577ejb.277.1620369477725; Thu, 06 May 2021 23:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620369477; cv=none; d=google.com; s=arc-20160816; b=bvNDWs+Eb2Tj2FFa/16Y376tLWAu4PxPxPmu0yYgWKOA1Cf2aVhPaR18m37avCYWrx 2kPHil1vxYnVIoy1IutbsdDc6OXLdgEgB98Z19hJWOmHeIU6zFrD5AAFXguTcDT0L+em yqpQ/Pk3oj08XqlRxLjNy7jAJ2HjGRl/qqlQoQ2Qqze09Jnh3gvJRmbSh0ZnH0N2ebBz cKUno2IcaL4QOqBQvGtPi6M7qfnTBXMDP9JUBTIduzb3URNQks82bkitMDFoAfedS3VX h46JoQdT/XWmCE1XksUUB3cZLlI23s2AgMWKHeCGAuJPzawFJFdsMbt81KNWargAJYcZ /xNA== 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=fXC1fcI73o6sEua4GaBQ6XsOOvAmYvi06yow1Q8fqa0=; b=zPrza6otqaiirFcL+5hbaOpc3K0jgfEWK7YoqLqDtqiz/vuKHlNkrjAsDAMKyrA/gN B6ZDDoWNR/r4YzSrbMxFqwvJNtr/m5ObibP1luCBCb0SjOi5ag2TrseyoO3jVrT2z64l m7LSeOFxy7B1sm9xMNuZQNHrLM5Q4eZbUXIQSy2U6lFuyId4IQUF3CnTUfttvrd9r7Yy PA23OL+3V+L1GUBrOQOYE0Uu8LI1vfKzeqFzLvfaeHn5+SJeVIEK3y7GjUtr73tJaYtZ ohtfKdzHWMchYcpNRDPkUFyBxQS3sBbE93t1lULQ3apedKIersnNJ1jcbnKm+Rbh2kfM GISw== 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 t9si4107512edd.64.2021.05.06.23.37.34; Thu, 06 May 2021 23:37:57 -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 S231792AbhEGEsv (ORCPT + 99 others); Fri, 7 May 2021 00:48:51 -0400 Received: from mail-lj1-f176.google.com ([209.85.208.176]:37484 "EHLO mail-lj1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbhEGEsu (ORCPT ); Fri, 7 May 2021 00:48:50 -0400 Received: by mail-lj1-f176.google.com with SMTP id b7so9926365ljr.4 for ; Thu, 06 May 2021 21:47:50 -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=fXC1fcI73o6sEua4GaBQ6XsOOvAmYvi06yow1Q8fqa0=; b=jcctccP+9PP69hUkh3HgzjCTdY9m/1I/sATY3L/AmHmdsBQ6svrBZ7cVOE17p9YuWR qtTc8sGnzb4Y/Ww2PD4FVJbIzo/BowJYh8V/tSDDBEKZyYlx0rH2zTm9FW0TLFuwMa6Z JCZ2oNFpffMwzUEWsAcEkc18nyGy3MVyggijgdwT7JgWCydSnr+gg6v/dspt442tjBIc 7EVXgZzlbCD80uIrQ0rmhZZF5EdXqkiF6y9OOXo94qU9Ch6rKnCbtHZQ2c7/s+Ivnptu OmL9BkviiV8iXXUqZM4uyU5SY+2vaUR0nLBpsMnmT+xHg8vtwcNBcJQJC7g78vju+G4y liFg== X-Gm-Message-State: AOAM532a7y38VWYmWPdMT0jbAb+vei6YQ6384Lru3tzqJbdo5ZWhAJcS G5gpWpZQ8Xq1bod/L/n07l9K0usSlGfMJan0HEw= X-Received: by 2002:a2e:b6d2:: with SMTP id m18mr5941191ljo.233.1620362869748; Thu, 06 May 2021 21:47:49 -0700 (PDT) MIME-Version: 1.0 References: <9f178dde-751f-9ac9-f5a0-fd1bfba3ca32@linux.intel.com> In-Reply-To: <9f178dde-751f-9ac9-f5a0-fd1bfba3ca32@linux.intel.com> From: Namhyung Kim Date: Thu, 6 May 2021 21:47:38 -0700 Message-ID: Subject: Re: [PATCH v5 00/20] Introduce threaded trace streaming for basic perf record operation To: "Bayduraev, Alexey V" Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Andi Kleen , 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 On Thu, May 6, 2021 at 5:44 AM Bayduraev, Alexey V wrote: > > Hi, > > On 06.05.2021 9:20, Namhyung Kim wrote: > > Hello, > > > > On Tue, May 4, 2021 at 12:05 AM Alexey Bayduraev > > wrote: > >> > >> > >> Basic analysis of data directories is provided in perf report mode. > >> Raw dump and aggregated reports are available for data directories, > >> still with no memory consumption optimizations. > > > > 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. > > There is your idea about separating tracking records and process them > first, but these changes can be much larger than my patch and I think > they looks like independent patch and could be introduced as extension > of parallel data loading. > > I also thought and experimented with the intermediate flushing of > the ordered queue. This is simple for per-cpu data files (sorted > by time), but not clear for arbitrary CPU masks. > > I think my patch can be the first step to introduce parallel mode > to the perf tool. It just extends perf-record (already used in our > vtune tool) and allows to load parallel data in experimental mode. > Next patches could optimize and extend parallel data loading. Yeah I agree that we can change it incrementally and good to know that you are thinking about the next step. :) Thanks, Namhyung