BIRD memory usage
Hello, We are running BIRD on a number of servers. It is configured with two BGP peers. We are seeing BIRD using over a gig of memory, and this seems excessive, especially given the number of routes. BIRD 1.5.0 ready. bird> show memory BIRD memory usage Routing tables: 1142 MB Route attributes: 48 kB ROA tables: 192 B Protocols: 45 kB Total: 1142 MB bird> show route count 656 of 656 routes for 333 networks The memory usage goes up slowly, starting from a few MB; this particular instance has been up for 3 days and 2 hours. Is there something we can do to reduce the memory usage? Or could this be a memory leak bug? The config is attached. Let me know if you need any more information. Thanks in advance! Alex
On Fri, Sep 18, 2015 at 01:55:25PM +0200, Alexander Frolkin wrote:
Hello,
We are running BIRD on a number of servers. It is configured with two BGP peers.
We are seeing BIRD using over a gig of memory, and this seems excessive, especially given the number of routes. ... Is there something we can do to reduce the memory usage? Or could this be a memory leak bug?
Hi This is definitely a memory leak, probably related to path merging. You are using current code from git or patched 1.5.0? I will try to reproduce 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 Ondrej,
Is there something we can do to reduce the memory usage? Or could this be a memory leak bug? This is definitely a memory leak, probably related to path merging. You are using current code from git or patched 1.5.0? I will try to reproduce it.
Thanks. We are using a version from git that supports BGP multipath. Git describe says v1.5.0-19-g8d9eef1. Alex
On Mon, Sep 21, 2015 at 10:10:08AM +0200, Alexander Frolkin wrote:
Hi Ondrej,
Is there something we can do to reduce the memory usage? Or could this be a memory leak bug? This is definitely a memory leak, probably related to path merging. You are using current code from git or patched 1.5.0? I will try to reproduce it.
Thanks. We are using a version from git that supports BGP multipath. Git describe says v1.5.0-19-g8d9eef1.
Hi I cannot reproduce the problem. Could you get me a core dump when the memory consumption is noticeable higher than after the start? -- 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 Ondrej,
I cannot reproduce the problem. Could you get me a core dump when the memory consumption is noticeable higher than after the start?
I was going to do this, but then saw that all our instances are now using at most 28MB for routing tables! The config has not changed since I reported the issue, and I'm not aware of any changes on the network side either, so I'm at a loss as to why this has stopped happening... Thanks for investigating, in any case. If I see it happening again, I'll take a core dump and let you know. Thanks! Alex
participants (2)
-
Alexander Frolkin -
Ondrej Zajicek