DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] app/eventdev: use mempool cache for vector pool
@ 2022-05-23  9:59 pbhagavatula
  2022-05-23  9:59 ` [PATCH 2/2] examples: " pbhagavatula
  2022-06-10 13:44 ` [PATCH 1/2] app/eventdev: " Jerin Jacob
  0 siblings, 2 replies; 5+ messages in thread
From: pbhagavatula @ 2022-05-23  9:59 UTC (permalink / raw)
  To: jerinj; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Use mempool cache for vector mempool as vectors are freed by the Tx
routine, also increase the minimum pool size to 512 to avoid resource
contention on Rx.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 app/test-eventdev/test_pipeline_common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c
index c66656cd39..856a2f1a52 100644
--- a/app/test-eventdev/test_pipeline_common.c
+++ b/app/test-eventdev/test_pipeline_common.c
@@ -338,9 +338,10 @@ pipeline_event_rx_adapter_setup(struct evt_options *opt, uint8_t stride,
 	if (opt->ena_vector) {
 		unsigned int nb_elem = (opt->pool_sz / opt->vector_size) << 1;
 
-		nb_elem = nb_elem ? nb_elem : 1;
+		nb_elem = RTE_MAX(512U, nb_elem);
+		nb_elem += evt_nr_active_lcores(opt->wlcores) * 32;
 		vector_pool = rte_event_vector_pool_create(
-			"vector_pool", nb_elem, 0, opt->vector_size,
+			"vector_pool", nb_elem, 32, opt->vector_size,
 			opt->socket_id);
 		if (vector_pool == NULL) {
 			evt_err("failed to create event vector pool");
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-13  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  9:59 [PATCH 1/2] app/eventdev: use mempool cache for vector pool pbhagavatula
2022-05-23  9:59 ` [PATCH 2/2] examples: " pbhagavatula
2022-06-10 13:46   ` Jerin Jacob
2022-06-10 13:44 ` [PATCH 1/2] app/eventdev: " Jerin Jacob
2022-06-13  5:56   ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).