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 D9DC0A0350 for ; Tue, 1 Mar 2022 19:34:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77EDE40696; Tue, 1 Mar 2022 19:34:30 +0100 (CET) Received: from mx0a-00196b01.pphosted.com (mx0a-00196b01.pphosted.com [67.231.149.170]) by mails.dpdk.org (Postfix) with ESMTP id 1FB4840040 for ; Tue, 1 Mar 2022 19:34:28 +0100 (CET) Received: from pps.filterd (m0096263.ppops.net [127.0.0.1]) by mx0a-00196b01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 221FaDbY008647 for ; Tue, 1 Mar 2022 13:34:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscout.com; h=from : to : subject : date : message-id : content-type : mime-version; s=netscout.com.09.24.2020; bh=DSqxy5RAll/T21ZSArqgYv0LzhDlWtJ4ibBAC9Ld3EY=; b=AVtuDXYpa+nq7Xv5MHncgEPukVryrlMW7Vi21JKcIHm/J8TbZdESzqYIjyp9DzOPBsa9 FnImoKDQr6gDa4RtForMMf4LKr8Fnsf34guYrp813ArljnhfmqxXYG1/GVaA2dRxbWv9 BdTcbnXVS5jGJBm6C25+Y8PrYsyvdOKcJgiIzJqFeRDUnmqGFZt/JWVcvFFUO68kiJtT nQVpahvYiezd7qSi+MozUnUxl2G2HSK6JqWheoR3lu/J4DYVea5jzXohC/ESmSFaY60a MwQYc47MRB0d/+aYnPFKiY1W0yyx0nA6719Klt//gVotUEUWWZraYtn+o0mH3G6vE1UY Wg== Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2048.outbound.protection.outlook.com [104.47.74.48]) by mx0a-00196b01.pphosted.com (PPS) with ESMTPS id 3egqts2nts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 01 Mar 2022 13:34:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f2G1p+36O6NjjCMTcng+rlczt/Hwvqmopx+D7SNPvDDBegfjovpkNIGUc9BwB2FOQ3TaTF3tKc4WkbSLaMhagBcIKHJsp/dVilBGQb2ZNwKYCDNTH38AWQHnQpYoodQne9bdcn7hjNGWFNTECLfw6RYTTK+meje6C+fNekSw9LUKpYwre/TzXSLnqzQ1+/McRCKyxI6Bu4up4Ojz95DHIZ5jv905rtvrBYKkyxOAnfIxAMRz0m6WdzQ6lILcSZSBs9dnw+7lyBhtWcgljsjlNqOpWrzdo5IwmqDUwfT8Uax9F/xN5v0oytNIze1XF6RJuVZNV/zkrTpEvj8tjrcrGg== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DSqxy5RAll/T21ZSArqgYv0LzhDlWtJ4ibBAC9Ld3EY=; b=Xpe19Lwt52PctfmjR8/ie/wOnUoyhpLNbIfVM2L/OZVGUef+IpoJLvR5geJ2edAOdq3FzrsMLjdtHURuOT5UJg6OrI2yQXiL/+Eb8Oee6scUYcVU3rZSo1TSlX1cHfUBBiX/FcoFoOtd7PMOeq87jijL+hUmlAOobUced94qnfzSUfR2PQC8zcAMdKD1MhoU0LBVTQ1r9i7ghQ8z/0ZupeaMCQTkEPLPMdxRnZjKfs6haItjPQoOUpYlOTzBZzoR8IH9WcBarmjZvU/7jP2+JbRiuD4CNewgSi56uRNClMKjgg2A+9vEUBMcP5aeTGMlrl5hK0GIg5w6BZpRECUGpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netscout.com; dmarc=pass action=none header.from=netscout.com; dkim=pass header.d=netscout.com; arc=none Received: from SJ0PR01MB6399.prod.exchangelabs.com (2603:10b6:a03:298::11) by BN8PR01MB5538.prod.exchangelabs.com (2603:10b6:408:ad::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Tue, 1 Mar 2022 18:34:23 +0000 Received: from SJ0PR01MB6399.prod.exchangelabs.com ([fe80::75a9:94c4:a954:dc0b]) by SJ0PR01MB6399.prod.exchangelabs.com ([fe80::75a9:94c4:a954:dc0b%9]) with mapi id 15.20.5017.027; Tue, 1 Mar 2022 18:34:23 +0000 From: "Lombardo, Ed" To: "users@dpdk.org" Subject: How to increase mbuf size in dpdk version 17.11 Thread-Topic: How to increase mbuf size in dpdk version 17.11 Thread-Index: AdgtgvmYWBNf+aRRSn6QDROyekYkIA== Date: Tue, 1 Mar 2022 18:34:22 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 104d0df3-06de-4942-2f44-08d9fbb21b62 x-ms-traffictypediagnostic: BN8PR01MB5538:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FDxpmusoMI4gEVOu50/PrNtDnefedthMuqLPkFoqadypBxNZnS8m+gV0ZGNUSWPUqX+2aOnpyMzwRX/7I3tulHT1oRR4plQ0u9Kzf+gEx7KKn/MkT8PM+jB8P5FV4kVB7n2j5k1XWB8hB5hsZPr+uqdvShGwm6cw1ATotYAqkhqTCeLzQEZsFEo5cmPI5UI/Cye84TMaZqI6LsgGIcbHhgj2g8JYJSNfqo4vRvpcGZTOIcDmYeDIvHLGGvnqN6zYXRFpBhjtCN3ExFgSl4ftTZC61WCrhu51sNn4V/K6DFmZZUfClDDWL7G951M8uisuKLFM4GgllsaGCmj//4ju/SkXKE8PPPBtlijkp7xG2umNxkzTwWE0jVj8ytwNVPXJRWktDkq9sdFqaTfKxrMifznD9tnB2x9NKxKPiChumpE8Tm+gtV9lqO15SuhqxoMonS6ja/IE4FGtbM/ny1+hfYxcQvbyY3tINFAV+94nx4IuRSFhllkVnBs14INI1NPvyrsJjDif8ffKKJq71fHbRtM5MJ50zMiG7c3DF67xCb/An+P+aYaUXSHQzlTBAu2jFAlfKdsBU4TD5x68QRd04WSosQvN7U9rX6+G0QrKllEWADEpmmIlzSxD2fxn1dseIokFegQ411hejSkWhnVGS6O6ovLQC0URK15/sfzuKsG/Lskq4LQlTlyS5FjGNLdq7tSqYkDH0m4rPNkOogGhzQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR01MB6399.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(186003)(9686003)(83380400001)(5660300002)(4744005)(2906002)(86362001)(38070700005)(38100700002)(76116006)(33656002)(55016003)(6506007)(122000001)(7696005)(508600001)(316002)(6916009)(71200400001)(66476007)(8936002)(66556008)(9326002)(8676002)(66446008)(66946007)(64756008)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?BvRjWNTljEg1RwpBvjpWHRZSIeaQbupan5DPnCvchsXUluDsl0qQEnfkm2d2?= =?us-ascii?Q?+5hCHAhHXS9UtubwnMCR8ZH2Ubc4Qcdi6P4K5H9ZVYkNYCi57uTYjFMvuQAY?= =?us-ascii?Q?I/dXTIP9DQ7FlxF4NdQRjwJ+HZ3bp+zwzNXNOUeKQVbBllVSfQqfc+SwYR9D?= =?us-ascii?Q?FpnDchtxdfn6asxlSbU8lej7jWvb35DMSYywIhDkVCrGezk0lexqm7pyq0js?= =?us-ascii?Q?kdAgHCjFBsO4wairBmgpCHPtdopUUFR4iXJZFqFxp4MXIrm8kyawCxZG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4cdVtt4vgE5hqqlAcE7jUN/kdi03Z0LHyCkvAD2f?= =?us-ascii?Q?xCk6BQ0SS+UCU2DLPUPb5+CFpb4AhCasjNXHnNaDP7XWApEIBZO8yN9uQcFg?= =?us-ascii?Q?kY9cn7C1HiNqPFOazKG688lVZjLEa/WOPzIouNTswTdEnNAV6Q0VAK8QT8Bu?= =?us-ascii?Q?oQ+8gwRrOLz8Pk5XNbn+Ue+Cejwm0X2E9wtXXWoyb0CesjEPoIns+DOObmre?= =?us-ascii?Q?qqPz7yIM3nOiEkpikQAgFN6RFnjMCFsPTijF3fGLRFJQkiPKpI4Zo1/4KbAC?= =?us-ascii?Q?afHvkmjDUI4wQw/5ucsomQNeoS8M1ItjR2RHM9TzZ5QkGrpwHkbmhnAtSY9X?= =?us-ascii?Q?nPeM8B2zdjUy6QTXo4pZFegv6nH/aTaXqKpSB4gfXIKalaoI7AZpss/zZ0y0?= =?us-ascii?Q?vZ3aa6ehH6dwuQ3buNxrKsNuwMXeIpXXV0bxFS8Bv4oHD6uDh0dm+wj+BfZ0?= =?us-ascii?Q?MbhrudlYB+8Wr7HAOYVXSUkeBMBgONyH4dnQM6glgO17Ek3nJLysDADg2TqJ?= =?us-ascii?Q?/Jtt0Ck94IqFWT7LQiFuBiiJyTo=3D?= Content-Type: multipart/alternative; boundary="_000_SJ0PR01MB639925215C86846311B241C78F029SJ0PR01MB6399prod_" MIME-Version: 1.0 X-OriginatorOrg: netscout.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB6399.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 104d0df3-06de-4942-2f44-08d9fbb21b62 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2022 18:34:23.1024 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 54f11205-d4aa-4809-bd36-0b542199c5b2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Kt/IjEFSt20kzs2xdIWHMNipYUIc8iUr5V2s0mDYMoD/NvuA/R34iUQiUoYdahYocX8rid6MAKIxWHmf6DdIyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR01MB5538 X-Proofpoint-GUID: IyvF-dPKhjrG6j1aX7FGQ892bsLxkSU_ X-Proofpoint-ORIG-GUID: IyvF-dPKhjrG6j1aX7FGQ892bsLxkSU_ X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 spamscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 impostorscore=0 mlxlogscore=610 adultscore=0 mlxscore=0 priorityscore=1501 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203010093 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 --_000_SJ0PR01MB639925215C86846311B241C78F029SJ0PR01MB6399prod_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have an application built with dpdk 17.11. During initialization I want to change the mbuf size from 2K to 16K. I want to receive packet sizes of 8K or more in one mbuf. The VM running the application is configured to have 2G hugepages. I tried many things and I get an error when a packet arrives. I read online that there is #define DEFAULT_MBUF_DATA_SIZE that I changed f= rom 2176 to ((2048*8)+128), where 128 is for headroom. The call to rte_pktmbuf_pool_create() returns success with my changes. >From the rte_mempool_dump() - "rx_nombuf" - Total number of Rx mbuf allocat= ion failures. This value increments each time a packet arrives. Is there any reference document explaining what causes this error? Is there a user guide I should follow to make the mbuf size change, startin= g with the hugepage value? Thanks, Ed --_000_SJ0PR01MB639925215C86846311B241C78F029SJ0PR01MB6399prod_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I have an application built with dpdk 17.11.

During initialization I want to change the mbuf size= from 2K to 16K.

I want to receive packet sizes of 8K or more in one = mbuf.

 

The VM running the application is configured to have= 2G hugepages.

   

I tried many things and I get an error when a packet= arrives. 

 

I read online that there is #define DEFAULT_MBUF_DAT= A_SIZE that I changed from 2176 to ((2048*8)+128), where 128 is for headroo= m.

The call to rte_pktmbuf_pool_create() returns succes= s with my changes.

From the rte_mempool_dump() - “rx_nombuf”= ; – Total number of Rx mbuf allocation failures.  This value inc= rements each time a packet arrives.

 

Is there any reference document explaining what caus= es this error?

Is there a user guide I should follow to make the mb= uf size change, starting with the hugepage value?

 

Thanks,

Ed

 

--_000_SJ0PR01MB639925215C86846311B241C78F029SJ0PR01MB6399prod_--