<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><style style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style></div><div>Yes, we open and then unlink the file in the shm within consumerd.<br></div><div>Its inode stays reserved on the disk as long as we have at least<br data-mce-bogus="1"></div><div>one handle on it.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>We do file descriptor passing from consumerd to sessiond to<br data-mce-bogus="1"></div><div>the application over unix sockets.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>The reason why we unlink the file shortly after creation by consumerd<br data-mce-bogus="1"></div><div>is to make sure we teardown all resources cleanly even in case the<br data-mce-bogus="1"></div><div>consumerd would be killed by a SIGKILL.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Sep 28, 2016, at 7:38 PM, Jeffrey Chen <cpthk@live.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>It looks like the code that called shm_open() is called at the lttng-consumerd daemon. But, somehow it show up in the pmap at my service process. I noticed all my processes that loads liblttng-ust would have this entry. Do you know what's the reason?<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-size: 11pt; color: #000000; font-family: Calibri,sans-serif;" data-mce-style="font-size: 11pt; color: #000000; font-family: Calibri,sans-serif;" color="#000000" face="Calibri, sans-serif"><b>From:</b> lttng-dev <lttng-dev-bounces@lists.lttng.org> on behalf of Jeffrey Chen <cpthk@live.com><br>
<b>Sent:</b> Tuesday, September 27, 2016 11:20 AM<br>
<b>To:</b> lttng-dev<br>
<b>Subject:</b> [lttng-dev] LTTng memory map</span>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi LTTng:</p>
<p><br>
</p>
<p>Our service has been running overnight with LTTng enabled to do some memory consumption testing. We noticed the linux pmap output would have several memory map used by LTTng, and are marked as deleted. Do you know what are them? Why are they left in the
system and marked as deleted? Thanks.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div>
<p class="MsoNormal">00007fc3017ee000 40968 592 592 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3017ee000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc303ff0000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc303ff0000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3067f2000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3067f2000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc308ff4000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc308ff4000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc30b7f6000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc30b7f6000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc30dff8000 40968 524 524 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc30dff8000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3107fa000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3107fa000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc312ffc000 40968 244 244 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc312ffc000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3157fe000 40968 396 396 rw-s- ust-shm-consumer-58905 (deleted)</p>
<p class="MsoNormal">00007fc3157fe000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)</p>
</div>
<br>
<p></p>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>