Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Quagga: Dev

quagga/bgpd: memory leak? any ideas?

 

 

Quagga dev RSS feed   Index | Next | Previous | View Threaded


milen at gentoo

Apr 9, 2012, 4:52 AM

Post #1 of 9 (326 views)
Permalink
quagga/bgpd: memory leak? any ideas?

In last two weeks i have strange memory problems with quagga/bgpd on some of our routers

After about a day bgpd eats all of router memory (2G, 3G) on different routers with different quagga versions. (0.99.15,0.99.18 and 0.99.20)

All of the routers are connected to TWO Internet borders with FULL bgp ~400k routes

all are 32bit architecture
CPU Quad Core Q9550
total used free shared buffers cached
Mem: 1954 1574 380 0 18 19
-/+ buffers/cache: 1536 418
Swap: 1953 3 1949

quagga 8185 0.0 3.9 82952 79004 ? Ss Apr08 1:29 /usr/sbin/zebra -d -f /etc/quagga/zebra.conf -l 255 --pid_file /var/run/quagga/zebra.pid
quagga 8200 4.3 66.3 1332408 1328320 ? Rs Apr08 68:52 /usr/sbin/bgpd -d -f /etc/quagga/bgpd.conf --pid_file /var/run/quagga/bgpd.pid

After i reset bgpd process it frees all the memory and work fine for 1 or 2 days.

i tried community delete,extra attributes and couple of memory leak patches with no effect.

What that temporary memory mean and why it is so high ?

They all worked for about an year with no problems, but in last week i reset them every couple of days
updated some of routers to last quagga version but with no effect..

Any ideas how to fix this strange memory issue ?

15hours since bgpd reset:
Hello, this is Quagga (version 0.99.18).

Memory statistics for bgpd:
System allocator statistics:
Total heap allocated: 799 MiB
Holding block headers: 132 KiB
Used small blocks: 0 bytes
Used ordinary blocks: 766 MiB
Free small blocks: 16 bytes
Free ordinary blocks: 33 MiB
Ordinary blocks: 838464
Small blocks: 1
Holding blocks: 1
(see system documentation for 'mallinfo' for meaning)
-----------------------------
Temporary memory : 26572077
String vector : 9444
Vector : 4924
Vector index : 4924
Link List : 46
Link Node : 77
Thread : 236
Thread master : 1
Thread stats : 17
Thread function name : 137
VTY : 3
Interface : 38
Connected : 18
Buffer : 3
Buffer data : 1
Stream : 41
Stream data : 41
Stream FIFO : 18
Prefix : 34
Hash : 151
Hash Bucket : 389931
Hash Index : 151
Access List : 6
Access List Str : 6
Access Filter : 38
Prefix List : 1
Prefix List Entry : 4
Prefix List Str : 1
Route map : 23
Route map name : 23
Route map index : 25
Route map rule : 41
Route map rule str : 41
Route map compiled : 44
Command desc : 4732
Socket union : 32
Logging : 1
Zclient : 2
Work queue : 2
Work queue name string : 2
Host config : 5
-----------------------------
Nexthop : 8
-----------------------------
BGP instance : 1
BGP listen socket details : 1
BGP peer : 18
BGP peer hostname : 18
Peer description : 17
BGP attribute : 268345
BGP extra attributes : 32039
BGP aspath : 121493
BGP aspath seg : 121621
BGP aspath segment data : 121621
BGP aspath str : 121493
-----------------------------
BGP table : 28
BGP node : 737784
BGP route : 815231
BGP ancillary route info : 815127
BGP connected : 17
BGP static : 25
BGP synchronise : 144
BGP adj in : 815226
BGP adj out : 723
-----------------------------
community : 73
community val : 73
community str : 67
-----------------------------
extcommunity : 16
extcommunity val : 16
extcommunity str : 16
-----------------------------
community-list : 6
community-list name : 6
community-list entry : 9
community-list config : 3
community-list handler : 1
-----------------------------
BGP nexthop : 8
BGP peer update interface : 16
BGP regexp : 3

