[quagga-dev 8813] Re: Excessive memory usage in bgpd

Oleg A. Arkhangelsky sysoleg at yandex.ru
Tue Sep 6 15:59:51 BST 2011



06.09.2011, 18:51, "Paul Jakma" <paul at jakma.org>:

> Can you telnet to the bgpd vty interface and get 'show memory' output? Can
> you narrow down where it's leaking? What do you mean by "excessive memory
> usage"? etc.

Not sure if this fix is correct, but there is no leak with patch below.

BGP instance                  :          1
BGP listen socket details     :          2
BGP peer                      :          2
BGP peer hostname             :          2
BGP attribute                 :      65519
BGP extra attributes          :      65519
BGP aspath                    :      56712
BGP aspath seg                :      56761
BGP aspath segment data       :      56761
BGP aspath str                :      56712

Previously there was excessive "BGP extra attributes" objects.

diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index d43c104..3908e72 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -675,6 +675,7 @@ bgp_attr_unintern (struct attr **attr)
     }
 
   bgp_attr_unintern_sub (&tmp);
+  bgp_attr_extra_free (&tmp);
 }
 
 void


-- 
wbr, Oleg.



More information about the Quagga-dev mailing list