Hi After install bird 2.0.0 from sources, bird has memory leak. After running it c.a. 15min daemon used ~24G of RAM. Compile options: ./configure --enable-client --enable-libssh Debian 9, kernel 4.9.69 -- Miłosz
On Fri, Dec 15, 2017 at 02:45:22PM +0100, Miłosz Oller wrote:
Hi
After install bird 2.0.0 from sources, bird has memory leak. After running it c.a. 15min daemon used ~24G of RAM.
Compile options: ./configure --enable-client --enable-libssh
Debian 9, kernel 4.9.69
Hi Could you send me configuration, output of 'show memory' command and possibly logs if there is anything interesting there? I have it running several days with OSPF and full BGP on several platforms and did not noticed such behavior. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi! On 12/15/2017 02:45 PM, Miłosz Oller wrote:
Hi
After install bird 2.0.0 from sources, bird has memory leak. After running it c.a. 15min daemon used ~24G of RAM.
Compile options: ./configure --enable-client --enable-libssh
Debian 9, kernel 4.9.69
Could you please send in the config file you are running Bird with? Thanks JMM
Hey, I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36. The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed. Regards, Rhys Williams December 15, 2017 2:55 PM, "Miłosz Oller" <milosz@sys-com.pl> wrote:
Hi
After install bird 2.0.0 from sources, bird has memory leak. After running it c.a. 15min daemon used ~24G of RAM.
Compile options: ./configure --enable-client --enable-libssh
Debian 9, kernel 4.9.69
-- Miłosz
On Fri, Dec 15, 2017 at 03:42:03PM +0000, Rhys Williams wrote:
Hey,
I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36.
The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed.
Thanks, that is important hint. Will check that. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Fri, Dec 15, 2017 at 03:42:03PM +0000, Rhys Williams wrote:
Hey,
I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36.
The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed.
This patch should fix it. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi After bird starts: bird> show memory BIRD memory usage Routing tables: 598 MB Route attributes: 161 MB Protocols: 306 kB Total: 759 MB After next ~5mins: bird> show memory BIRD memory usage Routing tables: 1534 MB Route attributes: 161 MB Protocols: 306 kB Total: 1696 MB Config with 17 sessions and one iBGP: one of sessions: protocol bgp bgp_atm_pl_backup { description "ATM Peering.PL Backup"; # import all; ipv4 { import all; }; ipv6 { import all; }; ipv4 { export filter ipv4_export; }; local as 198611; neighbor 212.91.2.1 as 24748; source address 212.91.1.42; # default bgp_local_pref 110; } Miłosz W dniu 16.12.2017 o 00:44, Ondrej Zajicek pisze:
On Fri, Dec 15, 2017 at 03:42:03PM +0000, Rhys Williams wrote:
Hey,
I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36.
The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed. This patch should fix it.
Patch seems to work :) 15min of running: bird> show memory BIRD memory usage Routing tables: 187 MB Route attributes: 161 MB Protocols: 306 kB Total: 348 MB inż. Miłosz Oller http://sys-com.pl GSM: 603 030 347 W dniu 16.12.2017 o 00:44, Ondrej Zajicek pisze:
On Fri, Dec 15, 2017 at 03:42:03PM +0000, Rhys Williams wrote:
Hey,
I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36.
The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed. This patch should fix it.
Hey, The patch seems to be working on my end too. Thank you for the quick fix. Regards, Rhys Williams December 16, 2017 8:37 AM, "Miłosz Oller" <milosz@sys-com.pl> wrote:
Patch seems to work :)
15min of running:
bird> show memory BIRD memory usage Routing tables: 187 MB Route attributes: 161 MB Protocols: 306 kB Total: 348 MB
inż. Miłosz Oller http://sys-com.pl GSM: 603 030 347
Daemon.log: Dec 16 08:29:42 r01 bird: Kernel dropped some netlink messages, will resync on next scan. inż. Miłosz Oller W dniu 16.12.2017 o 00:44, Ondrej Zajicek pisze:
On Fri, Dec 15, 2017 at 03:42:03PM +0000, Rhys Williams wrote:
Hey,
I am also seeing this memory leak on Ubuntu 16.04, kernel 4.10.0-36.
The memory leak seems to occur when the scan timer lapses on the kernel protocol leaking about the full tables worth of memory each time until eventually bird is oom killed. This patch should fix it.
participants (4)
-
Jan Maria Matejka -
Miłosz Oller -
Ondrej Zajicek -
Rhys Williams