Hello, this is Quagga (version 0.99.15).
Memory statistics for bgpd:
System allocator statistics:
Total heap allocated: 804 MiB
Holding block headers: 132 KiB
Used small blocks: 0 bytes
Used ordinary blocks: 770 MiB
Free small blocks: 16 bytes
Free ordinary blocks: 34 MiB
Ordinary blocks: 735123
Small blocks: 1
Holding blocks: 1
(see system documentation for 'mallinfo' for meaning)
-----------------------------
Temporary memory : 26703688
String vector : 9434
Vector : 4919
Vector index : 4919
Link List : 94
Link Node : 161
Thread : 72
Thread master : 1
Thread stats : 16
Thread function name : 80
VTY : 3
Interface : 85
Connected : 50
Buffer : 3
Buffer data : 1
Stream : 49
Stream data : 49
Stream FIFO : 22
Prefix : 79
Hash : 183
Hash Bucket : 390782
Hash Index : 183
Access List : 5
Access List Str : 5
Access Filter : 15
Prefix List : 2
Prefix List Entry : 6
Prefix List Str : 2
Route map : 22
Route map name : 22
Route map index : 29
Route map rule : 55
Route map rule str : 55
Route map compiled : 66
Command desc : 4728
Socket union : 32
Logging : 1
Zclient : 2
Work queue : 3
Work queue name string : 3
Host config : 4
-----------------------------
Nexthop : 11
-----------------------------
BGP instance : 1
BGP listen socket details : 1
BGP peer : 22
BGP peer hostname : 22
Peer description : 21
BGP attribute : 269157
BGP extra attributes : 32197
BGP aspath : 121495
BGP aspath seg : 121623
BGP aspath segment data : 121623
BGP aspath str : 121495
-----------------------------
BGP table : 28
BGP node : 739280
BGP route : 815224
BGP ancillary route info : 815078
BGP static : 91
BGP adv attr : 34
BGP adv : 216
BGP synchronise : 176
BGP adj in : 21938
BGP adj out : 798863
-----------------------------
community : 79
community val : 79
community str : 72
-----------------------------
extcommunity : 16
extcommunity val : 16
extcommunity str : 16
-----------------------------
community-list : 8
community-list name : 8
community-list entry : 8
community-list handler : 1
-----------------------------
BGP nexthop : 11
BGP peer update interface : 13

3hours since reset and rising
Hello, this is Quagga (version 0.99.20).
Memory statistics for bgpd:
System allocator statistics:
Total heap allocated: 316 MiB
Holding block headers: 132 KiB
Used small blocks: 0 bytes
Used ordinary blocks: 283 MiB
Free small blocks: 16 bytes
Free ordinary blocks: 34 MiB
Ordinary blocks: 169512
Small blocks: 1
Holding blocks: 1
(see system documentation for 'mallinfo' for meaning)
-----------------------------
Temporary memory : 6383569
...
after ~5 minutes while i'm writing this mail
Memory statistics for bgpd:
System allocator statistics:
Total heap allocated: 322 MiB
Holding block headers: 132 KiB
Used small blocks: 0 bytes
Used ordinary blocks: 289 MiB
Free small blocks: 16 bytes
Free ordinary blocks: 33 MiB
Ordinary blocks: 176424
Small blocks: 1
Holding blocks: 1
(see system documentation for 'mallinfo' for meaning)
-----------------------------
Temporary memory : 6647621

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


jorge at dti2

Apr 9, 2012, 5:19 AM

Post #2 of 9 (318 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

El 09/04/2012 13:52, Milen Bogunski escribió:
> In last two weeks i have strange memory problems with quagga/bgpd on some of
> our routers
>
> After about a day bgpd eats all of router memory (2G, 3G) on different
> routers with different quagga versions. (0.99.15,0.99.18 and 0.99.20)

