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 <themiron@yandex-team.ru>
  • Loading branch information
themiron committed Oct 2, 2023
1 parent 9692041 commit 14e1000
Show file tree
Hide file tree
Showing 3 changed files with 1,559 additions and 1,523 deletions.
Loading

0 comments on commit 14e1000

Please sign in to comment.