]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Replace peer->ibuf_scratch
authorDonald Sharp <sharpd@nvidia.com>
Fri, 21 Jul 2023 17:10:03 +0000 (13:10 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 Jul 2023 20:15:19 +0000 (20:15 +0000)
commitcb114f84a77d0c0bae79f81ff36d707218233cc7
tree816f6d7466ff57dc1b81237ddeb6d211a45af61a
parent577f06b5560722353c4233837bb02a5930575c8c
bgpd: Replace peer->ibuf_scratch

The peer->ibuf_scratch was allocating 65535 * 10 bytes
for scratch space to hold data incoming from a read
from a peer.  When you have 4k peers this is 262,1400,000
or 262 mb of data.  Which is crazy large.  Especially
since the i/o pthread is reading per peer without
any chance of having the data interfere with other reads.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit bdc17624059c1722e5208523cb06fe9b0ed7acb2)
bgpd/bgp_io.c
bgpd/bgpd.h