Can you post your configuration for bgpd?

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


milen at gentoo

Apr 9, 2012, 5:43 AM

Post #3 of 9 (331 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

GW3-Pop# sh runn
Building configuration...

Current configuration:
!
log file /var/log/zebra.log
log file /var/log/bgpd.log
log syslog
!
password zgwqwe
enable password zgwqwe
!
interface eth0
!
interface eth1
!
interface lo
!
interface vlan4
!
interface vlan58
!
interface vlan59
!
interface vlan60
!
interface vlan61
!
interface vlan78
!
interface vlan133
!
interface vlan405
!
router bgp ASNXXX
bgp router-id xx.xx.xx.11
bgp log-neighbor-changes
bgp always-compare-med
network yy.yy.yy.216/30 route-map my_ptp_space
network yy.yy.yy.220/30 route-map my_ptp_space
network yy.yy.yy.224/30 route-map my_ptp_space
network yy.yy.yy.228/30 route-map my_ptp_space
network xx.xx.xx.166/32 route-map my_ptp_space
network xx.xx.xx.201/32 route-map my_ptp_space
neighbor yy.yy.yy.217 remote-as ASNXXX
neighbor yy.yy.yy.217 description Internet1
neighbor yy.yy.yy.217 update-source yy.yy.yy.218
neighbor yy.yy.yy.217 next-hop-self
neighbor yy.yy.yy.217 prefix-list ignore_default in
neighbor yy.yy.yy.217 prefix-list les24 out
neighbor yy.yy.yy.217 route-map int_rilon_in in
neighbor yy.yy.yy.221 remote-as ASNXXX
neighbor yy.yy.yy.221 description Peering1
neighbor yy.yy.yy.221 update-source yy.yy.yy.222
neighbor yy.yy.yy.221 next-hop-self
neighbor yy.yy.yy.221 soft-reconfiguration inbound
neighbor yy.yy.yy.221 prefix-list les24 out
neighbor yy.yy.yy.221 route-map peer_rilon_in in
neighbor yy.yy.yy.225 remote-as ASNXXX
neighbor yy.yy.yy.225 description Internet2
neighbor yy.yy.yy.225 update-source yy.yy.yy.226
neighbor yy.yy.yy.225 next-hop-self
neighbor yy.yy.yy.225 soft-reconfiguration inbound
neighbor yy.yy.yy.225 prefix-list ignore_default in
neighbor yy.yy.yy.225 prefix-list les24 out
neighbor yy.yy.yy.225 route-map int_office_in in
neighbor yy.yy.yy.229 remote-as ASNXXX
neighbor yy.yy.yy.229 description Peering2
neighbor yy.yy.yy.229 update-source yy.yy.yy.230
neighbor yy.yy.yy.229 next-hop-self
neighbor yy.yy.yy.229 soft-reconfiguration inbound
neighbor yy.yy.yy.229 prefix-list les24 out
neighbor yy.yy.yy.229 route-map peer_office_in in
neighbor xx.xx.xx.4 remote-as ASNXXX
neighbor xx.xx.xx.4 description PPeer
neighbor xx.xx.xx.4 update-source vlan4
neighbor xx.xx.xx.4 soft-reconfiguration inbound
neighbor xx.xx.xx.4 prefix-list les24 out
neighbor xx.xx.xx.4 route-map ppeer_rilon_in in
neighbor xx.xx.xx.5 remote-as ASNXXX
neighbor xx.xx.xx.5 description GW-Rilon
neighbor xx.xx.xx.5 update-source vlan4
neighbor xx.xx.xx.5 next-hop-self
neighbor xx.xx.xx.5 soft-reconfiguration inbound
neighbor xx.xx.xx.10 remote-as ASNXXX
neighbor xx.xx.xx.10 description GW2-Office
neighbor xx.xx.xx.10 update-source vlan4
neighbor xx.xx.xx.10 next-hop-self
neighbor xx.xx.xx.10 soft-reconfiguration inbound
!
ip prefix-list ignore_default seq 10 deny 0.0.0.0/0
ip prefix-list ignore_default seq 20 permit any
ip prefix-list les24 seq 1 deny 192.168.0.0/16 le 32
ip prefix-list les24 seq 2 deny 10.0.0.0/8 le 32
ip prefix-list les24 seq 3 deny 172.16.0.0/12 le 32
ip prefix-list les24 seq 4 permit 0.0.0.0/0 le 24
!
!
route-map ppeer_rilon_in permit 10
set ip next-hop peer-address
set local-preference 140
!
route-map int_office_in permit 10
set ip next-hop peer-address
!
route-map int_rilon_in permit 10
set ip next-hop peer-address
!
route-map my_ptp_space permit 10
set community ASNXXX:9 ASNXXX:93
set local-preference 200
!
route-map peer_office_in permit 10
set ip next-hop peer-address
!
route-map peer_rilon_in permit 10
set ip next-hop peer-address
!
ip forwarding
!
line vty
access-class 1
exec-timeout 0 0
!
end



