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 54391A054F for ; Tue, 6 Dec 2022 17:25:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2742240687; Tue, 6 Dec 2022 17:25:00 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 66E5A4021D for ; Tue, 6 Dec 2022 17:24:59 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id b13-20020a17090a5a0d00b0021906102d05so15246406pjd.5 for ; Tue, 06 Dec 2022 08:24:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=jGvLuIyxMAY0qpwrrl/j0p+MI4AQ/yAQA92Xf0H4irs=; b=jG7x9RhcJ7n0/vp9VALHdsh21Mb+CSt6yECtlsiQS6vaY7FEBjzfGwdiMCxoJ/tgAS 6zWBCUhFxQ4/oxjiwfnvS7FngYNIf4l1BlNP6bhtszYVP+zI0hqU7mJNpXUN8mQyR4w2 BOxDIbrWYGqHzatX+GSjAuEG79WpKCCtG1VMtbvGAsY9u+XB68e7sNRIclGradHCuOru faFlia2I6J9XHGgurI2n5W5y4hfGifLUWLdRaZqqPy68Wffy55oXGMpn+AFf0N1/F6kI /Ro0cTnfIjwji4rtk3IdvIMRw53TwdJPeJbudtzFiVWCfC/l3CPX4ECGXxinedRZwnQZ XzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jGvLuIyxMAY0qpwrrl/j0p+MI4AQ/yAQA92Xf0H4irs=; b=XTVkv3r0nLwh/1o8Y1akdVLluiIYg/diFaJGRnh/epq4lw4oP3kdtwjowDqwAhF8Y7 67bD6ZAjT8E5/JChMm7CV6VtVsL9pmbc7cdQQcqrMJFWhW6xOOEtUB0OYFWNccoaH39+ 1jfnu2Lx15vnAchsJo+ylxtHdglOXRXOW6PMpXKE2fYjehHv+ISqwRO3nxcVOO6Doq/c hRgCMSii49QEQQs+wFm5nOL1iQlHi9+T3YZweu4qgAO6bgZodfxzhiDi/cxFuAfyLxVK 6QujNYaqJBf5XHfpzkXEQUlA/6WdR/jAf3NcbPls2/xvUwjhFtZh7kAgQ7VwyxOfpbL4 WCog== X-Gm-Message-State: ANoB5pm3x7f0vvM6m7wuoREshfXY9NCxTzUTNajEvEJzdo2UUAiuyNpq 6fLD/wjfBRn1MVEWQoCqM0mJZ/KZmGOjuhig5m8= X-Google-Smtp-Source: AA0mqf4ON/fNFmBvVqES8WnDoEHSIJkiYvBaj6L/ph+gf8jZ38EcAOecElxwWPcqu97TMIoMOdFXvA== X-Received: by 2002:a17:902:8c8e:b0:179:f6ed:2ca8 with SMTP id t14-20020a1709028c8e00b00179f6ed2ca8mr69945061plo.14.1670343898468; Tue, 06 Dec 2022 08:24:58 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id h12-20020a63df4c000000b0045ff216a0casm10149295pgj.3.2022.12.06.08.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 08:24:58 -0800 (PST) Date: Tue, 6 Dec 2022 08:24:57 -0800 From: Stephen Hemminger To: IraM Cc: users@dpdk.org Subject: Re: How do you calculate DPDK mempool requirements? Message-ID: <20221206082457.3574df15@hermes.local> In-Reply-To: <92C51315-3CB2-47A6-9BEE-4674C7665A35@yahoo.com> References: <92C51315-3CB2-47A6-9BEE-4674C7665A35@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, 6 Dec 2022 07:16:13 -0500 IraM wrote: > Sent from my iPhone >=20 > > On Dec 5, 2022, at 12:39, Dylan Baros wrote: > >=20 > > =EF=BB=BF > >=20 > >=20 > > How do you figure out what settings need to be used to correctly config= ure a DPDK mempool for your application? =20 >=20 > I went to rough a similar exercise when I was playing around with packet = ordering example. >=20 > Here=E2=80=99s a rough formula I came up with. > Comments are welcomed >=20 > Total pool size =3D Sum of the following numbers=20 > -RX queue size x number of ports > -TX queue size x number of ports > -Size of ring x number of rings > -MAX_pkt_burstsize x number of threads since each does a read of that size >=20 >=20 >=20 Some drivers like Broadcom bnxt require multiple mbufs per rx descriptor. And if you use jumbo frames and scatter/gather it gets a little more comple= x.