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 3B867A034F for ; Tue, 1 Mar 2022 20:56:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D644E40696; Tue, 1 Mar 2022 20:56:45 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 1F7B240040 for ; Tue, 1 Mar 2022 20:56:45 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id e13so14357498plh.3 for ; Tue, 01 Mar 2022 11:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SFJ+51Wgmluxjh4BOSpjBlRG4jj/b7k4xQslT8e4AWw=; b=pRipFrjNJeP7ziGJslC9A0wvcis8sMNbE8atiM7Lco6y7vXakO0rDjEr8bNX5nsO6K y1s7lG3H42Cf8Q7iga0f27E1fHa5GjByJjAvqPmv1YhpSSzxJizsXHD+UmufgMUTqN/V Sz1pW5XZ6N+pXhLAPUP4D6zxEGokjZBodI/mZj+ujXVUh6zGNkKFLmm7I/Yle+qo8dfj HMj9g9Ij01XWKlJfYyGPV5qUVxpbkthtnrlBdNdar6RFyS+0xzXf3OGBPL3rG5CyW2AW VYDuFD4qumRDWVqx7zBDJyOZucm29Vr/FQcepM4rb/WnX65UxzplHNEyZ3PyNaujpHmo KkBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SFJ+51Wgmluxjh4BOSpjBlRG4jj/b7k4xQslT8e4AWw=; b=PAv9lVKRwMap+vDKy9InSXv28PgKeisHnm+/1c96W4SCVxF++nQSApJ3ZWwJF+z+6S F/5TlP+RO2V70F76yOVlOrngKzckVLbHVuQFg/Nti8KNQ8mXkQ5Jd0yYwapb0k7nC25M nlzEG6bCEc94iUF6/2YNtsvOzdf0DJxOsTkHt/tUkMOC6CVn65iGxc7TtHbZgPIR/A5l w3kvNxYlQJz2Kx6tgNIrUIEg5eCN6lBV8jUWBewJoH5/V0mjlRpHzsfvsmgBox9aF/Th UIUMEFIHlNRBxFoMWzwds3+cUyqj8SGl0J9O5razWH7QSKfznrMKtAo1t3LLJDc6G+Ct 8hDg== X-Gm-Message-State: AOAM5316N2wfpuIAS0AsWyig3Vqhj5xCiZQDfOLjo3yNpFTikTjLX349 Sa+/ZHS2mFsOzJ5WWaw11Fo3Bw== X-Google-Smtp-Source: ABdhPJwEs5eROIJBEpsl4gsJEkfC71X2W3zIDrm/WzJBu8ExXNBsrXGLA5ibYY2U7vcgR/8hzL66Ug== X-Received: by 2002:a17:90a:6404:b0:1b9:28a8:935f with SMTP id g4-20020a17090a640400b001b928a8935fmr23366295pjj.197.1646164603947; Tue, 01 Mar 2022 11:56:43 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id ep22-20020a17090ae65600b001b92477db10sm2761786pjb.29.2022.03.01.11.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 11:56:41 -0800 (PST) Date: Tue, 1 Mar 2022 11:56:38 -0800 From: Stephen Hemminger To: "Lombardo, Ed" Cc: "users@dpdk.org" Subject: Re: How to increase mbuf size in dpdk version 17.11 Message-ID: <20220301115638.62387935@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 1 Mar 2022 18:34:22 +0000 "Lombardo, Ed" wrote: > 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 from 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 allocation 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, starting with the hugepage value? > > Thanks, > Ed Did you check that you have enough memory in the system for the larger footprint? Using 16K per mbuf is going to cause lots of memory to be consumed.