last pkg.stats entry

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

last pkg.stats entry

Juha Heinanen
When I make pkg.stats query (latest master), I get a weird last entry.
What is it?

-- Juha

...
{
        entry: 28
        pid: 14675
        rank: -4
        used: 9450336
        free: 2354944
        real_used: 10227968
        total_size: 12582912
        total_frags: 310
}
{
        entry: 29
        pid: 0
        rank: -128
        used: 0
        free: 0
        real_used: 0
        total_size: 12582912
        total_frags: 0
}

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: last pkg.stats entry

Daniel-Constantin Mierla-6
Can you do ps and see the list of kamailio processes, then compare by
pid and see if there is one missing in the kamctl output or is one too
much in the kamctl output?

Cheers,
Daniel


On 01.09.17 08:42, Juha Heinanen wrote:

> When I make pkg.stats query (latest master), I get a weird last entry.
> What is it?
>
> -- Juha
>
> ...
> {
> entry: 28
> pid: 14675
> rank: -4
> used: 9450336
> free: 2354944
> real_used: 10227968
> total_size: 12582912
> total_frags: 310
> }
> {
> entry: 29
> pid: 0
> rank: -128
> used: 0
> free: 0
> real_used: 0
> total_size: 12582912
> total_frags: 0
> }
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [hidden email]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: last pkg.stats entry

Juha Heinanen
Daniel-Constantin Mierla writes:

> Can you do ps and see the list of kamailio processes, then compare by
> pid and see if there is one missing in the kamctl output or is one too
> much in the kamctl output?

There is one too much in pkg.stats output and that is the last one with
pid 0:

> > ...
> > {
> > entry: 28
> > pid: 14675
> > rank: -4
> > used: 9450336
> > free: 2354944
> > real_used: 10227968
> > total_size: 12582912
> > total_frags: 310
> > }
> > {
> > entry: 29
> > pid: 0
> > rank: -128
> > used: 0
> > free: 0
> > real_used: 0
> > total_size: 12582912
> > total_frags: 0
> > }

-- Juha

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: last pkg.stats entry

Daniel-Constantin Mierla-6
OK - I will look into it soon.

Daniel


On 01.09.17 11:07, Juha Heinanen wrote:

> Daniel-Constantin Mierla writes:
>
>> Can you do ps and see the list of kamailio processes, then compare by
>> pid and see if there is one missing in the kamctl output or is one too
>> much in the kamctl output?
> There is one too much in pkg.stats output and that is the last one with
> pid 0:
>
>>> ...
>>> {
>>> entry: 28
>>> pid: 14675
>>> rank: -4
>>> used: 9450336
>>> free: 2354944
>>> real_used: 10227968
>>> total_size: 12582912
>>> total_frags: 310
>>> }
>>> {
>>> entry: 29
>>> pid: 0
>>> rank: -128
>>> used: 0
>>> free: 0
>>> real_used: 0
>>> total_size: 12582912
>>> total_frags: 0
>>> }
> -- Juha

--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: last pkg.stats entry

Daniel-Constantin Mierla-6
Should be fixed now in master -- secondary timer was counted twice,
resulting in an extra entry in process table that was not filled
(overall harmless, just empty content) -- I will backport in 5.0 as well.

Cheers,
Daniel

On 01.09.17 11:23, Daniel-Constantin Mierla wrote:

> OK - I will look into it soon.
>
> Daniel
>
>
> On 01.09.17 11:07, Juha Heinanen wrote:
>> Daniel-Constantin Mierla writes:
>>
>>> Can you do ps and see the list of kamailio processes, then compare by
>>> pid and see if there is one missing in the kamctl output or is one too
>>> much in the kamctl output?
>> There is one too much in pkg.stats output and that is the last one with
>> pid 0:
>>
>>>> ...
>>>> {
>>>> entry: 28
>>>> pid: 14675
>>>> rank: -4
>>>> used: 9450336
>>>> free: 2354944
>>>> real_used: 10227968
>>>> total_size: 12582912
>>>> total_frags: 310
>>>> }
>>>> {
>>>> entry: 29
>>>> pid: 0
>>>> rank: -128
>>>> used: 0
>>>> free: 0
>>>> real_used: 0
>>>> total_size: 12582912
>>>> total_frags: 0
>>>> }
>> -- Juha

--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: last pkg.stats entry

Juha Heinanen
Daniel-Constantin Mierla writes:

> Should be fixed now in master -- secondary timer was counted twice,
> resulting in an extra entry in process table that was not filled
> (overall harmless, just empty content) -- I will backport in 5.0 as
> well.

Thanks for the fix.  Tested and extra entry is gone.

-- Juha

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users