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 3A15445A9E for ; Wed, 2 Oct 2024 18:09:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 075DF40268; Wed, 2 Oct 2024 18:09:04 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mails.dpdk.org (Postfix) with ESMTP id D88D24025C for ; Wed, 2 Oct 2024 18:09:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727885342; x=1759421342; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=abPfuog7eSvwsuHbtntLbrfC2d8H0l0LT4Xc49IeYBM=; b=HpjFKts/qAdjp8OqMZkvK8LDeg8QurBTwBzouo2SD2/godwwjLVlwCOW Hj3Gs84w+XEE8mIhTIgw8wVIxC8IuTdbCVgaVYsc2z57X+W9I7QQtC+pE dvVRIF1516RC9ty31Bk8FQDb8w23D8F6uZNAczwKqG71ZoVvZa94KD8DM VuHMBeE3Zevx278zAyiygv88R5p90vyyUBWU7U+KKXviJGJtGbG6L3/Z8 fjBLOpC03JQI2shFFMgZOV6Voa/GkXZtczJrwSxN/lSbgIV5oIm1RpG6z 1C2yVo69ODp2KjpsCAs9sFY3C7mdEcZfxMWndscbYhaefq9B1PyCJ7Ttt g==; X-CSE-ConnectionGUID: plT6NvY2TO+kYQd/xCVEMg== X-CSE-MsgGUID: h4yDS+aqQUGCey9quxfvqQ== X-IronPort-AV: E=McAfee;i="6700,10204,11213"; a="38438914" X-IronPort-AV: E=Sophos;i="6.11,172,1725346800"; d="scan'208";a="38438914" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2024 09:07:25 -0700 X-CSE-ConnectionGUID: O7oXChTzS+Km5AXTuQzZqw== X-CSE-MsgGUID: AgqdIQu0TXeSbb5KvZoK1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,172,1725346800"; d="scan'208";a="74854943" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 02 Oct 2024 09:07:25 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 2 Oct 2024 09:07:25 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 2 Oct 2024 09:07:25 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.43) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 2 Oct 2024 09:07:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YiOcKbtFL0JdkVTI84ruqPpRo4nHdOtDaB+55UapVAcGx0+/9kflJX04i576tC4+DE83+zus4sSQeafkkSqxQY5EdxQb/BwFq3DvcJkURDGKce8ghCDpvV4VFoA2Y3UrmXVhRehGkRVTeDdMqh7qOcQliUlagO2U9GCGlNa0Fza3bVzTYBiOdZwBDnWmSyTNhYbat4xcXEERNAjCUBwq0CgDEhcNmHf/rvB0PGcrrnHQXmnNpn2Br90kCkRgNAWZg9LK4lPY5oC0pBgnc9A1YyiC3qakW3Z6MXwCHiCck4HBC7W/KKY0DwWsKWiTR/n+Fn/kZycS1r+TWjZbv4pelA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ip5/gPKMq+rhQelQB19A1diaZWzbvzcM+InnSQDkPgE=; b=VlM7jH4/rRwTDxuYUv35GKkyIoZfPC8idp82KFNooGZK9dHTAhtxq92wbXxIeEUS8co74sXg6Dm5LZAbuOoaqcmEvOJOhejbimqN0cRscJmzkI8tnu78ofsM/oP5r02hzCHwEy5mkQm4blDWINn33eiappYRZM4LQvplqzVhvSRQJ1MKZ1m2scickx9zbG9iikjBX2GTv5naOyM2/GHhWrbkLyKCL19BdQ+l6q5DbpPNAY0I8xVM2JGhj+a87+1MjDPA1+6vl40jtyK7RTF375mw0RgQV2tIt4pfyCw5SVr/PbOKy941bITj+2PCddu0X567tdjNdQoM4IWDcm5Uwg== 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 Received: from BL1PR11MB5461.namprd11.prod.outlook.com (2603:10b6:208:30b::17) by DM4PR11MB8129.namprd11.prod.outlook.com (2603:10b6:8:183::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Wed, 2 Oct 2024 16:07:21 +0000 Received: from BL1PR11MB5461.namprd11.prod.outlook.com ([fe80::8d83:7a30:43c4:835a]) by BL1PR11MB5461.namprd11.prod.outlook.com ([fe80::8d83:7a30:43c4:835a%5]) with mapi id 15.20.8026.016; Wed, 2 Oct 2024 16:07:21 +0000 From: "Pathak, Pravin" To: Mikael R Carlsson , Stephen Hemminger CC: "users@dpdk.org" Subject: RE: Relation between DPDK queue and descriptors Thread-Topic: Relation between DPDK queue and descriptors Thread-Index: AdsU26toAWDM1M9zRPmq1Na17nzdJAABC0UAAAEXVPAAADN08A== Date: Wed, 2 Oct 2024 16:07:21 +0000 Message-ID: References: <20241002082918.0207a447@hermes.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_ActionId=edd48987-c9aa-45d6-9d74-b2606ac57644; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_ContentBits=0; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_Enabled=true; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_Method=Standard; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_Name=3b623b29-abd1-4de3-a20c-27566d79b7c7; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_SetDate=2024-10-02T16:00:32Z; MSIP_Label_3b623b29-abd1-4de3-a20c-27566d79b7c7_SiteId=cbede638-a3d9-459f-8f4e-24ced73b4e5e; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5461:EE_|DM4PR11MB8129:EE_ x-ms-office365-filtering-correlation-id: 53af308e-3e0d-4149-eced-08dce2fc4c0a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?t9D85tpK46P6P+RPIBPT41r/tJ+BC84CwsKVKvWLL1icac4UsaazgJuHNJI4?= =?us-ascii?Q?wbQbHeXZY5FmzFHagibTeiVz7koUgkuEKB9MR+e5QMZPF6g5xVhq//P9D0zl?= =?us-ascii?Q?SWH/s/9MvwZEDeVN3TwwTfCLAv33YFNDZpIvRaVdBLzKaRHX64Z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SR+O0pOiSsiJQKz04l5KRfd4rbossT?= =?us-ascii?Q?lIlFdUqUXdp+CQe8XYvr0X6lTpzCKJ13BSLJ1wLphc7RWito3riA7+BWmWJ4?= =?us-ascii?Q?3M9zoSQzFOUmuTmPifYwC+FKQlI/hBsgv+Q2vr22geuIA8G2mz8z1ErRlA3H?= =?us-ascii?Q?Nf3yV07SF/dbK8T5KYji4ffBdljG+8hD5IaCUcFj9vBK587IC9bGCAOEn1xi?= =?us-ascii?Q?fTy/RRcsCNBW1UDgIe36Fi/3XN7kVcofYlONCDFDpZbPUPr7uxHnv6v5bgYZ?= =?us-ascii?Q?Z9RuwMjYvdba8IiGuDz5ETknn3CsmikkZkp+2Dh0sjXM3g=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL1PR11MB5461.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?41PZXJG9JeeRPT5AvOytFw9jxgWR5sG+ESCisnyh6QjG3yF0sgZPktZ8A9zo?= =?us-ascii?Q?qH9IbZoPPBxisU9UXKzBbFCBxeq94kjXUnzjIdzL6I22gY/EYQw4vknUtr2G?= =?us-ascii?Q?W7gMQ3tAaxCmzWu9/+r/qfvfq6dMvLd55YvHD2ioGbtJNbRzIbBWNVj/d0kO?= =?us-ascii?Q?BUbBv/cK0iYOqN3rXzJQwuJd6581mKyZ0WUiVKr1RrG8Pv83c9AQxWUmyUnJ?= =?us-ascii?Q?/cUOOkkoqlbnjiDwN+ipvwRWDv7EwmQh9K4nY/ce+7OL28SpxiF7XsFU4gm0?= =?us-ascii?Q?A6JCoj/4dT2bOgu3xfiU/A9OvDjTGQJ4tokiX+2T0Q1KFHb5yjBrOnwnqdeV?= =?us-ascii?Q?7QCK6FIlqv9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s+hgDCZdf1/V/be?= =?us-ascii?Q?Zqh2zbjU6JxzgLU5cJT3/VuOjoVbQnQJOgpRj76ZBKJ2TAmjeIADYtV1wWx5?= =?us-ascii?Q?DSGVl5K8rfvuyXJpfv/wR8D24EVG2L51B+PvQ3zAKzr4AL68k/iKbvswVp8F?= =?us-ascii?Q?vrqvLSFJjG8NI67Hvy9cHGLaa09nJthFIYAmVg+du2kA6/bRvfZaLkMeimtd?= =?us-ascii?Q?y35FyRtFHJUwHImN5K2IoAWEq8Z4mX6+BxKVALGRRFdYuba8js19JIy88gmR?= =?us-ascii?Q?p0wrMLd+57+iJYcBjThP5qbEfNS4SqnS6OpOR+5aI1+ak62VoOrQRE/YrfkI?= =?us-ascii?Q?5WX6QWZxm5jsUbPXj//bk+0ms68HNdLEecLnnENT?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5461.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53af308e-3e0d-4149-eced-08dce2fc4c0a X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2024 16:07:21.4884 (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: tgOA80aIwc7MbNtmwx5S28y+f6LSUVlDukZ6qygiyuVUuANEqTylxaydk1FbjbfYsPcNfgpG2dC51YpwiMg/4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB8129 X-OriginatorOrg: intel.com X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Mikael - ChatGpt provides a good description of the relation between these two. If y= ou ask ChatGPT to do a deep dive, it will provide a good bit of programming= and optimization details. Regards Pravin > -----Original Message----- > From: Mikael R Carlsson > Sent: Wednesday, October 2, 2024 12:05 PM > To: Stephen Hemminger > Cc: users@dpdk.org > Subject: RE: Relation between DPDK queue and descriptors >=20 > Hi! >=20 > Thanks for the response. >=20 > I think I get the descriptor part, but what is the relation to queues? If= the > hardware supports 1024 descriptors and I need 6 queues, do I have 1024 > descriptors on each TX queue? >=20 > / Mikael >=20 >=20 > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, October 2, 2024 5:29 PM > To: Mikael R Carlsson > Cc: users@dpdk.org > Subject: Re: Relation between DPDK queue and descriptors >=20 > On Wed, 2 Oct 2024 15:21:45 +0000 > Mikael R Carlsson wrote: >=20 > > Hi experts! > > > > I have a hard time to finds a good documentation about the relation > between DPDK TX queue and descriptors. > > > > Queue as in rte_eth_tx_queue_setup > > Descriptor as in rte_eth_dev_adjust_nb_rx_rx_desc > > > > We suspect we run out of descriptors in TX path, we are not sure here. = We > use more than one TX queue. Will we get more descriptors if we only use o= ne > single TX queue? Does anyone know if there is some good documentation > regarding the TX queue and the descriptors? > > > > / Mikael > > >=20 > A typical driver has a hardware ring buffer between the driver and the > hardware. > One ring for transmit, and another for receive. > The entries in the ring are hardware specific data structure called descr= iptors. > Each descriptor usually has physical memory address, size, and flags. >=20 > The number of Rx descriptors determines the number of unread frames the > driver can hold. Too small, and you risk dropping packets; too large and = under > stress load the driver can end up buffering excessively causing latency > (bufferbloat). > Similar on Tx but less of a problem because typically the network is fast= er than > the application can send packets.