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 6DED144111 for ; Thu, 30 May 2024 17:00:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F42540A75; Thu, 30 May 2024 17:00:26 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id 35B7440691 for ; Thu, 30 May 2024 17:00:25 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-52a54d664e3so97966e87.0 for ; Thu, 30 May 2024 08:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717081224; x=1717686024; 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=eMPmJCKpFqMtVWFDZ4bXUQn9sKHHK2au1FRuYASIabk=; b=mQHh/rPrgeqUD1yzlS1HLsEOIKulhe0hRf4zqwRw9FSeYedFLl5JXohljZmK/QDBZ1 M110J5lxEDKlUeP7HZ2Y5XbqRygOXgBc3PJ1w4L1hVCJtu8Br6+zmaYm6sxIxRcLAbTG G4igb4Q83prxQN2SaXFtpUENu8h6u/BpYtTPLpWMu5Mapl0GuLE77Ccjaly32CTPd+V5 98AnKY08bbUtoHCbU4ldPTaYVdT6e5BTvqyWVuBP9NQtjcstGB+hOVKhH6Nz5KTj4OL7 VciIMoawYnq9TkBQllBjnZ01KdMobc02817o7pFijbxaf/LZrSrcQxUQujbTknLg1k09 vJ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717081224; x=1717686024; 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=eMPmJCKpFqMtVWFDZ4bXUQn9sKHHK2au1FRuYASIabk=; b=HEbX8uZo4wwkMDXsdyAy3jzxVDIrdmnYDRq8rkV0B93T3LI8pCdpoBk4ghFsCN6XUK 0zpB1RXOgsdxv3pddpmwldpj1vv06tSWI8qac/4mmC4xvkeTxQlHI4eJ3VTvFzsqvH5c V1NG5Nunah3ZFm2tKGaN1LlCvcv86AaDKJE5J4TYhke7iAAGDSSIagcviU8tCf4tFuOl x9iPajfF4KDif30M73Wg46p8I0qZQ/8ZIJ/+jR+HejSI+ge9sBCN+DXC/IPB+k0BG0PG 3k73vG4YYWep3D58EBeLjeLnohXZ797bXC1n3HtUs6pOHAAToZxKC7rc2hIuGjf/8QIM s7ug== X-Gm-Message-State: AOJu0YwcZTkreVOK/y83X6i3mfjjHQOMhzU64DYnlJEa1YcN+e6k5QUh GeVKhVADXORYq+XlcwiA38PWhh/ytW1qU1JmsCxxc7inScsZBdId X-Google-Smtp-Source: AGHT+IGLw4jLgWQgf2cw2eSb8fbS5tUeOEINc6hO4lSqEIpXOglRKcpeu9JQrTH/R6LPZIim5NO0qQ== X-Received: by 2002:a05:6512:48d0:b0:52b:6ccf:e631 with SMTP id 2adb3069b0e04-52b7d436ebfmr1547022e87.41.1717081224304; Thu, 30 May 2024 08:00:24 -0700 (PDT) Received: from sovereign (broadband-109-173-110-33.ip.moscow.rt.ru. [109.173.110.33]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b7b8a2e3fsm282930e87.45.2024.05.30.08.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:00:23 -0700 (PDT) Date: Thu, 30 May 2024 18:00:22 +0300 From: Dmitry Kozlyuk To: Antonio Di Bacco Cc: users@dpdk.org Subject: Re: Failure while allocating 1GB hugepages Message-ID: <20240530180022.58cbc8a3@sovereign> In-Reply-To: References: <20240510180743.53c37660@sovereign> 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=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 2024-05-30 12:28 (UTC+0200), Antonio Di Bacco: > Just in case I need, let us say, 1.5 GB CONTIGUOUS memory zone, > would it be fine to use something like this as GRUB config in Linux? > > default_hugepagesz=2G hugepagesz=2G hugepages=4" On x86, "hugepagesz" and "default_hugepagesz" may be either 2M or 1G. There is no way to *guarantee* that there will be two physically adjacent 1G hugepages forming 1.5GB contiguous space, but in practice these options, with the above correction, will do. Note that by default the kernel will spread hugepages between NUMA nodes. You can control this by a more elaborate form of "hugepages" option: https://docs.kernel.org/admin-guide/mm/hugetlbpage.html