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 7B2ADA0547 for ; Mon, 5 Dec 2022 18:39:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 502DA40156; Mon, 5 Dec 2022 18:39:53 +0100 (CET) Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) by mails.dpdk.org (Postfix) with ESMTP id 3130740151 for ; Mon, 5 Dec 2022 18:32:52 +0100 (CET) Received: by mail-ot1-f49.google.com with SMTP id p10-20020a9d76ca000000b0066d6c6bce58so7694531otl.7 for ; Mon, 05 Dec 2022 09:32:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=utexas-edu.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=YUuXcTEnu6Ei7921KcIeAHRCokG72Ph7NeAof5maQVM=; b=xSZ5n61yeVJn2Lxp6t+KjTPpn3S8hr6X+MDPOCNi6v+Qms7MiEwanHqsGK672XOn6a QdGc9np+98wZdd+xGOP333ZxKsq2RFemBM5Ho5J92oPb8Lopv6ZZ3YpEh+Cn0MRiqkug aNPzMfP2yP7i5/7OK/hTfjzJmU56MC/n4doGbM2TxMGpCvxx3IpOUNxXxun4PGLOmXh/ J7LknEc15sYlYk89cqAdTdU2Eo1lvBvhv3yDxR+eFTT1iDIvkQiXInauZiDBM4QaRqKT eABcTok9NkGtvtVQyzwVN3zkQBkvv2nhN6MtxtY2XN2gtx/IK1BofeixutBxVETHA4gI niKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YUuXcTEnu6Ei7921KcIeAHRCokG72Ph7NeAof5maQVM=; b=wIzK1GH7TnfrTz9RjT1+vJ3rnt3OpMiRlTOK5nmlADm4dxT+hRquFx3hOGunMvQoYo 5M5xYcKCDWAwCcGfszeXjeeOiYFIiPnpjTrdaVciKhe6SQluVDOfLUGhqxlLG8VvUPld GCR/V3iaq4jic4+95ozXj2ZeqDr1a03XytCgKHmxDiHnXMQsrgFB+MaGOPe3kj/V/KGZ pOezjM7WhWDb7f6Gjg9yZhqsPvTGNvFbcC8srkncoff3gdsO694ioUKzEX1pTNPcYNLV jWT11wQqSBJRG5tXodrkIkU1vZrTM2M8AxbDvLRzCjx/OrsSQc27jgGpPbB85koqSB5S DVtQ== X-Gm-Message-State: ANoB5pkvjU2cmxth6HyKVUt1qyb2KphzQ4gfejKBep8oP5p5nYRybyaN GWFK5zo7ams5GYM1fX4cKlpmYVIsUbro0+d0dReqo/CcW2aLwA== X-Google-Smtp-Source: AA0mqf6F3oRIkiB97EuR7aOirE6tpY9lAuB1/K/Sn/AjARIJeKqaDGfQr85cjEhj0k9ctrPBofYrYL/P6Z76VSar7ek= X-Received: by 2002:a05:6830:409d:b0:661:b8d7:e283 with SMTP id x29-20020a056830409d00b00661b8d7e283mr32871687ott.367.1670261571049; Mon, 05 Dec 2022 09:32:51 -0800 (PST) MIME-Version: 1.0 From: Dylan Baros Date: Mon, 5 Dec 2022 11:32:40 -0600 Message-ID: Subject: How do you calculate DPDK mempool requirements? To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000009fdbb905ef181302" X-Mailman-Approved-At: Mon, 05 Dec 2022 18:39:52 +0100 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 --0000000000009fdbb905ef181302 Content-Type: text/plain; charset="UTF-8" How do you figure out what settings need to be used to correctly configure a DPDK mempool for your application? Specifically using rte_pktmbuf_pool_create(): - n, the number of elements in the mbuf pool - cache_size - priv_size - data_room_size EAL arguments: - n number of memory channels - r number of memory ranks - m amount of memory to preallocate at startup - in-memory no shared data structures - IOVA mode - huge-worker-stack My setup: - 2 x Intel Xeon Gold 6348 CPU @ 2.6 Ghz - 28 cores per socket - Max 3.5 Ghz - Hyperthreading disabled - Ubuntu 22.04.1 LTS - Kernel 5.15.0-53-generic - Cores set to performance governor - 4 x Sabrent 2TB Rocket 4 Plus in RAID0 Config - 128 GB DDR4 Memory - 10 1GB HugePages (Can change to what is required) - 1 x Mellanox ConnectX-5 100gbe NIC - 31:00.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5] - Firmware-version: 16.35.1012 - UDP Source: - 100 gbe NIC - 9000 MTU Packets - ipv4-udp packets Will be receiving 10GB/s UDP packets over a 100gbe link. Right now trying to get it working for 2GB/s to a single queue. Reviewed the DPDK Programmers guide: https://doc.dpdk.org/guides/prog_guide/mempool_lib.html Also searched online but the resources seem limited. Would appreciate any help or a push in the right direction. Sincerely, DB --0000000000009fdbb905ef181302 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
How do you figure out what settings need to be used to correctly= configure a DPDK mempool for your application?

Sp= ecifically using rte_pktmbuf_pool_create():

- n, t= he number of elements in the mbuf pool
- cache_size
- p= riv_size
- data_room_size

EAL arguments:=
- n number of memory channels
- r number of memory ran= ks
- m amount of memory to preallocate at startup
- in-= memory no shared data structures
- IOVA mode
- huge-wor= ker-stack

My setup:

  • 2 x Intel Xeon Go= ld 6348 CPU @ 2.6 Ghz
    • 28 cores per socket
    • Max 3.5 Ghz
    • Hyperthr= eading disabled
    • Ubuntu 22.04.1 LTS=
    • Kernel 5.15.0-53-generic
    • Cores set to performance governor
    • 4 x Sabrent 2TB Rocket 4 Plus in RAID0 Con= fig
    • 128 GB DDR4 Memory
    • 10 1GB = HugePages (Can change to what is required)
  • 1 x Mellanox ConnectX-5 100gbe NIC
    • 31:00.0 Ethernet controller: Mellanox Technologies MT2= 7800 Family [ConnectX-5]
    • Firmware-version: 16.35.1012
  • UDP= Source:
    • 100 gbe NIC
    • 9000 MTU= Packets
    • ipv4-udp packets

Will be receiving 10GB/s UDP packets over a 100gbe link. Right now trying= to get it working for 2GB/s to a single queue.

Reviewed the DPDK Programmers g= uide:=C2=A0https://doc.dpdk.org/guides/prog_guide/mempool_lib.html= =C2=A0Also searched online but the resources seem limited. Would appreciate= any help or a push in the right direction.


Sincerely,

DB

--0000000000009fdbb905ef181302--