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 C0B0A43D85 for ; Sun, 31 Mar 2024 21:06:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 439D24013F; Sun, 31 Mar 2024 21:06:39 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 0B619400EF for ; Sun, 31 Mar 2024 21:06:36 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1e0d8403257so25905125ad.1 for ; Sun, 31 Mar 2024 12:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711911996; x=1712516796; darn=dpdk.org; 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=hT4bVDPKaV+KqX3FaLAyj62M6IBkSVBhFmJmJ5woaUY=; b=Wofoth46dMyS4mB4eb+5xYRXXLzw+rh9hRb2CpibvkyHD82PIl7iFPWQT2FRvWtSch rngj7uMI60vHYqifU4Fwtu5DAetM2SVC2u19n/pAxGsYM/9X2p6QcNcXeFFWbVMXK9+K vro9f4didh0lgdFTw0Nu6ZmPewDDZmq4Rr/6yrTqPkw3lKWlwJu4EBvDNzPo0PZIiPQl JT9b9K4qIIfm7ZjyDvbu9DMDzevBpWnnWVMdFJsy6NKxOsLNQW7Rws6xTF5KbCDm8wJR /wVsGMwbaWy0HswcT6ilzOKbzIHYoLM83bSTiXjqVQyfJFXhlepgaGwQoSXAfFS4D8FL A6hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711911996; x=1712516796; 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=hT4bVDPKaV+KqX3FaLAyj62M6IBkSVBhFmJmJ5woaUY=; b=sGZmfpUb5BRuQeU/H2MH2NUwSkrhyyxR4vrzrQly8SgIXuMm1EKHPiWIxCJTLPWFrt EFyVGOECAKEKsb1tUcmaTRQiR/8tF3JUWSJGlbi/u8Irqm+sPTMPRTvwr2lk0l1T74ax S2pbr8Pgf6/Av6VUNcJTAqwNdCzaCiQF+dK0nztk7Ob/YMVxHtESo99K1POfGhWoya4c kvTQ9td8U8v+u24B8PuwZ6q/3HWgo2r0pzNmXuz+GfvbW+8F546yjECqK+D+6ceaGNK+ AR4hFl2Ozo1qXpgfZTGfISG/cF9Ud5xClaDgHav+PgcUtmholufAIGa7bLPi8WCjors9 O+QA== X-Gm-Message-State: AOJu0YxRcb8G8efPCHqyFv83GDNqapSRePkXDih/Xzd2Xd8Y2gPumrXp ShAUPjyX/hCurw4VR4P+xO+r0b9j+YqNbOyoNFyHwki5W1mFCiFKk03Fj0NjjxI= X-Google-Smtp-Source: AGHT+IHa8jjN02Ho8zkfxMzx9+9+7zSlq1w7VKrE2CX1eJWhWr0qtL+rp/ShBV99zTjaguiCapikqQ== X-Received: by 2002:a17:903:987:b0:1e2:4093:5b28 with SMTP id mb7-20020a170903098700b001e240935b28mr6348589plb.3.1711911995802; Sun, 31 Mar 2024 12:06:35 -0700 (PDT) Received: from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203]) by smtp.gmail.com with ESMTPSA id f8-20020a170902684800b001e09b636cafsm7320507pln.287.2024.03.31.12.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 12:06:35 -0700 (PDT) Date: Sun, 31 Mar 2024 12:06:33 -0700 From: Stephen Hemminger To: Lokesh Chakka Cc: users Subject: Re: No free hugepages reported Message-ID: <20240331120633.05256df7@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 Sun, 31 Mar 2024 16:28:19 +0530 Lokesh Chakka wrote: > Hello, > > I've installed dpdk in Ubuntu 23.10 with the command "sudo apt -y install > dpdk*" > > added "nodev /mnt/huge hugetlbfs pagesize=1GB 0 0" in /etc/fstab > added "vm.nr_hugepages=1024" in /etc/sysctl.conf > > rebooted the machine and then did devbind using the following command: > > sudo modprobe vfio-pci && sudo dpdk-devbind.py --bind=vfio-pci 63:00.0 > 63:00.1 > > Huge page info is as follows : > > ************************************************* > $ cat /proc/meminfo | grep Huge > AnonHugePages: 6144 kB > ShmemHugePages: 0 kB > FileHugePages: 0 kB > HugePages_Total: 1024 > HugePages_Free: 1023 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > Hugetlb: 2097152 kB > ************************************************* Your hugepages are not setup correctly. The mount is for 1G pages and the sysctl entry makes 2M pages. Did you try using the dpdk-hugepages script?