[SR-Users] How to check which memory allocator kamailio is using ?

sagar malam sagarmalam at gmail.com
Fri Sep 11 14:24:47 CEST 2020


Hello Henning,

It shows all the 3 types of allocators. Does that mean that
default(q_malloc) one is used ?
[root at SBC-4-2 ~]# kamailio -I

Print out of kamailio internals
 Version: kamailio 5.4.0 (x86_64/linux) 6c4fce
 Default config: /usr/local/etc/kamailio/kamailio.cfg
 Default paths to modules: /usr/local/lib64/kamailio/modules
 Compile flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC,
*Q_MALLOC, F_MALLOC, TLSF_MALLOC*, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLACKLIST, HAVE_RESOLV_RES
 MAX_RECV_BUFFER_SIZE=262144
 MAX_URI_SIZE=1024
 BUF_SIZE=65535
 DEFAULT PKG_SIZE=8MB
 DEFAULT SHM_SIZE=64MB
 ADAPTIVE_WAIT_LOOPS=1024
 TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
 Source code revision ID: 6c4fce
 Compiled with: gcc 4.8.5
 Compiled architecture: x86_64
 Compiled on: 11:47:52 Sep  1 2020
Thank you for flying kamailio!



On Thu, Sep 10, 2020 at 9:03 PM Henning Westerholt <hw at skalatan.de> wrote:

> Hello,
>
>
>
> Try to execute “kamailio -I” to get some information about the internal
> compiled variants.
>
>
>
> If you don’t specify it on the command line it is since 2016 the qmalloc
> one, to help debugging memory problems. Before that it was the fmalloc.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users <sr-users-bounces at lists.kamailio.org> *On Behalf Of *sagar
> malam
> *Sent:* Wednesday, September 9, 2020 11:09 AM
> *To:* Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
> *Subject:* [SR-Users] How to check which memory allocator kamailio is
> using ?
>
>
>
> Hello ,
>
>
>
> Is there any way to check if the memory allocator is used by kamailio ?
> qmalloc,fmalloc or tlsf.
>
>
>
>
>
> --
>
> Thanks,
>
>
>
> Sagar
>


-- 
Thanks,

Sagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200911/af28f55b/attachment.htm>


More information about the sr-users mailing list