GW3-Pop ~ # vtysh

Hello, this is Quagga (version 0.99.20).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

GW3-Pop# sh ip bgp summ
BGP router identifier xx.xx.xx.11, local AS number ASNXXX
RIB entries 737710, using 39 MiB of memory
Peers 7, using 17 KiB of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
yy.yy.yy.217 4 ASNXXX 2888125 250 0 0 0 04:06:46 398713
yy.yy.yy.221 4 ASNXXX 7698 1217 0 0 0 20:13:50 13777
yy.yy.yy.225 4 ASNXXX 140855 1217 0 0 0 20:13:47 394751
yy.yy.yy.229 4 ASNXXX 2532 1217 0 0 0 20:13:51 5642
xx.xx.xx.4 4 ASNXXX 1697 1217 0 0 0 20:13:48 2275
xx.xx.xx.5 4 ASNXXX 1220 1217 0 0 0 20:13:53 14
xx.xx.xx.10 4 ASNXXX 1233 1220 0 0 0 16:01:31 144

Total number of neighbors 7

still increasing memory usage...

Memory statistics for bgpd:
System allocator statistics:
Total heap allocated: 354 MiB
Holding block headers: 132 KiB
Used small blocks: 0 bytes
Used ordinary blocks: 321 MiB
Free small blocks: 16 bytes
Free ordinary blocks: 33 MiB
Ordinary blocks: 217437
Small blocks: 1
Holding blocks: 1
(see system documentation for 'mallinfo' for meaning)
-----------------------------
Temporary memory : 8010188


----- Original Message -----
From: Jorge Boncompte [DTI2]
[mailto:jorge [at] dti2]
To: Quagga development list
[mailto:quagga-dev [at] lists]
Sent: Mon, 09 Apr 2012 15:19:01
+0300
Subject: [quagga-dev 9167] Re: quagga/bgpd: memory leak? any ideas?


> El 09/04/2012 13:52, Milen Bogunski escribió:
> > In last two weeks i have strange memory problems with quagga/bgpd on some
> of
> > our routers
> >
> > After about a day bgpd eats all of router memory (2G, 3G) on different
> > routers with different quagga versions. (0.99.15,0.99.18 and 0.99.20)
>
> Can you post your configuration for bgpd?
>
> _______________________________________________
> Quagga-dev mailing list
> Quagga-dev [at] lists
> http://lists.quagga.net/mailman/listinfo/quagga-dev
>

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


jorge at dti2

Apr 9, 2012, 6:13 AM

Post #4 of 9 (314 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

El 09/04/2012 14:43, Milen Bogunski escribió:
> GW3-Pop# sh runn
> Building configuration...

Can you try the attached patch?


