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 08B0045899 for ; Thu, 29 Aug 2024 17:01:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97AA440279; Thu, 29 Aug 2024 17:01:19 +0200 (CEST) Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) by mails.dpdk.org (Postfix) with ESMTP id 95AC74026A for ; Thu, 29 Aug 2024 17:01:18 +0200 (CEST) Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-2705dd4ba64so401316fac.3 for ; Thu, 29 Aug 2024 08:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724943677; x=1725548477; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=OZal90jBcrznknc7QY5ay/psYhqig33leflnLtaynvA=; b=hDxtYzliu1I+mpVAu1fS/mSP25p8oAI2Q8nefH7Nxr+nUcff8+qGccPspAwLt54sbE onwa/m+SiMtg5zyPXcxQ34D6DeltehY195dIJqbjKTrTSQKy9vGCjh/5wE1K2n068wAt Bhh7TdXQnWejWSRZZkB4wQ0JPbYllR4aOYUeQEwM3fV+SclbIhqLfFVGLnCAqj7/KQxp /l135lEnYoId7UGy3U4S0IsyYUW/yatM/lbxTbbnl/0n7OxMd5nZR4mTSXGBf1Kz8Rjf VkdeQr3VSbzINiXMEERq85gmrWaCa/7ucpNiAs5zT3OIncfuO+tG0W3beC4sthwjKXa5 H3oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724943677; x=1725548477; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OZal90jBcrznknc7QY5ay/psYhqig33leflnLtaynvA=; b=hZICexgHq1gALmBBXdtzdcqmznY24SL1ZklsTVSvZ8ZpoQCr1h4FPOJ7MbGpCAg0pC vdBZdcmV0XQHVRtej2W4ram4xXgWDwTNAMKTE3dzDslAgVZnWam4AvkWpCAahid6PHGV 7p1WgaUGY1dYe+iD5s81JaR3T4lVxi9LiVp/wrVoSYJAvdCdiWScWsFIUCsiZzBi6h/5 9L+SyByRt51Bavx/jlmtlIoGIdtBCt1OLPznbJfX7a4wmiGU4is3jp4F8kpUNmwD//k1 snVx5vLr/6nc86ekZM25CYTSFAD21iS+vyMa5J2lxhbPzrEI+CkaM5TX5yDUFexwL8zz ETtw== X-Gm-Message-State: AOJu0YynXZH8iqSQyFGIiEKX/q2yin736Ljvxp8+oYGcL0yR/yRMZeSS PyywvlfFbCsG8aVJ0Lc1issyCfBriWpYECGKAZpBAUd6hgFC3j7QjPnxJr2egEKb+den8grM5Ew Ay1C2vdNUvjdh7luDgUPAdA7/S68iaUEx X-Google-Smtp-Source: AGHT+IHQ7bY9JsRJb/MV88iJhGypsLo1VJ+ne56THK9BXHX2EidJ/lBANCQaowjdOzpDTHczT1BykxPZkkAeWvbghu8= X-Received: by 2002:a05:6870:648d:b0:270:1352:6c10 with SMTP id 586e51a60fabf-27790268d24mr3491297fac.37.1724943677040; Thu, 29 Aug 2024 08:01:17 -0700 (PDT) MIME-Version: 1.0 From: David Aldrich Date: Thu, 29 Aug 2024 16:01:06 +0100 Message-ID: Subject: Help needed with hugepages and binding ports To: users Content-Type: text/plain; charset="UTF-8" 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, We are running DPDK v.19.11.14 on Ubuntu 22.04 LTS. Our goal is to use DPDK to accelerate UDP communication on a Broadcom 57504 network controller. I have some problems with hugepages and binding of ports and would be grateful for some help please. 1) Firstly, regarding hugepages, our kernel cmdline includes: default_hugepagesz=1G hugepagesz=1G hugepages=25 hugepagesz=2M hugepages=1024 After reboot I see: $ cat /proc/meminfo | grep Hugepages Hugepagesize: 1048576 kB This is no mention of 2MB pages. Is that expected? I call rte_eal_init() with parameter: -m 4000 but see: EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size Is that a problem? 2) Secondly, I use dpdk-devbind.py to bind the first device of the 57504 controller to DPDK. dpdk-devbind.py reports: Network devices using DPDK-compatible driver ============================================ 0000:43:00.0 'BCM57504 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb Ethernet 1751' drv=igb_uio unused=bnxt_en,vfio-pci but when our application calls rte_eth_dev_count_avail() the return value is 0 and so the application reports: ERROR: EXIT_FAILURE : No DPDK ports found - have you run the DPDK setup script? Any idea why the bound port is not found? 3) Finally, our setup script inserts modules igb_uio.ko and rte_kni.ko. Is this adequate for the Broadcom BCM57504? Best regards David