[sr-dev] [kamailio/kamailio] kex: Call pkg_proc_update_stats only when needed (#567)

Stefan Mititelu notifications at github.com
Thu Apr 14 16:40:00 CEST 2016


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 --

  * kex: Call pkg_proc_update_stats only when needed

-- File Changes --

    M events.c (13)
    M events.h (1)
    M mem/f_malloc.c (9)
    M mem/q_malloc.c (18)
    M modules/kex/pkg_stats.c (3)

-- Patch Links --

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

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160414/67a5a86b/attachment.html>


More information about the sr-dev mailing list