From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753194AbaGUGp2 (ORCPT ); Mon, 21 Jul 2014 02:45:28 -0400 Received: from mga01.intel.com ([192.55.52.88]:9645 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbaGUGp1 (ORCPT ); Mon, 21 Jul 2014 02:45:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,698,1400050800"; d="scan'208";a="564779807" Message-ID: <53CCB6AE.6020505@intel.com> Date: Mon, 21 Jul 2014 09:43:58 +0300 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Jiri Olsa , linux-kernel@vger.kernel.org CC: Arnaldo Carvalho de Melo , Corey Ashford , David Ahern , Frederic Weisbecker , Ingo Molnar , Jean Pihet , Namhyung Kim , Paul Mackerras , Peter Zijlstra Subject: Re: [PATCHv3 00/19] perf tools: Factor ordered samples queue References: <1405893363-21967-1-git-send-email-jolsa@kernel.org> In-Reply-To: <1405893363-21967-1-git-send-email-jolsa@kernel.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/21/2014 12:55 AM, Jiri Olsa wrote: > hi, > this patchset factors session's ordered samples queue, > and allows to limit the size of this queue. > > v3 changes: > - rebased to latest tip/perf/core > - add comment for WARN in patch 8 (David) > - added ordered-events debug variable (David) > - renamed ordered_events_(get|put) to ordered_events_(new|delete) > - renamed struct ordered_events_queue to struct ordered_events > > v2 changes: > - several small changes for review comments (Namhyung) > > > The report command queues events till any of following > conditions is reached: > - PERF_RECORD_FINISHED_ROUND event is processed > - end of the file is reached > > Any of above conditions will force the queue to flush some > events while keeping all allocated memory for next events. > > If PERF_RECORD_FINISHED_ROUND is missing the queue will Why is it missing? > allocate memory for every single event in the perf.data. > This could lead to enormous memory consuption and speed > degradation of report command for huge perf.data files. > > With the quue allocation limit of 100 MB, I've got around > 15% speedup on reporting of ~10GB perf.data file. How do you know the results are still valid? Wouldn't it be better to wait that extra 15% and know that the data has been processed correctly?