]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Track RTRLib memory allocations separately
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 5 Apr 2022 08:02:07 +0000 (11:02 +0300)
committermergify-bot <noreply@mergify.com>
Fri, 8 Apr 2022 11:59:49 +0000 (11:59 +0000)
commit4f141e2f493fee6df4356f1772bec7a08e06bc4a
tree5faad6c8995e1f901cad08f3e30c40c514e3ed23
parent56694ea7d5ceae3e0cb54f8b4d15fa73c41b53b6
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>
(cherry picked from commit 94ff78a7e3448a366288b14b674da8482f36afca)
bgpd/bgp_rpki.c