Skip to content

Commit

Permalink
server: improve ListPath's memory consumption with batched send
Browse files Browse the repository at this point in the history
With a lot of paths (hundreds of thousands) gobgp may oom or
stuck in swapping.
Allow to specify max batch size via grpc and keep unlimited batch
size by default since 21093fb
without preallocation on the first run, so it still should not
affect perfomance/allocations with small ammount of paths.

Signed-off-by: Vladislav Grishenko <[email protected]>
  • Loading branch information
themiron authored and fujita committed Oct 2, 2023
1 parent ed5732b commit 146b2b8
Show file tree
Hide file tree
Showing 3 changed files with 1,559 additions and 1,523 deletions.
Loading

0 comments on commit 146b2b8

Please sign in to comment.