Discussion:
[SR-Users] pkg.stats
Vitaliy Aleksandrov
2014-07-18 16:22:14 UTC
Permalink
Hi list,

I have a problem with pkg.stats for tcp.main process on kamailio "4.1.2
73ea61-dirty".
kamailio has 64M of private memory for each process (-M 64).

pkg.stats for tcp.main process shows that is uses 75M and still has 62M
free:
{
entry: 36
pid: 10032
rank: -4
used: 73109720
free: 65891192
real_used: 79146048
}

***@webRTC:~# ps -p 10032 -o pid,tid,state,pcpu,pmem,rss,size,sz,vsz,args
PID TID S %CPU RSS SIZE SZ VSZ COMMAND
10032 10032 S 0 26420 67508 76821 307284
/.../kamailio -f /.../kamailio.cfg -P /.../kamailio.pid -m 128 -M 64 -u
kamailio -g kamailio

This server handles 1000+ tcp/tls connections and works just fine for
the last two months. That's why i think this is not a memory leak and
just a pkg.stats problem.

Does anybody else saw this or maybe somebody is already working to fix it ?
Daniel-Constantin Mierla
2014-07-21 08:01:28 UTC
Permalink
Hello,

there were some issues with pkgstats that I worked on in master branch.
Can you give it a try and see if works ok? If all fine, I will look at
backporting, but there were other changes I did in master for a bit more
optimizations for memory manager.

Cheers,
Daniel
Post by Vitaliy Aleksandrov
Hi list,
I have a problem with pkg.stats for tcp.main process on kamailio
"4.1.2 73ea61-dirty".
kamailio has 64M of private memory for each process (-M 64).
pkg.stats for tcp.main process shows that is uses 75M and still has
{
entry: 36
pid: 10032
rank: -4
used: 73109720
free: 65891192
real_used: 79146048
}
pid,tid,state,pcpu,pmem,rss,size,sz,vsz,args
PID TID S %CPU RSS SIZE SZ VSZ COMMAND
10032 10032 S 0 26420 67508 76821 307284
/.../kamailio -f /.../kamailio.cfg -P /.../kamailio.pid -m 128 -M 64
-u kamailio -g kamailio
This server handles 1000+ tcp/tls connections and works just fine for
the last two months. That's why i think this is not a memory leak and
just a pkg.stats problem.
Does anybody else saw this or maybe somebody is already working to fix
it ?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Vitaliy Aleksandrov
2014-07-21 08:32:09 UTC
Permalink
Hello,
If there are no changes in configuration script logic and in behavior of
main modules I can try it.
Post by Daniel-Constantin Mierla
Hello,
there were some issues with pkgstats that I worked on in master
branch. Can you give it a try and see if works ok? If all fine, I will
look at backporting, but there were other changes I did in master for
a bit more optimizations for memory manager.
Cheers,
Daniel
Post by Vitaliy Aleksandrov
Hi list,
I have a problem with pkg.stats for tcp.main process on kamailio
"4.1.2 73ea61-dirty".
kamailio has 64M of private memory for each process (-M 64).
pkg.stats for tcp.main process shows that is uses 75M and still has
{
entry: 36
pid: 10032
rank: -4
used: 73109720
free: 65891192
real_used: 79146048
}
pid,tid,state,pcpu,pmem,rss,size,sz,vsz,args
PID TID S %CPU RSS SIZE SZ VSZ COMMAND
10032 10032 S 0 26420 67508 76821 307284
/.../kamailio -f /.../kamailio.cfg -P /.../kamailio.pid -m 128 -M 64
-u kamailio -g kamailio
This server handles 1000+ tcp/tls connections and works just fine for
the last two months. That's why i think this is not a memory leak and
just a pkg.stats problem.
Does anybody else saw this or maybe somebody is already working to
fix it ?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-07-21 09:31:14 UTC
Permalink
Hello,
Post by Daniel-Constantin Mierla
Hello,
If there are no changes in configuration script logic and in behavior
of main modules I can try it.
I don't recall any major changes there, most probably the config will
just work with master branch. Let me know the results.

Cheers,
Daniel
Post by Daniel-Constantin Mierla
Post by Daniel-Constantin Mierla
Hello,
there were some issues with pkgstats that I worked on in master
branch. Can you give it a try and see if works ok? If all fine, I
will look at backporting, but there were other changes I did in
master for a bit more optimizations for memory manager.
Cheers,
Daniel
Post by Vitaliy Aleksandrov
Hi list,
I have a problem with pkg.stats for tcp.main process on kamailio
"4.1.2 73ea61-dirty".
kamailio has 64M of private memory for each process (-M 64).
pkg.stats for tcp.main process shows that is uses 75M and still has
{
entry: 36
pid: 10032
rank: -4
used: 73109720
free: 65891192
real_used: 79146048
}
pid,tid,state,pcpu,pmem,rss,size,sz,vsz,args
PID TID S %CPU RSS SIZE SZ VSZ COMMAND
10032 10032 S 0 26420 67508 76821 307284
/.../kamailio -f /.../kamailio.cfg -P /.../kamailio.pid -m 128 -M 64
-u kamailio -g kamailio
This server handles 1000+ tcp/tls connections and works just fine
for the last two months. That's why i think this is not a memory
leak and just a pkg.stats problem.
Does anybody else saw this or maybe somebody is already working to
fix it ?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...