>
> Current configuration:
> !
> log file /var/log/zebra.log
> log file /var/log/bgpd.log
> log syslog
> !
> password zgwqwe
> enable password zgwqwe
> !
> interface eth0
> !
> interface eth1
> !
> interface lo
> !
> interface vlan4
> !
> interface vlan58
> !
> interface vlan59
> !
> interface vlan60
> !
> interface vlan61
> !
> interface vlan78
> !
> interface vlan133
> !
> interface vlan405
> !
> router bgp ASNXXX
> bgp router-id xx.xx.xx.11
> bgp log-neighbor-changes
> bgp always-compare-med
> network yy.yy.yy.216/30 route-map my_ptp_space
> network yy.yy.yy.220/30 route-map my_ptp_space
> network yy.yy.yy.224/30 route-map my_ptp_space
> network yy.yy.yy.228/30 route-map my_ptp_space
> network xx.xx.xx.166/32 route-map my_ptp_space
> network xx.xx.xx.201/32 route-map my_ptp_space
> neighbor yy.yy.yy.217 remote-as ASNXXX
> neighbor yy.yy.yy.217 description Internet1
> neighbor yy.yy.yy.217 update-source yy.yy.yy.218
> neighbor yy.yy.yy.217 next-hop-self
> neighbor yy.yy.yy.217 prefix-list ignore_default in
> neighbor yy.yy.yy.217 prefix-list les24 out
> neighbor yy.yy.yy.217 route-map int_rilon_in in
> neighbor yy.yy.yy.221 remote-as ASNXXX
> neighbor yy.yy.yy.221 description Peering1
> neighbor yy.yy.yy.221 update-source yy.yy.yy.222
> neighbor yy.yy.yy.221 next-hop-self
> neighbor yy.yy.yy.221 soft-reconfiguration inbound
> neighbor yy.yy.yy.221 prefix-list les24 out
> neighbor yy.yy.yy.221 route-map peer_rilon_in in
> neighbor yy.yy.yy.225 remote-as ASNXXX
> neighbor yy.yy.yy.225 description Internet2
> neighbor yy.yy.yy.225 update-source yy.yy.yy.226
> neighbor yy.yy.yy.225 next-hop-self
> neighbor yy.yy.yy.225 soft-reconfiguration inbound
> neighbor yy.yy.yy.225 prefix-list ignore_default in
> neighbor yy.yy.yy.225 prefix-list les24 out
> neighbor yy.yy.yy.225 route-map int_office_in in
> neighbor yy.yy.yy.229 remote-as ASNXXX
> neighbor yy.yy.yy.229 description Peering2
> neighbor yy.yy.yy.229 update-source yy.yy.yy.230
> neighbor yy.yy.yy.229 next-hop-self
> neighbor yy.yy.yy.229 soft-reconfiguration inbound
> neighbor yy.yy.yy.229 prefix-list les24 out
> neighbor yy.yy.yy.229 route-map peer_office_in in
> neighbor xx.xx.xx.4 remote-as ASNXXX
> neighbor xx.xx.xx.4 description PPeer
> neighbor xx.xx.xx.4 update-source vlan4
> neighbor xx.xx.xx.4 soft-reconfiguration inbound
> neighbor xx.xx.xx.4 prefix-list les24 out
> neighbor xx.xx.xx.4 route-map ppeer_rilon_in in
> neighbor xx.xx.xx.5 remote-as ASNXXX
> neighbor xx.xx.xx.5 description GW-Rilon
> neighbor xx.xx.xx.5 update-source vlan4
> neighbor xx.xx.xx.5 next-hop-self
> neighbor xx.xx.xx.5 soft-reconfiguration inbound
> neighbor xx.xx.xx.10 remote-as ASNXXX
> neighbor xx.xx.xx.10 description GW2-Office
> neighbor xx.xx.xx.10 update-source vlan4
> neighbor xx.xx.xx.10 next-hop-self
> neighbor xx.xx.xx.10 soft-reconfiguration inbound
> !
> ip prefix-list ignore_default seq 10 deny 0.0.0.0/0
> ip prefix-list ignore_default seq 20 permit any
> ip prefix-list les24 seq 1 deny 192.168.0.0/16 le 32
> ip prefix-list les24 seq 2 deny 10.0.0.0/8 le 32
> ip prefix-list les24 seq 3 deny 172.16.0.0/12 le 32
> ip prefix-list les24 seq 4 permit 0.0.0.0/0 le 24
> !
> !
> route-map ppeer_rilon_in permit 10
> set ip next-hop peer-address
> set local-preference 140
> !
> route-map int_office_in permit 10
> set ip next-hop peer-address
> !
> route-map int_rilon_in permit 10
> set ip next-hop peer-address
> !
> route-map my_ptp_space permit 10
> set community ASNXXX:9 ASNXXX:93
> set local-preference 200
> !
> route-map peer_office_in permit 10
> set ip next-hop peer-address
> !
> route-map peer_rilon_in permit 10
> set ip next-hop peer-address
> !
> ip forwarding
> !
> line vty
> access-class 1
> exec-timeout 0 0
> !
> end
>
>
>
> GW3-Pop ~ # vtysh
>
> Hello, this is Quagga (version 0.99.20).
> Copyright 1996-2005 Kunihiro Ishiguro, et al.
>
> GW3-Pop# sh ip bgp summ
> BGP router identifier xx.xx.xx.11, local AS number ASNXXX
> RIB entries 737710, using 39 MiB of memory
> Peers 7, using 17 KiB of memory
>
> Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
> yy.yy.yy.217 4 ASNXXX 2888125 250 0 0 0 04:06:46 398713
> yy.yy.yy.221 4 ASNXXX 7698 1217 0 0 0 20:13:50 13777
> yy.yy.yy.225 4 ASNXXX 140855 1217 0 0 0 20:13:47 394751
> yy.yy.yy.229 4 ASNXXX 2532 1217 0 0 0 20:13:51 5642
> xx.xx.xx.4 4 ASNXXX 1697 1217 0 0 0 20:13:48 2275
> xx.xx.xx.5 4 ASNXXX 1220 1217 0 0 0 20:13:53 14
> xx.xx.xx.10 4 ASNXXX 1233 1220 0 0 0 16:01:31 144
>
> Total number of neighbors 7
>
> still increasing memory usage...
>
> Memory statistics for bgpd:
> System allocator statistics:
> Total heap allocated: 354 MiB
> Holding block headers: 132 KiB
> Used small blocks: 0 bytes
> Used ordinary blocks: 321 MiB
> Free small blocks: 16 bytes
> Free ordinary blocks: 33 MiB
> Ordinary blocks: 217437
> Small blocks: 1
> Holding blocks: 1
> (see system documentation for 'mallinfo' for meaning)
> -----------------------------
> Temporary memory : 8010188
>
>
> ----- Original Message -----
> From: Jorge Boncompte [DTI2]
> [mailto:jorge [at] dti2]
> To: Quagga development list
> [mailto:quagga-dev [at] lists]
> Sent: Mon, 09 Apr 2012 15:19:01
> +0300
> Subject: [quagga-dev 9167] Re: quagga/bgpd: memory leak? any ideas?
>
>
>> El 09/04/2012 13:52, Milen Bogunski escribió:
>>> In last two weeks i have strange memory problems with quagga/bgpd on some
>> of
>>> our routers
>>>
>>> After about a day bgpd eats all of router memory (2G, 3G) on different
>>> routers with different quagga versions. (0.99.15,0.99.18 and 0.99.20)
>>
>> Can you post your configuration for bgpd?
>>
>> _______________________________________________
>> Quagga-dev mailing list
>> Quagga-dev [at] lists
>> http://lists.quagga.net/mailman/listinfo/quagga-dev
>>
>
> _______________________________________________
> Quagga-dev mailing list
> Quagga-dev [at] lists
> http://lists.quagga.net/mailman/listinfo/quagga-dev
Attachments: memleak.patch (1.12 KB)


