Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-pkt-v4-hc (6.5.0SP1) memory leak??: (12 Items)
   
io-pkt-v4-hc (6.5.0SP1) memory leak??  
I'm seeing about a 4K memory leak from io-pkt-v4-hc.

I have QNX 6.5.0 SP1 installed.

I have three io-pkt-v4-hc loaded.  Two of them show memory leaks... 
1.  Connected to enet.
2.  Conneded to wifi.


# showmem -P 

Process listing (Total, Code, Data, Heap, Stack, Other)

 1097728     106496      53248     843776      94208          0       24594 io-pkt-v4-hc
  3297280     974848      57344    2166784      98304          0      122906 io-pkt-v4-hc


a few minutes later.


  1105920     106496      53248     851968      94208          0       24594 io-pkt-v4-hc
  3305472     974848      57344    2174976      98304          0      122906 io-pkt-v4-hc

clearly we can see that the io-pkt-v4-hc's Heap is growing.

Any help would be appreciated.
-stv
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
Is there any type of networking activity occurring on those two 
instances? Or are you seeing the increase in memory consumption with the 
interfaces configured or unconfigured?
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
io-pkt uses a pool allocation mechanism that at startup can slowly grow until a steady state is achieved after a few 
minutes. Is this "leak" shortly after startup or is it once io-pkt has been running for a while?

Also check with "netstat -m" to see if the memory leak is perhaps an mbuf leak.

Do you have any ppp interfaces? We have addressed a leak in ppp dial on demand.
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
Thanks for the quick replies.

Gervais --
    Yes there is "some" networking traffic.  
   I have a dhcp client running on both interfaces.
   I have telnet running on one of the interfaces.
  I'll look at the unconfigure to see if that yields anything

Nick --
   This is a leak.  Memory will keep disappearing until the system "crashes".  I can't fork, I can't do anything.
   I'll check the netstat -m 
   no ppp

 
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
Which devnp drivers are you using and can you confirm the version by 
copying the output of "use -i" for each?
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
io-pkt-v4-hc -ptcpip prefix=/alt &  <- this is in my build shell, this one doesn't ever leak.


io-pkt-v4-hc -dasix -ptcpip prefix=/alt2  <- this is the one that leaks.

 use -i io-pkt-v4-hc
NAME=io-pkt-v4-hc
DESCRIPTION=TCP/IP protocol module.
DATE=2012/06/20-13:36:20-EDT
STATE=stable
HOST=gusbuild4
USER=builder
VERSION=6.5.0
TAGID=650SP1-166

To simplify stuff I'm only loading this one right now.  And I have no telnet either, just dhcp.  It's been running for 
about 15 minutes no leak yet.

I'll give it 5 more minutes and then start a telnet session to see if that causes the leak.


Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
There have been numerous updates to the Asix driver, so I can send you an
experimental version. What platform are you running on - x86 or ARM?



On 2014/8/11, 11:38 AM, "Steve Iribarne" <community-noreply@qnx.com> wrote:

>io-pkt-v4-hc -ptcpip prefix=/alt &  <- this is in my build shell, this
>one doesn't ever leak.
>
>
>io-pkt-v4-hc -dasix -ptcpip prefix=/alt2  <- this is the one that leaks.
>
> use -i io-pkt-v4-hc
>NAME=io-pkt-v4-hc
>DESCRIPTION=TCP/IP protocol module.
>DATE=2012/06/20-13:36:20-EDT
>STATE=stable
>HOST=gusbuild4
>USER=builder
>VERSION=6.5.0
>TAGID=650SP1-166
>
>To simplify stuff I'm only loading this one right now.  And I have no
>telnet either, just dhcp.  It's been running for about 15 minutes no leak
>yet.
>
>I'll give it 5 more minutes and then start a telnet session to see if
>that causes the leak.
>
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post111371
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
ARM

Thanks.. that would be fantastic!!
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
Driver attached. This version is a native io-pkt driver.




On 2014/8/11, 11:51 AM, "Steve Iribarne" <community-noreply@qnx.com> wrote:

>ARM
>
>Thanks.. that would be fantastic!!
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post111373
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Attachment: Text devnp-asix.so 78.25 KB
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
That driver looks much better.. I'll be testing it now in my "production" world.
I will report when/if I find something.
In addition I will report if everything works.
Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
It seems to be much better.  So I'd say this is now solved.

Re: io-pkt-v4-hc (6.5.0SP1) memory leak??  
OK, thanks.




On 2014/8/13, 9:19 AM, "Steve Iribarne" <community-noreply@qnx.com> wrote:

>It seems to be much better.  So I'd say this is now solved.
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post111401
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com