<font size=2 face="sans-serif">I agree here - without knowledge of the
exact scenario, it's hard to tell.</font>
<br>
<br><font size=2 face="sans-serif">Sometimes you need to run the test through
many billions of events to see a difference.</font>
<br>
<br><font size=2 face="sans-serif">Consider this - the filter could be
complicated and the event could be tiny (say, one integer). In this case,
filtering would hurt you even if 99% of events are not written to the buffer.</font>
<br>
<br><font size=2 color=#000080 face="sans-serif">Amit Margalit</font>
<br><font size=2 color=#808000 face="sans-serif">IBM XIV </font><font size=2 face="sans-serif">-
<i>Storage Reinvented</i></font>
<br><font size=2 face="sans-serif">XIV-NAS Development Team</font>
<br><font size=2 face="sans-serif">Tel. 03</font><font size=2 face="Arial">-689-7774</font>
<br><font size=2 face="Arial">Fax. 03-689-7230</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Michel Dagenais <michel.dagenais@polymtl.ca></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Ilya Mirsky <ilya.mirsky@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">Amit Margalit/Israel/IBM@IBMIL,
lttng-dev@lists.lttng.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">03/19/2014 10:48 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [lttng-dev]
Performance impact using the "filter" option</font>
<br>
<hr noshade>
<br>
<br>
<br>
<br><font size=3 face="Arial">That's what I thought, but benchmarking showed
that there's practically no difference.</font>
<br><font size=3 face="Arial">The filter is a simple ID comparison of the
form 'id % 1,000 == 0', so 999 out of 1K tracepoints are filtered out.</font>
<br><font size=3 face="Arial">Could you please point me to some references
on this topic?</font>
<br><font size=3>What is the running time and trace size with tracing disabled,
with tracing enabled unconditionally, and with tracing under condition?
If tracing takes negligible time, filtering will not change much. Note
that I have not experimented with the current UST filter implementation
but with a similar facility in GDB and an in-kernel prototype.</font>
<br><font size=3>This article is not directly related but discusses many
of these issues<br>
</font><a href=http://benthamscience.com/open/tocsj/articles/V006/11TOCSJ.htm><font size=3>http://benthamscience.com/open/tocsj/articles/V006/11TOCSJ.htm</font></a>
<br>