There is a needed patch for quagga, specifically bgpd that prevents it from leaking memory. On a busy router, it leaks about 1MB every 10min. Description of the problem and patch are found http://lists.quagga.net/pipermail/quagga-users/2011-October/012529.html Fix: --- bgpd/bgp_attr.c +++ 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 -- The above patch can be added into the files directory of the port and I added PORTREVISION= 1 to the port's Makefile How-To-Repeat: startup quagga with bgp and a full table. Watch memory usage grow.
Maintainer of net/quagga, Please note that PR ports/161668 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/161668
Responsible Changed From-To: freebsd-ports-bugs->zi I'll take it.
Hello! Agreed, but full patch attached. -- Regards, Boris
zi 2011-10-18 14:43:45 UTC FreeBSD ports repository Modified files: net/quagga Makefile Added files: net/quagga/files patch-bgpd__bgp_attr.c Log: - Resolve memory leak in bgpd - Bump PORTREVISION WWW: http://lists.quagga.net/pipermail/quagga-users/2011-October/012529.html PR: ports/161668 Submitted by: Mike Tancsa <mike@sentex.net> Approved by: Boris Kovalenko <boris@tagnet.ru> (maintainer) Obtained from: quagga-users mailing list Revision Changes Path 1.114 +1 -0 ports/net/quagga/Makefile 1.1 +10 -0 ports/net/quagga/files/patch-bgpd__bgp_attr.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!