This PR comes as a result to enabling MALLOC_STATS on 4.1 branch and noticing kamailio slowdown. On 4.1 the slowdown was happening because each time a memory function was called, iteration through all fragments happened upon pkg_info.

On master this is not happening anymore, because qm->ffrags variable counts the fragments "on the fly", while memory functions are called. Still, is it necessarily to call pkg_proc_update_stats() callback every time?!

Feel free to close this if not needed.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/567

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub