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 overwritten with an invalid packet resulting in wrong values overall or something else is wrong in other part for this particular process types. Anyhow, no value should be more that the allocated pkg size.
The values are:
- used - how much memory is allocated for data - real used - it is the value for 'used' plus the overhead of each packet (the structure per packet that holds the length, next packet, etc ... plus the debug details like pointer to file and line for debug mode).
Cheers, Daniel
On 07/04/16 10:30, Lucian Balaceanu wrote:
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.2016 20:52, Lucian Balaceanu wrote:
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: `timer` process: free value: 8M used value: 100M real_used: 308M. kamailio with no private memory left: `timer` process: free value: 8/9M used value: 98M real_used: 662M (both mentioned kamailios have roughly the same load)
Are these timer values normal? What is this real_used value and how can it be bigger than the allocated pkg mem? Additionally, how come we don't see the fifo process pkg stats in the output of `kamcmd pkg.stats`?
We get the error message when doing reloading backlists via kamctl fifo.
Thank you, Lucian Balaceanu
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users