Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-08 Thread Daniel-Constantin Mierla
Hello, On 08/04/16 13:42, Lucian Balaceanu wrote: > Hi, > > Ok, then in my case mem_join is not enabled. > > So the scenario is plausible, right? 8M of free private memory doesn't > mean neccesarily that there is a contiguous chunk of 200K. So such a > big pkg alloc can fail? yes, that is possibl

Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-08 Thread Lucian Balaceanu
Hi, Ok, then in my case mem_join is not enabled. So the scenario is plausible, right? 8M of free private memory doesn't mean neccesarily that there is a contiguous chunk of 200K. So such a big pkg alloc can fail? Thank you On 08.04.2016 12:48, Daniel-Constantin Mierla wrote: Hi Lucian, th

Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-08 Thread Daniel-Constantin Mierla
Hi Lucian, the mem_join is enabled by default -- I checked from 4.1.x to 4.3.x. In the Makefile.defs should be a: C_DEFS+= -DMEM_JOIN_FREE In 4.4 I just noticed it was lost when I added the feature to select the memory manger with command line option -x. I will fix it. Even MEM_JOIN_FREE is ena

Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-08 Thread Lucian Balaceanu
Hi Daniel, Thank you for yesterday's input. By doing some debugging on the 'no private memory left' I came to the conclusion that there is enough private memory as a whole to allocate the required amount, but that there is no single free chunk big enough to accommodate the required size. Thi

Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-07 Thread Daniel-Constantin Mierla
Hello, didn't get the time to look at the code, but pkg.stats should work also for mi process, maybe the module doesn't do proc init callback. It needs to be fixed in some way. Also, for timer processes, either there is a buffer overflow and the value of the size of an allocated packet is overwri

Re: [SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-07 Thread Lucian Balaceanu
Hi again, I get the pkg mem error inside the mi_fifo module and this seems not to be part of the `kamcmd pkg.stats`. I guess the only way to debug this mi_fifo process is by way of gdb as in https://www.kamailio.org/wiki/tutorials/troubleshooting/memory, right? Thank you, Lucian On 06.04.20

[SR-Users] Question about debugging using `kamcmd pkg.stats`

2016-04-06 Thread Lucian Balaceanu
Hi Daniel, While debugging a 'no private memory left' issue by using `kamcmd pkg.stats` we stumbled upon data we don't understand. Could you help with some information? `kamcmd pkg.stats`returns free values of about 8M per process with an exception: kamailio with no apparent problems: `tim