summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-11-09 15:13:16 -0800
committerDave Barach <openvpp@barachs.net>2022-11-10 19:51:42 +0000
commite8d8d47dca42113706abc05663b436d2664e1612 (patch)
tree3b8e9fae6f6cd9fd4b7d992e07bab89d7e53defb /src
parent406f4840a84f66766f048353cb6601ba374e8276 (diff)
session: reduce safe pool expand rate
Make sure they only double in size. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I18d5508c7f32836deb3b25943e8e3af39d0dbc33
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index 0ccd3fb13bd..16000e62fa8 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -821,8 +821,7 @@ pool_program_safe_realloc_rpc (void *args)
{
max_elts = _vec_max_len (*pra->pool, pra->elt_size);
n_alloc = clib_max (2 * max_elts, POOL_REALLOC_SAFE_ELT_THRESH);
- _pool_alloc (pra->pool, free_elts + n_alloc, pra->align, 0,
- pra->elt_size);
+ _pool_alloc (pra->pool, n_alloc, pra->align, 0, pra->elt_size);
}
pool_realloc_flag (*pra->pool) = 0;
clib_mem_free (args);