From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C95AA0553; Fri, 10 Jun 2022 15:45:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EFB114069C; Fri, 10 Jun 2022 15:45:15 +0200 (CEST) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by mails.dpdk.org (Postfix) with ESMTP id A7DD640689 for ; Fri, 10 Jun 2022 15:45:14 +0200 (CEST) Received: by mail-qk1-f176.google.com with SMTP id o73so14937831qke.7 for ; Fri, 10 Jun 2022 06:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BnVJGrvAv8uHiyOVsY+8b6Buft/NQNiF4YVNgE2QE5s=; b=fAd68GAMDcP9d1DlQZKd2ljWXh/0SsnFIDzfpzq51kTcI6w7VW+GbZAq9kczX2OIwG oCA3tYMOqx0InT2vrFtXxB0TNycwkiSA/BizWL4OGMT+156eQ3aWrl7GMqoQD5sj71Ev 2kM/0UbMdUpsKNOUfbkjirGiU+Kt6t70vGU22dGtUAr93pqhTK4iZZX/QKhkaW4y/eG/ ET4RSy+vvgMA2DXnYncwyuL5yWXxws54/3H8TeZ8TCJF1wa4uL7uOidCoHWJiyAXXhQg fDE2s3SFA93uA5XTje5kIelA7RbbFLy1qoYzvB5PRtxeWTHd/hOl0IC4oaI5G02Eh0dh HhpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BnVJGrvAv8uHiyOVsY+8b6Buft/NQNiF4YVNgE2QE5s=; b=gABimOhHOTRr22vWva2nnGCSDbmVRIIDYWCkd9zyj5lL7hTwk7xKMN91vVqGvbVtWd 7mWbt3vN9iiSKckzrqzAw6dNkgwewa4yXMRPdK7PN++6gFMv4f6fN6bCva0vP32mcS4s /6brbpyFAlAf5MFm6BYIK3p2QwiNOAFtLsJAnLSWF6/kz2t5vbYS7+8HsyZHB0PKZopM LsUp4wf6XaIKADM/PvPOkZWD2aicdwDjXfKcLWAfa0PLthTQr8pXJkXsLmNKOgja3ryF A5xoEbdxE0SzU1Puwa7OtS9k4n0IrD6U6C2YdAvVs8PmHNR3f45c2roi2ljx9dvpToES 3onA== X-Gm-Message-State: AOAM532xAB/siwy1nce10tKH/R9D3EpfdjvwxN+VIrdbqdwjwKYpJqGN ovwqIwmRCZRLGDJ41S/PCH70kKrH7Lq04nzOoIskc6l9FOU= X-Google-Smtp-Source: ABdhPJxPRWpxNv5c96jkZhsIRGBM4sRgQWNtXSeTqcpo+IrxmSv8J+iWOb2AHi4jU94CF0emhjwqY1tI5qQWSV/BRK8= X-Received: by 2002:a05:620a:cd5:b0:6a6:8d8b:7b88 with SMTP id b21-20020a05620a0cd500b006a68d8b7b88mr26764913qkj.402.1654868713921; Fri, 10 Jun 2022 06:45:13 -0700 (PDT) MIME-Version: 1.0 References: <20220523095954.3181-1-pbhagavatula@marvell.com> In-Reply-To: <20220523095954.3181-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Fri, 10 Jun 2022 19:14:48 +0530 Message-ID: Subject: Re: [PATCH 1/2] app/eventdev: use mempool cache for vector pool To: Pavan Nikhilesh Cc: Jerin Jacob , dpdk-dev Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, May 23, 2022 at 3:30 PM wrote: > > From: Pavan Nikhilesh > > 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 Acked-by: Jerin Jacob > --- > 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 >