]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_rpki.c
bgpd: Track RTRLib memory allocations separately
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 5 Apr 2022 08:02:07 +0000 (11:02 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 5 Apr 2022 08:14:34 +0000 (11:14 +0300)
commit94ff78a7e3448a366288b14b674da8482f36afca
treeca59dc28f449b880aafe8936cca66bf85f7d3576
parent4e35ece397fc5bcbd15aa0c5341f8447f206031b
bgpd: Track RTRLib memory allocations separately

With fast `rpki reset`, seems that RTRLib related memory allocations leak
the memory. Need to figure this out later.

```
$ vtysh -c 'show memory | include RPKI'
BGP RPKI Cache server         :       12 variable       576       12       576
BGP RPKI Cache server group   :        0     48           0        1        56
BGP RPKI RTRLib               :   849657 variable  34453096   849662  41293504

$ for x in $(seq 1 60); do vtysh -c 'con' -c 'rpki' -c 'rpki reset'; sleep 1; done

$ vtysh -c 'show memory | include RPKI'
BGP RPKI Cache server         :       12 variable       576       12       576
BGP RPKI Cache server group   :        0     48           0        1        56
BGP RPKI RTRLib               :   849699 variable  69490616   849701  76323832
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_rpki.c