lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110112151020.GB1755@nowhere>
Date:	Wed, 12 Jan 2011 16:10:23 +0100
From:	Frederic Weisbecker <fweisbec@...il.com>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	Kirill Smelkov <kirr@....spb.ru>, linux-kernel@...r.kernel.org,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Ingo Molnar <mingo@...e.hu>, Mike Galbraith <efault@....de>,
	Paul Mackerras <paulus@...ba.org>,
	Stephane Eranian <eranian@...gle.com>,
	Tom Zanussi <tzanussi@...il.com>
Subject: Re: Q: perf log mode?

On Wed, Jan 12, 2011 at 03:53:41PM +0100, Peter Zijlstra wrote:
> On Wed, 2011-01-12 at 15:42 +0100, Frederic Weisbecker wrote:
> > On Wed, Jan 12, 2011 at 03:08:08PM +0100, Peter Zijlstra wrote:
> > > On Wed, 2011-01-12 at 17:06 +0300, Kirill Smelkov wrote:
> > > > I'm trying to use perf together with e.g. kprobes as a tool to show what
> > > > is happening with my system in "live-log" mode. The problem is, for
> > > > seldom events, actual info output is largely delayed because perf reads
> > > > sample data in whole pages. Could something be done with it or am I'm
> > > > missing something? Here is detailed description: 
> > > 
> > > perf_event_attr = {
> > > 	.watermark = 0,
> > > 	.wakeup_events = 1,
> > > };
> > 
> > 
> > Which is perhaps something we want as a default when perf record -c 1
> > and the output is the pipe mode.
> 
> No, definitely not, esp for -c1 you want large buffers because the event
> can come at very high freq.

Right this should not be a default actually if we have high freq events
we don't want wake up at each of them.

> Nor does pipe mode have anything to do with it, the whole script set-up
> plain stinks 

Oh? What's wrong with the scripts infrastructure?

> and should not be using pipe mode, pipe mode should only be
> used to pipe data over the network and other remote profiling like
> things. 

But the scripts are just an endpoint over many other possibilities,
regardless of what is in the middle: perf.data or pipe streaming.

Where is a limitation on using scripts here?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