mike at sentex

Apr 9, 2012, 7:21 AM

Post #5 of 9 (307 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

On 4/9/2012 7:52 AM, Milen Bogunski wrote:
> i tried community delete,extra attributes and couple of memory leak patches with no effect.


Not sure which patches you tried, but I still need to apply this one
(its in the FreeBSD port) for bgpd not to chew up all memory

http://lists.quagga.net/pipermail/quagga-users/2012-March/012844.html

---Mike

--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike [at] sentex
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada http://www.tancsa.com/
_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


milen at gentoo

Apr 9, 2012, 7:43 AM

Post #6 of 9 (307 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

@Mike exactly this patch, no effect

@Jorge It seems to be OK with this patch, I patched two of my routers 0.99.18 and 0.99.20, temporary memory stays 1 and memory usage looks OK(very nice indeed). I will wait 12 hours to confirm you and if everything is OK i will apply it to all of my routers.



----- Original Message -----
From: Mike Tancsa
[mailto:mike [at] sentex]
To: Quagga development list
[mailto:quagga-dev [at] lists]
Cc: Milen Bogunski
[mailto:milen [at] gentoo]
Sent: Mon, 09 Apr 2012 17:21:01 +0300
Subject:
[quagga-dev 9170] Re: quagga/bgpd: memory leak? any ideas?


