From: Florin Coras Date: Wed, 29 Jun 2022 02:21:32 +0000 (-0700) Subject: hsa: reduce number of preallocated vcl test server sessions X-Git-Tag: v23.02-rc0~166 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0c3ca59e3f4a0596a361bca0b1e1ea096d98650c;p=vpp.git hsa: reduce number of preallocated vcl test server sessions Type: improvement Signed-off-by: Florin Coras Change-Id: I7afc6116ca9a609992f26d9e78084732bba1b2ea --- diff --git a/src/plugins/hs_apps/vcl/vcl_test.h b/src/plugins/hs_apps/vcl/vcl_test.h index e2a19e1a1fc..4c816b80063 100644 --- a/src/plugins/hs_apps/vcl/vcl_test.h +++ b/src/plugins/hs_apps/vcl/vcl_test.h @@ -67,6 +67,7 @@ #define VCL_TEST_CFG_BUF_SIZE_MIN 128 #define VCL_TEST_CFG_MAX_TEST_SESS ((uint32_t) 1e6) #define VCL_TEST_CFG_MAX_SELECT_SESS 512 +#define VCL_TEST_CFG_INIT_TEST_SESS 512 #define VCL_TEST_CFG_MAX_EPOLL_EVENTS 16 #define VCL_TEST_CTRL_LISTENER (~0 - 1) diff --git a/src/plugins/hs_apps/vcl/vcl_test_server.c b/src/plugins/hs_apps/vcl/vcl_test_server.c index f5c81ce22b3..b4ec0a6e595 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_server.c +++ b/src/plugins/hs_apps/vcl/vcl_test_server.c @@ -590,7 +590,7 @@ vts_worker_init (vcl_test_server_worker_t * wrk) vtinf ("Initializing worker ..."); - conn_pool_expand (wrk, VCL_TEST_CFG_MAX_TEST_SESS + 1); + conn_pool_expand (wrk, VCL_TEST_CFG_INIT_TEST_SESS + 1); if (wrk->wrk_index) if (vppcom_worker_register ()) vtfail ("vppcom_worker_register()", 1);