hsa: reduce number of preallocated vcl test server sessions 37/36537/2
authorFlorin Coras <fcoras@cisco.com>
Wed, 29 Jun 2022 02:21:32 +0000 (19:21 -0700)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 29 Jun 2022 14:15:10 +0000 (14:15 +0000)
Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I7afc6116ca9a609992f26d9e78084732bba1b2ea

src/plugins/hs_apps/vcl/vcl_test.h
src/plugins/hs_apps/vcl/vcl_test_server.c

index e2a19e1..4c816b8 100644 (file)
@@ -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)
index f5c81ce..b4ec0a6 100644 (file)
@@ -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);