> On 4/9/2012 7:52 AM, Milen Bogunski wrote:
> > i tried community delete,extra attributes and couple of memory leak
> patches with no effect.
>
>
> Not sure which patches you tried, but I still need to apply this one
> (its in the FreeBSD port) for bgpd not to chew up all memory
>
> http://lists.quagga.net/pipermail/quagga-users/2012-March/012844.html
>
> ---Mike
>
> --
> -------------------
> Mike Tancsa, tel +1 519 651 3400
> Sentex Communications, mike [at] sentex
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada http://www.tancsa.com/
> _______________________________________________
> Quagga-dev mailing list
> Quagga-dev [at] lists
> http://lists.quagga.net/mailman/listinfo/quagga-dev
>

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


jorge at dti2

Apr 9, 2012, 8:22 AM

Post #7 of 9 (315 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

El 09/04/2012 16:43, Milen Bogunski escribió:
> @Mike exactly this patch, no effect
>
> @Jorge It seems to be OK with this patch, I patched two of my routers 0.99.18
> and 0.99.20, temporary memory stays 1 and memory usage looks OK(very nice
> indeed). I will wait 12 hours to confirm you and if everything is OK i will
> apply it to all of my routers.

Please, test this version if you can. It should be more efficient than the
other I sent before because avoids useless conversion to/from string
representation of the nexthop.

On my limited testing seems to do the right thing too.

>
>
>
> ----- Original Message ----- From: Mike Tancsa [mailto:mike [at] sentex] To:
> Quagga development list [mailto:quagga-dev [at] lists] Cc: Milen
> Bogunski [mailto:milen [at] gentoo] Sent: Mon, 09 Apr 2012 17:21:01 +0300
> Subject: [quagga-dev 9170] Re: quagga/bgpd: memory leak? any ideas?
>
>
>> On 4/9/2012 7:52 AM, Milen Bogunski wrote:
>>> i tried community delete,extra attributes and couple of memory leak
>> patches with no effect.
>>
>>
>> Not sure which patches you tried, but I still need to apply this one (its
>> in the FreeBSD port) for bgpd not to chew up all memory
>>
>> http://lists.quagga.net/pipermail/quagga-users/2012-March/012844.html
>>
>> ---Mike
>>
>> -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex
>> Communications, mike [at] sentex Providing Internet services since 1994
>> www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/
>> _______________________________________________ Quagga-dev mailing list
>> Quagga-dev [at] lists
>> http://lists.quagga.net/mailman/listinfo/quagga-dev
>>
>
> _______________________________________________ Quagga-dev mailing list
> Quagga-dev [at] lists
> http://lists.quagga.net/mailman/listinfo/quagga-dev
>
>
Attachments: memleak.patch (1.25 KB)


