Re: [B.A.T.M.A.N.] batman-adv: memory leak?

Russell Senior
2014-01-22T19:18:09Z

>>>>> "Antonio" == Antonio Quartulli <antonio@meshcoding.com> writes:

Russell> Has anybody else seen this memory leak? Leads on where it's
Russell> coming from? Not a runaway process, at least not that top
Russell> shows up. Just a gradual disappearance from MemFree that
Russell> /proc/sys/vm/drop_caches doesn't fix. It isn't adhoc mode,
Russell> and I can associate the two devices over adhoc and move a
Russell> bunch of data with no memory lost, but turning on batman-adv
Russell> seems to sink it.

Russell> The memory leak I see seems to commence as soon as a
Russell> batman-adv neighbor (same version, in this case 15) appears
Russell> and stops when the neighbor goes away.

Antonio> Thank you very much for the hint Russel! Today I tried with
Antonio> one node only, but kmemleak did not report anything...

Russell> I am going to try enabling kmemleak and see of that tells me
Russell> anything.

Antonio> Thanks! Keep us informed!

Here is a bootlog in which I spit out a bunch of kmemleak stuff into a
console (captured by /usr/bin/screen, sorry for the extraneous line
feed silliness).

https://personaltelco.net/~russell/kmemleak-batman-from-boot.log

If I count instances, it looks like batadv_orig_node_vlan_new (and the
things that are calling it) may be implicated.

Hope that helps!

--
Russell Senior, President
russell@personaltelco.net