Thread (2 messages) 2 messages, 2 authors, 2011-09-09

Re: Memory leak in ip_dst_cache

flat view

From: Eric Dumazet <hidden>
Date: 2011-09-09 21:47:05

Le vendredi 09 septembre 2011 à 13:48 -0700, Kumar S a écrit :
Hi Eric,
I did not flush those routes explicitly. They are flushed out
automatically by calling "rt_run_flush". It inturn calls rt_free(),
but __cache_free() never gets called after that. Basically, I have 512
MBytes of memory on board. I want to restrict the cache to around 64k,
with max_size. But if I do that due to this leak, TCP/IP communication
stops working when it reaches 64k.
 
Your dsts use about 3Mb of memory out of 512Mb. Its certainly not the
reason of the failures you have.

Its not a leak.

All "in use" dst are queued in dst_gc, check net/core/dst.c for details.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help