<p dir="ltr">I also had issues with too high trace throughput for the disk. Here are few other suggestions.</p>
<p dir="ltr">- Use SSD drive<br>
- Raise io priority of consumer daemons with ionice<br>
- Enable only events that are absolutely required<br>
- Reduce CPU frequency to reduce event rate<br>
- Reduce the number of active threads</p>
<p dir="ltr">Good luck,</p>
<p dir="ltr">Francis</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/16/2015 09:24 PM, Mathieu Desnoyers wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you care about not overwriting your buffers under heavy load, I<br>
recommend to issue "lttng stop; lttng snapshot record" in order to<br>
stop tracing before gathering the snapshot. This would lessen the<br>
chances to overwrite your important trace data due to your heavy<br>
load.<br>
</blockquote>
Yeah, that perfectly makes sense. I tried this and it indeed helped to not loose a single trace anymore! (without 'lttng stop' some 'snapshots' still didn't contain what I was interested in). For the records, this is how I currently use LTTng:<br>
<br>
lttng create --snapshot victory<br>
lttng enable-channel channel0 -k --subbuf-size 16M --num-subbuf 2<br>
lttng add-context -k -t procname -c channel0<br>
lttng enable-event -k --all -c channel0<br>
for i in $(ps -mo tid -p `pgrep lttng-consumerd` | grep -v "TID" | grep -v "-"); do sudo chrt -f -p 50 $i; done<br>
lttng start<br>
<br>
chrt -f 50 ./run_my_test-application_here # this app (programmed in C/C++) performs a 'system("lttng stop; lttng snapshot record; lttng start");' whenever a certain jitter is reached<br>
<br>
lttng stop<br>
lttng destroy<br>
<br>
<br>
I guess the line:<br>
for i in $(ps -mo tid -p `pgrep lttng-consumerd` | grep -v "TID" | grep -v "-"); do sudo chrt -f -p 50 $i; done<br>
wouldn't be necessary anymore (with 'lttng stop') but I didn't try that.<br>
<br>
Cheers,<br>
Raphael<br>
<br>
______________________________<u></u>_________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-<u></u>bin/mailman/listinfo/lttng-dev</a><br>
</div>