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 D1FDF4595A for ; Wed, 11 Sep 2024 00:36:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4460F402D1; Wed, 11 Sep 2024 00:36:49 +0200 (CEST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mails.dpdk.org (Postfix) with ESMTP id 3F4674029C for ; Wed, 11 Sep 2024 00:36:48 +0200 (CEST) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2f7502f09fdso2881121fa.1 for ; Tue, 10 Sep 2024 15:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726007807; x=1726612607; 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=SNt3YiBEBXaoYl5j0Hq6gP0JFUznW1vH//0VSnh83tY=; b=DBezG1+k+lxawkyzVWjY/Iz5yQ6/z2Xbiy2mCz6iLraOuIFXkUayUvBmgwT5BuXkRV 6pMzm56ZZycHBCtOqRp2tR6nZ9A2iriHrAGQ/O5kpBkcdQufPsziBq/yLzAB1OQt+mo2 th7L9kAXllbY6WZ1bUZ7Cq3CQIIFJpeENkTF8ntbcvcmyWhdSGl0hiqNrs/OCQLKjdAl KdZklWyMdmZlEMpY3PMy2V7PRHDGghr4BMmnfv7Uxc+yrquieOCA1oRNqvjQmIL9IAvD rg6rd7kC7I9X8TDC1a2RedVn9+u8docMATV1bIyWZjA+SEhHB4bkFOU8OkFINdUMeqkn ZamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726007807; x=1726612607; 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=SNt3YiBEBXaoYl5j0Hq6gP0JFUznW1vH//0VSnh83tY=; b=EHXnUsvcA7gQtXwWcy9mi95JgbeUNBzHNhYjujhR76RNy3Jl0+O4dfxcdSPqWFrN+P bfcr4zZE+OC2bllEJdeutJHw90igK0zjW8HEaTBfZ7huXQhCe+CS1Drc3c22gOMzePs8 6nN7+LkjmGq5jRZZv43HzSXvuy/9tQgIwVgKPi0cgeaJqjbKWMBaFib3+v5V5pxUnHoF YNal5p0W7eGpCa7m9g301MkZTVXIB6B9TKF/ODW9YXiL9SMAthQdMy2Y6KV6cMJiKJTv H07zAf82hiltTieDMXkIimGdlKBylmcmkG7EuIkJ3Hncxv7eUmnmwKfcCkoP1aMb5h/1 3VQw== X-Gm-Message-State: AOJu0YwF89ydhfMWeTGU1SsP3DtaklQ119hmxXH1ZnSAKvCkF3JGRpeT sSQs6V8mGKB5oN/zD63a2AUxtbM9kpA6e847UPup1A0aTkkLFr3I X-Google-Smtp-Source: AGHT+IFCD2sG1PdxE9DDY1Pv0JsTKGm85QhGqirLqsFCJ2DeDoWbfVSVrJQp47UtXMhmJnJDm2NdNw== X-Received: by 2002:a05:651c:2221:b0:2f3:e2f0:b09a with SMTP id 38308e7fff4ca-2f77265ee66mr19615981fa.4.1726007806998; Tue, 10 Sep 2024 15:36:46 -0700 (PDT) Received: from sovereign (broadband-109-173-43-194.ip.moscow.rt.ru. [109.173.43.194]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c098e9esm13818321fa.116.2024.09.10.15.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:36:46 -0700 (PDT) Date: Wed, 11 Sep 2024 01:36:44 +0300 From: Dmitry Kozlyuk To: "Lombardo, Ed" Cc: users Subject: Re: hugepage mapping to memseg failure Message-ID: <20240911013644.58eaf50e@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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 2024-09-10 20:42 (UTC+0000), Lombardo, Ed: > Hi Dmitry, > If I use grub for hugepages will the hugepages always be contiguous and w= e won=E2=80=99t see the mapping to memsegs issue? There are no guarantees about physical addresses. On bare metal, getting continuous addresses at system startup is more likel= y. On VM, I think, it is always less likely because host memory is fragmented. > I am investigating your option 2 you provided to see how much VIRT memory= increases. There might be a third option. If your HW and hypervisor permit accessing IOMMU from guests and if the NIC can be bound to vfio-pci driver, then you could use IOVA-as-VA (--iova-mode=3Dva) and have no issues with physical addresses ever. Out of curiosity, why legacy memory mode is preferable for your app?