<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2017 at 16:49, Jeffrey Chen <span dir="ltr"><<a href="mailto:cpthk@live.com" target="_blank">cpthk@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-1350089122956405048divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>I just tried using smaller value of subbuf size, and it works fine. I have 16GB of memory in my host, so I should have more than enough memory. The same size works fine in my host machine. My Docker container does not have any resource constraint. Do you
 know what could be the reason of the failure?</p>
<p>Thanks.<br>
</p>
<br></div></div></blockquote><div><br></div><div>My guess is some limitation or bug where the subbuffer size and tracefile size can't be the same. I'll have to look into it.</div><div><br></div><div>Jérémie</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_-1350089122956405048divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-1350089122956405048divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><span class=""><b>From:</b> <a href="mailto:jeremie.galarneau@gmail.com" target="_blank">jeremie.galarneau@gmail.com</a> <<a href="mailto:jeremie.galarneau@gmail.com" target="_blank">jeremie.galarneau@gmail.com</a>> on behalf of Jérémie Galarneau <<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.<wbr>com</a>><br>
</span><b>Sent:</b> Monday, April 10, 2017 12:26 PM<div><div class="h5"><br>
<b>To:</b> Jeffrey Chen<br>
<b>Cc:</b> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<b>Subject:</b> Re: [lttng-dev] LTTng on Docker</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 10 April 2017 at 14:06, Jeffrey Chen <span dir="ltr">
<<a href="mailto:cpthk@live.com" target="_blank">cpthk@live.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="m_-1350089122956405048gmail-m_-3517871239381958006divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif">
<p>I have attached the logs from the lttng daemon. I could see errors like below.</p>
<p><br>
</p>
<p></p>
<div><span style="background-color:rgb(255,255,0)">Error: Error creating UST channel "channel0" on the consumer daemon</span><br>
</div>
<p></p>
<p><br>
</p>
<p>My commands to create a session are:</p>
<p></p>
<div>lttng create test<br>
lttng enable-channel --session test --userspace --tracefile-size 8388608 --subbuf-size 8388608 channel0<br>
lttng enable-event --channel channel0 --userspace "service:*"<br>
lttng add-context -u -t vtid<br>
lttng add-context -u -t vpid<br>
lttng start<br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for the info. Can you try to create the channel with the default values and see if it works?</div>
<div><br>
</div>
<div>$ lttng enable-channel --session test --userspace channel0</div>
<div> </div>
<div>Also, can you re-capture the session daemon logs launching it with the "-vvv --verbose-consumer" option since the problem appears to occur on the consumer's end.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Jérémie</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="m_-1350089122956405048gmail-m_-3517871239381958006divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif">
<div><br>
Installed:<br>
<span>apt-get -y install lttng-tools lttng-modules-dkms liblttng-ust0 <span>liblttng-ust-dev</span></span>
<br>
</div>
<br>
<p></p>
Thanks.<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr style="display:inline-block;width:98%">
<div id="m_-1350089122956405048gmail-m_-3517871239381958006x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
<a href="mailto:jeremie.galarneau@gmail.com" target="_blank">jeremie.galarneau@gmail.com</a> <<a href="mailto:jeremie.galarneau@gmail.com" target="_blank">jeremie.galarneau@gmail.com</a>> on behalf of Jérémie Galarneau <<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.co<wbr>m</a>><br>
<b>Sent:</b> Sunday, April 9, 2017 2:06 PM<br>
<b>To:</b> Jeffrey Chen<br>
<b>Cc:</b> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<b>Subject:</b> Re: [lttng-dev] LTTng on Docker</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="m_-1350089122956405048gmail-m_-3517871239381958006PlainText"><span class="m_-1350089122956405048gmail-">On 7 April 2017 at 18:35, Jeffrey Chen <<a href="mailto:cpthk@live.com" target="_blank">cpthk@live.com</a>> wrote:<br>
> Hi:<br>
><br>
><br>
> I am trying to have LTTng UST tracing inside a docker container. I wasn't<br>
> able to get the UST tracing working. LTTng would not write any UST trace<br>
> files in the directory, even though it printed it would. Has it been tested<br>
> before? Is there any known problem?<br>
<br>
Tracing inside a container (not Docker), where the LTTng daemons and<br>
the applications are running in the same container, is known to work<br>
as this is how most of the LTTng CI works.<br>
<br>
As far as Docker is concerned, I tested it a number of times and it<br>
worked. Can you provide the versions of LTTng and Docker you're using<br>
and the session daemon's logs (launching it with the -vvv option)?<br>
<br>
Thanks,<br>
Jérémie<br>
<br>
><br>
><br>
> $ lttng enable-channel --session test --userspace channel0<br>
><br>
> Error: Channel channel0: UST create channel failed (session ServiceFabric_0)<br>
> Error: Command error<br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<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="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" id="m_-1350089122956405048gmail-m_-3517871239381958006LPlnk632716" target="_blank">
https://lists.lttng.org/cgi-bi<wbr>n/mailman/listinfo/lttng-dev</a> </span>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPBorder_GT_14918472778530.7749348336754354" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-1350089122956405048gmail-m_-3517871239381958006LPContainer_14918472778450.52263434094437" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr valign="top">
<td id="m_-1350089122956405048gmail-m_-3517871239381958006TextCell_14918472778480.4117515003584903" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPRemovePreviewContainer_14918472778480.343333967527086">
</div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPTitle_14918472778480.8766887868350135" style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:wf_segoe-ui_light,"segoe ui light","segoe wp light","segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;line-height:21px">
<a id="m_-1350089122956405048gmail-m_-3517871239381958006LPUrlAnchor_14918472778490.7079886027354777" href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" style="text-decoration:none" target="_blank">lttng-dev Info Page</a></div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPMetadata_14918472778500.47112231589813147" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;font-size:14px;line-height:14px">
<a href="http://lists.lttng.org" target="_blank">lists.lttng.org</a></div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPDescription_14918472778520.6602582148353134" style="display:block;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
To see the collection of prior postings to the list, visit the lttng-dev Archives. Using lttng-dev: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<span class="m_-1350089122956405048gmail-"><br>
><br>
<br>
<br>
<br>
-- <br>
Jérémie Galarneau<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" id="m_-1350089122956405048gmail-m_-3517871239381958006LPlnk440294" target="_blank">http://www.efficios.com</a>
</span>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPBorder_GT_14918473357550.248963055382728" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-1350089122956405048gmail-m_-3517871239381958006LPContainer_14918473357460.414424549224911" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr valign="top">
<td id="m_-1350089122956405048gmail-m_-3517871239381958006TextCell_14918473357480.9923752452490312" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPRemovePreviewContainer_14918473357480.48768909434730534">
</div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPTitle_14918473357490.5288885228874352" style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:wf_segoe-ui_light,"segoe ui light","segoe wp light","segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;line-height:21px">
<a id="m_-1350089122956405048gmail-m_-3517871239381958006LPUrlAnchor_14918473357500.7067378978625205" href="http://www.efficios.com/" style="text-decoration:none" target="_blank">EfficiOS</a></div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPMetadata_14918473357520.6810205760820718" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.efficios.com" target="_blank">www.efficios.com</a></div>
<div id="m_-1350089122956405048gmail-m_-3517871239381958006LPDescription_14918473357530.6577156845495322" style="display:block;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"segoe ui","segoe wp",tahoma,arial,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
At EfficiOS, our main goal is diminishing the amount of time our clients spend identifying faults. We also enable our clients' applications to scale on massive multi ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</span></font></div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-1350089122956405048gmail_signature">Jérémie Galarneau<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</div></div>