Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp8155pxx; Wed, 28 Oct 2020 16:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/MD+mnoiwuHqrt/6qBqGrof1e6bCJbHEWGw97m8Sq6XGsvYk9Z04iTg7wXdOUUJ89dxzs X-Received: by 2002:a17:906:7e0e:: with SMTP id e14mr1427532ejr.238.1603927729604; Wed, 28 Oct 2020 16:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603927729; cv=none; d=google.com; s=arc-20160816; b=tX47rtXl8cVtYjsJBLXOvWPtQPWTpov+XbNo1Ws4m949zIC3Jm9pMpzCDGooneIZ09 ObMG8E1CYamab2xK+EAcmmiH53z9WFo1iVQC0caAEwxrpT523oSkGnFH7dYHON3hEeh5 5BV1o9O+uQtuxxbnQhFIYcTfPKpnFAVoPmLek0J34xV9PFa1cOQHVLjrCUzasdCeYoYX qq2U7wChCUCzNYhbLKIV9xay9lE3/M6FIsxDsXHhEQP75U4FIiVJrr5vt6mwhvzOzUl/ obVs4dpwt+vbA++eb9DSwx++/Bx2x9ImNBYa3QZkHjImI4Da0awgh7fhIqw33DrQb4lw VUrg== 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=3SS40df89lZEGyvg63MO4TxFrSMgpg8lrX0GUBDHf0A=; b=OrXRrT2/Tx78Z4fwqZ1Uc7eL4vb5WZhgsbuVMKdjzHSfjzf0CMde+UXPrCpCnkC4ii tyMWknAAFQoiz5HN+UPr5z9Lg2aXCkjp5U0GYrwe62vRGEM91Leh43rYBNtXiQLMELM4 rwHQkS5PsRgUPBHC89DJklVaEyHlmTblLia828Z7ht5+BbBCLZKzyz0BztzIEaBUlYIq DENxrLIlJapyXkW8DOdgs9O6Zv7sZ5TpTEWVeffhQGAY7tLE2/zKidWwEOreRBeGnyDP 03IV989Vsdzn06hiQAccGA5PAhPt/fj4TyLrircQeU5IIj+pC7WsI/PSWkKwcGo/AhHY JhAQ== 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 z11si781939edl.450.2020.10.28.16.28.27; Wed, 28 Oct 2020 16:28:49 -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 S2390435AbgJ1X02 (ORCPT + 99 others); Wed, 28 Oct 2020 19:26:28 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55262 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390418AbgJ1X0Y (ORCPT ); Wed, 28 Oct 2020 19:26:24 -0400 Received: by mail-wm1-f68.google.com with SMTP id w23so800077wmi.4 for ; Wed, 28 Oct 2020 16:26:23 -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=3SS40df89lZEGyvg63MO4TxFrSMgpg8lrX0GUBDHf0A=; b=Y6iSDlmSW1gLm+Mbphd/vYJZp+Md7/MwLL7CW9nhSeXd8Z1JnUr2nKkADUPeWBfSWQ 8fWX2dgfuEj5dcEBPC4PQ2pwzAkWlkDPwc4a39ZSzJEacZtIU39D9DpPQ+OT7kMPVbkh fKvNtmFPMQIyCm9v0blNIpNWZtqEteFbnVqaTTscixXPjBKIc7vE7UZB7Qt0SweC3A6y owhlvzS/mgKupPS1P+R3YFKyDT0TWJi9GLtqec0Nn+aAlind30FY13d0Es9/9VbrHW+/ f8Y9cq46BpzdMmYMmQfFC/XkLM+tOwwngl7hP7nw4B+kNjLcLPxZ10PAdLsgsGPsGJX+ A6kg== X-Gm-Message-State: AOAM533ASMggxptCRGhPGuMR3+P0AKQ3VF6ryiKNsFBcIJSGC7E3Y6Fh oWaG1H7Zf+T5evNLH70XQrJxxU1rtB5DUGHrct+s0JoL X-Received: by 2002:a1c:9c51:: with SMTP id f78mr6881455wme.189.1603869780311; Wed, 28 Oct 2020 00:23:00 -0700 (PDT) MIME-Version: 1.0 References: <1ec29ed6-0047-d22f-630b-a7f5ccee96b4@linux.intel.com> <20201024154349.GC2589351@krava> <43d5e54f-b56e-729f-d08e-2c6b6799c797@linux.intel.com> <20201027122154.GF2900849@krava> <872f5052-788b-fe6d-d0ac-82e9639910d2@linux.intel.com> In-Reply-To: <872f5052-788b-fe6d-d0ac-82e9639910d2@linux.intel.com> From: Namhyung Kim Date: Wed, 28 Oct 2020 16:22:49 +0900 Message-ID: Subject: Re: [PATCH v2 06/15] perf session: load data directory into tool process memory To: Alexey Budankov Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Alexander Shishkin , Adrian Hunter , Andi Kleen , Peter Zijlstra , Ingo Molnar , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 11:43 PM Alexey Budankov wrote: > > > On 27.10.2020 15:21, Jiri Olsa wrote: > > On Tue, Oct 27, 2020 at 10:37:58AM +0300, Alexey Budankov wrote: > >> I agree perf report OOM issue can exist on really-big servers but data > >> directories support for report mode for not-so-big servers and desktops > >> is already enabled with this smaller change. Also really-big-servers > >> come with really-big amount of memory and collection could possibly be > >> limited to only interesting phases of execution so the issue could likely > >> be avoided. At the same time threaded trace streaming could clarify on > >> real use cases that are blocked by perf report OOM issue and that would > >> clarify on exact required solution. So perf report OOM issue shouldn't > >> be the showstopper for upstream of threaded trace streaming. > > > > so the short answer is no, right? ;-) > > Answer to what question? Resolve OOM in perf report for data directories? > I don't see a simple solution for that. The next issue after OOM is resolved > is a very long processing of data directories. And again there is no simple > solution for that as well. But it still need progress in order to be resolved > eventually. I think we should find a better way than just adding all events to the ordered events queue in memory then processing them one by one. Separating tracking events (FORK/MMAP/...) might be the first step. Thanks Namhyung