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 14284430E8; Thu, 24 Aug 2023 06:57:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9502A410EE; Thu, 24 Aug 2023 06:57:52 +0200 (CEST) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by mails.dpdk.org (Postfix) with ESMTP id 8FBD140EE1 for ; Thu, 24 Aug 2023 06:57:51 +0200 (CEST) Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-48d0f4d8e49so1509585e0c.1 for ; Wed, 23 Aug 2023 21:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692853071; x=1693457871; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BxLLRWK3xZ8o0XvF9ip+blAn8RR+sJbDdFkyKBK8j4w=; b=iz88WjU/7Ag9fXoR6FqZCGmC+tyH8HUUlLBNLZH9meh0rN89mK4ZJ0e7SbxMVab1tB 2lnR3XrL6L0yJkcBHiKtxoQhTaAg7Bs1NXzyWrJgJ9zZ50DaqqEFf9zSjtamHNNZ9kmr tlQWeA6sjaX6hqzYsOLeq9W7fvtnSTVtadsq8DfOgAtM2FbZMp5UG2XpdBLLiQ8g23FH wh4r/Qumsg5DQgJg3XtzMSQHGp0g/mW29hJjxRgyF+9q8+F1fp5/9nYb2kDjIrwnfb2e xZjK4wBWZyfotN66BPtiO7icN1IOuxtJpp6htNuhRx5zKvqCsTCTh7RHHeOgfZlHy/6D D2rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692853071; x=1693457871; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BxLLRWK3xZ8o0XvF9ip+blAn8RR+sJbDdFkyKBK8j4w=; b=Jp8Vb8iRv2dCJ1tubO5zmWd8BlyZ63ehoBwuFhKs8MWrGgV4XUXz92g4Lu4GH15zSK vW7krGacvsJK4fk0AZXi5T4WtnqENrlOLNQZqXU81yWVHkOAx8qWiJnm39KrPWX2FBBl q+U8Vq+Ucz5TFHEuAg3XxCVyH8f3g+wERmIiAY0II0ug1FsSsHHG70IBI74tTakYqGW/ FeZwWeiZdNqiIa5BGtnVRSXceBLAgA4XgcR1BggIckn7hAeDjc1VLBR8i7d6ha4Z6ndd vbRUyhyvrDHAn4xE534PJuurOyRG+Ii8BwS3qi3zuH/oPXTZe8WQG5541lLKln6PuM43 uRAg== X-Gm-Message-State: AOJu0Yy9ZilxCoQkdJIbKMKp0i+nsNFBkpOqKNAqwfqvxU35QFjmY2Sw NPjxk8iRzDzVN+AC3s1vAAsrQNiz9eAdOud8rVw= X-Google-Smtp-Source: AGHT+IGxXeTKKc0VBX2w8XI7U5iarcj/AvSptoEafG0f0NWLrGtTQ1Z099+jeC+bMlxWJiETkajmGQmgTuw8LC8Hcxc= X-Received: by 2002:a1f:4f82:0:b0:48d:b5c:543e with SMTP id d124-20020a1f4f82000000b0048d0b5c543emr10968786vkb.4.1692853070666; Wed, 23 Aug 2023 21:57:50 -0700 (PDT) MIME-Version: 1.0 References: <20230731055514.1708500-1-asekhar@marvell.com> <20230822170157.2637286-1-asekhar@marvell.com> In-Reply-To: <20230822170157.2637286-1-asekhar@marvell.com> From: Jerin Jacob Date: Thu, 24 Aug 2023 10:27:24 +0530 Message-ID: Subject: Re: [PATCH 1/3] mempool/cnxk: limit usage of async allocs To: Ashwin Sekhar T K Cc: dev@dpdk.org, Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Pavan Nikhilesh , jerinj@marvell.com, psatheesh@marvell.com, anoobj@marvell.com, gakhil@marvell.com, hkalra@marvell.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Tue, Aug 22, 2023 at 10:40=E2=80=AFPM Ashwin Sekhar T K wrote: > > Currently mempool_cnxk driver uses asynchronous allocation > for all pools. This asynchronous allocation can result in > local caching of additional 512 objects on a single core > even when cache is disabled. This will eventually lead to > starvation on pools where the number of objects is very less. > > This commit changes this logic to use asynchronous allocation on > only those pools which have local cache enabled. Also the async buffer > size will be RTE_ALIGN_CEIL(rte_mempool->cache_size, 16). This > means that when cache is disabled, async alloc will be completely > disabled and when cache is enabled, the additional caching due > to asynchronous allocation will be limited. > > A limitation has been added to cnxk documentation warning the users > to adjust the local cache sizes accordingly. > > Signed-off-by: Ashwin Sekhar T K Series applied to dpdk-next-net-mrvl/for-next-net. Thanks