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 040D1A0C45; Mon, 13 Sep 2021 17:43:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68F2F40E28; Mon, 13 Sep 2021 17:43:29 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 2D76440151 for ; Mon, 13 Sep 2021 17:43:28 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="208810662" X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="208810662" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 08:43:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="650400211" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 13 Sep 2021 08:43:27 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 13 Sep 2021 08:43:26 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 13 Sep 2021 08:43:26 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 13 Sep 2021 08:43:26 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 13 Sep 2021 08:43:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQrbLwmLZzT81hkkXgxtl10ebuC7S3SIEdz3MZM6/QM/zF4zM0xH38bQA+bOGYxEEiNYy4GDt0jeFsLFhqpfd1pGRdScsksrQ9Wu4Tk0d9qEw/osDn5HFT7SuhOmDijhf7pFZHkzzV+3fKr47exw6tdyIYgyTg0XE03L7lzwvP6oQanXWg6Kz5DaH1KiPBfH1fHqcZj/oDp0WOik2SlolUiBIjKwxn+Ze+Z3sV37aRCUX66qGMZptcLJvL9sH5SvcEvVpEnlwS1/tEcYHIjwmrE5rfRj82pD7wcLdQ2eg+RwYYarSbuPbla2xtjeYI2B6YV8z4AfSLI2s2uYQbXTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UAyQasi+mDd4F+4tvHnyvq0sVYlbCOh861Jj4QkCMR4=; b=WQ1bJzT4K9A+axJUVIJ40d3hbRg+p0yue8gEDHWqKq+8nodarMUk6+9dWvQ0WJLNlJpINRopKOySuhgqb24DlDYpB+I4VMJMKysO9iY7TKmomuhIUdtXIL72D2MYRPQiywW+RqoOxXbudyNu7WyL4XSFT1ozKrGpmAWDR3cNv/i8kcakoLHm7ggHDYRM9upm46ce7FCfTZVBWKZac0rdz7SJxMr22e66nkmFUm/XhfMjltHQj0nhkL7EcRow12XBGcjB+xDGUih/J/6fE83qdxr8qBuY+3Ikm4u1BF6aFhoAtT8zjmR/JdAAstPep1x/OTin1Af98M3f6ZAgpmuikg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UAyQasi+mDd4F+4tvHnyvq0sVYlbCOh861Jj4QkCMR4=; b=dBzdJOMsDFHgNU63hODyarKhMCBYbZVVm+8fWtjjCsg4jLi2rLhZzyHkDg5tItrarCku3hdRqmo0dv9TNc7jUJRHbBYQ8yFaxr9w46hnEU+bfc0Mt3IyN/nbTkgSvXCwmnPVZYc04m5mbt09zWwGqZ6X2MSfd+r/GMt9vceioBg= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5126.namprd11.prod.outlook.com (2603:10b6:510:3a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Mon, 13 Sep 2021 15:43:24 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc%5]) with mapi id 15.20.4500.018; Mon, 13 Sep 2021 15:43:24 +0000 To: Kamaraj P , dev CC: "Burakov, Anatoly" References: From: Ferruh Yigit X-User: ferruhy Message-ID: <2a936b73-9935-6cd9-6d05-780d2f28982f@intel.com> Date: Mon, 13 Sep 2021 16:43:18 +0100 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB6P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::17) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB6P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 15:43:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66dfa58b-4014-4d29-1241-08d976cd38fe X-MS-TrafficTypeDiagnostic: PH0PR11MB5126: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TdZM2dIP4s5AUPfLjUgmjpvXDiUalRCkbeQ05s+KoRQwPtvoBhlOXptTD8TNif6FLy+e/q417g+RJyTGQyFVEuYTmYzbTd5xk3aHS55bZVJR2AU1yv1StcRgSHlM3pD5M5fLsRlU5BkrM7O9SOIkn2bYR489VjDulxPCuqbv52TIP115n9drcRGKmuA1KgRirBNiWvkgR6luWg8kxzJ0/+7hPlr+8mXOQdSzlrFGQZef9lHJFNQ9EmR0Yo+OiT/QVIIi1ldwCdlDIo8F33PGHlE2Dlmv3WE0/5pLbwOBjjf/HZc0V87cji9CAzTExtRwbjSeuxs4rmflrpBzoDKgKVYh8FV34KInqxQgPg+KTWALi5F/CB87DWqrkUek4ECy13oeoOpz8JolzbLrYRXmgCtqEPUzHt2RpGHIQolX1w12gUguWlPpcFg0g2EuD5DySHxGKNW17rzHEGiQ3R9oj+rHjY8xxZLBJvmY/+tumzNk+t9kp39BkI6G/LiEjQYaFUlcLJcDPGzBD+qmyoUlHnusE14z+lYzmww5/V4UV5ngE8NvjUSy2y6irqdWyUDqNtdqT7gPyt3Z3zEpoUXqUnuL/b6MlsAf3DfV/gsEAXPFGDuG3VvQ4zNLlycpyWnUPtluMeCFEWF+P5jGrYm/c72AoZPqH0s1OxzIc++ioeLhqvSgBb2ov0po++116vL/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(366004)(39860400002)(396003)(346002)(478600001)(26005)(83380400001)(8936002)(8676002)(44832011)(5660300002)(66556008)(36756003)(186003)(66476007)(31686004)(2616005)(31696002)(107886003)(6486002)(4326008)(956004)(6666004)(316002)(38100700002)(53546011)(4744005)(110136005)(2906002)(16576012)(86362001)(66946007)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VUdaWEE2VURSaDBhTDN1MXQ3TGNIVnlkZFNMS3QvWmxYL0pMK1V5cVZBYVp6?= =?utf-8?B?QmlIR0REVU1oTVg5L2dxb2dRc3BQY3dWSlN0Tlp0TmhvUVQ4N2p0QW9HVjBT?= =?utf-8?B?N3ZGeG9Ta01iR0x5amYzRS9DNXhmSHYvVWZFbCsvV3ZON0Q1b09rS1R0Qy9T?= =?utf-8?B?eWNsZGh2OUdOMms4ejN6YVBjTHBaT1hyQ0NDZDB1QTArZ0J1dEpXYUo3WFV2?= =?utf-8?B?RncyTlo2Z2NYYTNja3lYSWtKREQ5QXc5SlJndkJPMXlSZXBSNXYxYXBycGY3?= =?utf-8?B?djQ3Mkw2OXBISUgvV3A1K0dUVDNxTXVTZHFNSjEvcHY0aWVIVzh6NzhQYXk3?= =?utf-8?B?NkFZTkNrSXo4VTN3OEpUZ3ZSek16MTA1Z1R4UW1hcFkwUEZLRTAvMWR0MmxV?= =?utf-8?B?VHIrN29uLzU2aDlPdHg4SElNNnpOQnpwMUhNNUU2SEViaFpOVGIrbGdjQ1BF?= =?utf-8?B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p5OVFLSUFkZ1NsVDVp?= =?utf-8?B?TGh2SWVJeFBPSVpsV2dJNENTd2VOV0tOT29UbGNSMk0wVEp5ckhPTmRZK291?= =?utf-8?B?T2tiby9EMFp1M2tCVkpRVHpjTlpQYlJzL3hhKzYxTHdWN21KVW9WSzZtSElN?= =?utf-8?B?RFBhT3cwdXhmb0xQVHEwZXYvQjdRTmlxekdoUmdPWlQ1WUNFeHhsM3orNU93?= =?utf-8?B?WHdEWGF4T3laRUw1bHY4STl1NHg1UW1IbGZFcjc3bFEyYXhzQ1ZWVFNqeDhJ?= =?utf-8?B?TFRFUFFFUlpIOTRUOXpubmFRKzlVcUN3UUgvbk1tSDMwV1BUZ2R3a2d0KzBJ?= =?utf-8?B?MlpJVys1MzJ1NUFBV0ZncDlLaWlLVEdMK1k4RktpZXZtazV3dm9HWFRwQ3Rq?= =?utf-8?Q?oKcircJrHhwe8b8/mMMV55Fak+eFOMqWkxXgGIK?= X-MS-Exchange-CrossTenant-Network-Message-Id: 66dfa58b-4014-4d29-1241-08d976cd38fe X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 15:43:24.8842 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qrpalAo1/hwWnWNTE2c7SDjQGjdZzVcjf+ekUdNTt4ofXBaEG36+Vr9Bf4DGTyc95BuPt8IvlUvco755dYAJtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5126 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] DPDK Max Mbuf Allocation 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 Sender: "dev" On 9/13/2021 5:56 AM, Kamaraj P wrote: > Hello All, > > Would like to understand or if there are any guidelines to allocate the max > no of mbuf per NIC ? > For example, if i have defined as below: > #define RX_RING_SIZE 1024 > #define TX_RING_SIZE 1024 > > The Maximum RX/TX queues can be defined as 8 per NIC, What would be the max > no of mbuf can be allocated per NIC ? > Please share if there is any guildliness or any limitation to increase the > mbuf ? > Hi Kamaraj, Max number of the queues and max number of the descriptors per queue depends to HW and changes form HW to HW. This information is shared by the PMDs that application needs to take into account. For example the descriptor limitations are provided by 'rx_desc_lim'/'tx_desc_lim' etc. After descriptor number is defined, testpmd uses the mbuf count as following, which can be taken as sample: nb_mbuf_per_pool = RTE_TEST_RX_DESC_MAX + RTE_TEST_TX_DESC_MAX + MAX_PKT_BURST + (nb_lcores * mb_mempool_cache); > Thanks, > Kamaraj >