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 4162C463A5 for ; Mon, 10 Mar 2025 22:21:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C946940268; Mon, 10 Mar 2025 22:21:43 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 20E46400D7 for ; Mon, 10 Mar 2025 22:21:43 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2ff80290debso6481512a91.3 for ; Mon, 10 Mar 2025 14:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1741641702; x=1742246502; 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=ysVTMV4OabS4uE0xPwm+6yIhU2I+g19AHl4H32zDcaQ=; b=sLohSsdFDqkK2hUJ5OZA645QjG2sIylxLaAxst9WW5TyFLGGjzcagP8ejyhuVeckV7 ZxWtVrbwrHdgpMa+Yx2+VtME1vTFZ14PilFvT5rGBJysR1H+beySlneyci0z9ZykpjJO OPEX0Cv5rTE7IF2tLCExjztKSsa82id/8WqibPxyBKzjbNXPAAxfIsM1UUbefZz7txNB AO7i8VnGYAg0ErWcxfXNfhgtH4khyMxi7ECOQVhoESNNcsRoN066odQ+5wMr9bw70zcs JDnUfOQhr3YGEFTBgfgC9zoJzKLbSdPiqbBadGhlKCnjvQvB/Vtst2qg1PhnEsZLMYRe ibMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741641702; x=1742246502; 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=ysVTMV4OabS4uE0xPwm+6yIhU2I+g19AHl4H32zDcaQ=; b=R5YUzi1PlkyrSiBsub6MN3aUkBCtqMqnUFQ/SBu/A20sNT/QCmdJQbuE4BiQGjjc4R XLjlhr4W1VwhPL5C9fqR9J4R1mSn32XtHRTxbiWPceq4e7JJWkfne013a2tKbnr+G405 4pI4mDj4UAexkhvRqvYq+Oh4WGaaaiQ9fGyHVa7AD+nhO4rBpejxqgo8chj3sPeN9OtW 3uH/Gs5Qj5ayIFxKNVHdfRlLtvb9MfHsdlN1zMJ8Nc3cd6jHz7o0GRuUznSNhDCYYug+ vxjr7CsCVq6NOG4GtN4sNi9DhOV2foBVGPUQwbWsxI/bRDoJUGVH9JMPVomZFfkE6i1d sT4Q== X-Gm-Message-State: AOJu0YwAHSM6RvDso/UjdHHuV5QJa5EkxrYwxX88KbEcST/JH/A04A2w X2uXZIO4U0gbpSFIThujCieMTZTDx0V6MtberR5UrGiXjRxTrUEvvpqKqVq9y/E6JMctJZTM0AC B X-Gm-Gg: ASbGncsNxdpplDHRdnd1y+F4UKWsJ+LQWXojk+RxZcsGoLaVNLrw3p9EAVbvFlK4M2v eO7gHKsUZcz7/39GdZYBY1mK+6TrYg4qYAxiSMKLcxUqzLXmeRsQObLxLrxlgc1wsXkNNEUuNHK V0QPiLoeXAj59hZAzIxRN++Wgdq1JvhGh73wI2U0HWjd0Q24MFjzIGOopqmSw2OEAWFgAtINJpj 2/zfsntA0PMzRVJTg+okuWd3inhLEBXvxiEVdFBQ/A9eZyUQk3uQjNHCUEGbyYzmfN5HVFjnq5A HXMZp8SgoUG9kUXmU/RVsqtqqR9LnynezqldTFykl8O0SOEA1hpbqtHwqZ4Ed43umUNzrfsGDhg T+2c7DbHsWpO5K5UjhT47qA== X-Google-Smtp-Source: AGHT+IHiapJByNInPWKkSsLt02darx928D4bqQmJqbdA82DV7tKLbT7xtqljxhXfhMdR3vgAaq/+aA== X-Received: by 2002:a05:6a21:398f:b0:1f5:8678:183d with SMTP id adf61e73a8af0-1f5867818d4mr5070247637.14.1741641702065; Mon, 10 Mar 2025 14:21:42 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736adabdd0esm7190187b3a.68.2025.03.10.14.21.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Mar 2025 14:21:41 -0700 (PDT) Date: Mon, 10 Mar 2025 14:21:40 -0700 From: Stephen Hemminger To: Patrick Mahan Cc: users@dpdk.org Subject: Re: Calculating number of HugeTLBs required Message-ID: <20250310142140.4841e75b@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 Tue, 4 Mar 2025 11:22:50 -0800 Patrick Mahan wrote: > Morning, > > This might be simple question, but it has my curiosity itching. > > I did a quick scan through the documentation, but I did not see any good > guidelines for determining the number of HugeTLB based on the number of PMDs and > number of RX/TX queues. > > I'm am looking at three different platforms, one has 2 ports (ixgbe), one has 3 > ports (1 e1000 and 2 i40es) and a third has 2 ports (1 e1000 and 1 Cavium liquidIO). > > I'm trying to come up with some means of defining the HugeTLB requirements other > than trial and error. > > Thanks, > > Patrick There is on exact way to estimate this. But for most applications the largest memory footprint is the mbuf pool. For sizing the mbuf pool you need to account for all the NIC's, queues, and descriptor arrays as well as any internal staging buffers.