From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Bhagavatula Subject: [PATCH v2] app/eventdev: configure optimum timers per adapter Date: Mon, 11 Mar 2019 06:49:28 +0000 Message-ID: <20190311064900.4938-1-pbhagavatula@marvell.com> References: <20190228184822.11345-1-pbhagavatula@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula To: Jerin Jacob Kollanukkaran Return-path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4AA57A3 for ; Mon, 11 Mar 2019 07:49:37 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2B6it2R013998 for ; Sun, 10 Mar 2019 23:49:36 -0700 Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2r5f7u0jfx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 10 Mar 2019 23:49:36 -0700 In-Reply-To: <20190228184822.11345-1-pbhagavatula@marvell.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Previously, the total number of event timers per adapter was set to an arbitrary value, set it to mempool size instead as it defines the max event timers that can be armed. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- app/test-eventdev/test_perf_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_= perf_common.c index f99a6a607..d14034e52 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -432,7 +432,7 @@ perf_event_timer_adapter_setup(struct test_perf *t) .timer_adapter_id =3D i, .timer_tick_ns =3D t->opt->timer_tick_nsec, .max_tmo_ns =3D t->opt->max_tmo_nsec, - .nb_timers =3D 2 * 1024 * 1024, + .nb_timers =3D t->opt->pool_sz, .flags =3D flags, }; =20 --=20 2.21.0