From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753104Ab3KSQOI (ORCPT ); Tue, 19 Nov 2013 11:14:08 -0500 Received: from mail-ee0-f54.google.com ([74.125.83.54]:61162 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562Ab3KSQOG (ORCPT ); Tue, 19 Nov 2013 11:14:06 -0500 Date: Tue, 19 Nov 2013 17:14:02 +0100 From: Ingo Molnar To: David Ahern Cc: Peter Zijlstra , Namhyung Kim , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, jolsa@redhat.com, Frederic Weisbecker , Mike Galbraith , Stephane Eranian Subject: Re: [PATCH 4/5] perf record: mmap output file - v5 Message-ID: <20131119161402.GA20224@gmail.com> References: <528ACA41.4030202@gmail.com> <87ob5ht962.fsf@sejong.aot.lge.com> <528ACDE7.3050107@gmail.com> <20131119065835.GB32367@gmail.com> <20131119114810.GK3866@twins.programming.kicks-ass.net> <20131119114959.GE3694@twins.programming.kicks-ass.net> <20131119131304.GC7263@gmail.com> <20131119134508.GN3866@twins.programming.kicks-ass.net> <20131119153142.GA10913@gmail.com> <528B8D44.1050601@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <528B8D44.1050601@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Ahern wrote: > > Well, we could exclude the profiling task itself from profiling > > events (just like ftrace and core bits of perf does it out of > > necessity), but I intentionally wanted to avoid that, to make sure > > we are honest and to make sure people don't tolerate profiling > > overhead that disturbs other workloads. > > Samples generated by perf itself need to be observable -- e.g. > process scheduling I want to see the time consumed by the data > collector itself and there are times when 'perf trace -- perf ...' > is useful. Absolutely agreed - a measurement instrument affects the measurement, and we must not try to hide that. Still we can try to make the disturbance smaller and more managable. For example if I have enough RAM it should be possible to run perf record with a 1 GB ring-buffer, and in that case as long as the perf.data is smaller than 1 GB there should be no writeout or any other IO activity until the measurement ends. Thanks, Ingo