<p>Hi Daniel,</p>

<p>You are right, this is meant to replace the iteration related to total_frags with the new field.</p>

<p>On a deeper analysis however, I see I have not fully taken in consideration (at least) the shm vs private memory distinction in relation to triggering the execution of sr_event SREV_PKG_SET_FRAGS in q/f_malloc.c (in master you introduced the qm->type==MEM_TYPE_PKG which allows you to change the position of sr_event_exec for SREV_PKG_UPDATE_STATS vs previous SREV_PKG_SET_USED ) <br>
This enhancement seems more complex than anticipated. I will close the pull request.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/575#issuecomment-212423399">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZVYkgWguFFQsS0tcxq98M4ULvmSwks5p5il6gaJpZM4IK4MD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/575#issuecomment-212423399"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>