milen at gentoo

Apr 10, 2012, 1:21 AM

Post #8 of 9 (311 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

@Jorge, I confirm this patch works also! Thank you very much!!!

I applied it to all of my routers, temporary memory now stays 1, no memory leak problems, 18 hours so far, memory usage has never been so low :).
Everything is working nice and smooth.
Hope this patch will be merged to master branch.

Thank you very much, Jorge! You are the man :)

----- Original Message -----
From: Jorge Boncompte [DTI2]
[mailto:jorge [at] dti2]
To: Quagga development list
[mailto:quagga-dev [at] lists]
Sent: Mon, 09 Apr 2012 18:22:43
+0300
Subject: [quagga-dev 9172] Re: quagga/bgpd: memory leak? any ideas?


> El 09/04/2012 16:43, Milen Bogunski escribió:
> > @Mike exactly this patch, no effect
> >
> > @Jorge It seems to be OK with this patch, I patched two of my routers
> 0.99.18
> > and 0.99.20, temporary memory stays 1 and memory usage looks OK(very nice
> > indeed). I will wait 12 hours to confirm you and if everything is OK i
> will
> > apply it to all of my routers.
>
> Please, test this version if you can. It should be more efficient than the
> other I sent before because avoids useless conversion to/from string
> representation of the nexthop.
>
> On my limited testing seems to do the right thing too.
>
> >
> >
> >
> > ----- Original Message ----- From: Mike Tancsa [mailto:mike [at] sentex]
> To:
> > Quagga development list [mailto:quagga-dev [at] lists] Cc: Milen
> > Bogunski [mailto:milen [at] gentoo] Sent: Mon, 09 Apr 2012 17:21:01 +0300
> > Subject: [quagga-dev 9170] Re: quagga/bgpd: memory leak? any ideas?
> >
> >
> >> On 4/9/2012 7:52 AM, Milen Bogunski wrote:
> >>> i tried community delete,extra attributes and couple of memory leak
> >> patches with no effect.
> >>
> >>
> >> Not sure which patches you tried, but I still need to apply this one (its
> >> in the FreeBSD port) for bgpd not to chew up all memory
> >>
> >> http://lists.quagga.net/pipermail/quagga-users/2012-March/012844.html
> >>
> >> ---Mike
> >>
> >> -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex
> >> Communications, mike [at] sentex Providing Internet services since 1994
> >> www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/
> >> _______________________________________________ Quagga-dev mailing list
> >> Quagga-dev [at] lists
> >> http://lists.quagga.net/mailman/listinfo/quagga-dev
> >>
> >
> > _______________________________________________ Quagga-dev mailing list
> > Quagga-dev [at] lists
> > http://lists.quagga.net/mailman/listinfo/quagga-dev
> >
> >
>
>
_______________________________________________
> Quagga-dev mailing list
> Quagga-dev [at] lists
> http://lists.quagga.net/mailman/listinfo/quagga-dev
>

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev


jorge at dti2

Apr 10, 2012, 8:01 AM

Post #9 of 9 (308 views)
Permalink
Re: quagga/bgpd: memory leak? any ideas? [In reply to]

El 10/04/2012 10:21, Milen Bogunski escribió:
> @Jorge, I confirm this patch works also! Thank you very much!!!
>
> I applied it to all of my routers, temporary memory now stays 1, no memory
> leak problems, 18 hours so far, memory usage has never been so low :).
> Everything is working nice and smooth. Hope this patch will be merged to
> master branch.
>
> Thank you very much, Jorge! You are the man :)

You're welcome. The fact is I've been working on optimizing the bgpd daemon and
I have the code fresh on my mind.

_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev

Quagga dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.