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 697C7A00BE for ; Wed, 9 Feb 2022 22:44:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCE5041101; Wed, 9 Feb 2022 22:44:50 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id D166540140 for ; Wed, 9 Feb 2022 22:44:49 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id y18so83274plb.11 for ; Wed, 09 Feb 2022 13:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hooJyt8gTGvDYaBhuAxJfCgabgGXZXIdg/bjEMStCfg=; b=0K5mZGDqItSR3On1D2vf1KSqikAymJTn8fkeMTtKoksrxdSHckCLbFpNEQC0//3oTZ qwaP7QLYg6mhADt6xnOUwBfREmwYaI+fXEBtEtcOcGtqH5PYytxfzlD9uYnOjiY0S4d2 tl0dIS7wLonhK+hcZaJ4zFL0cQuN36VXjlLUKFqYAuP4xmV7YQZ6n1sgco89BmqwoT0k h4Dx0VbZEOFtZaraaVplWJpXjAM21rW0xKIAhlEqJEk+vF6ITiUgrocIq3eD6omWTiTD +e3WN44lVvxlx3JgsarA67LcVQV0r9W/46wobE7tXl8VaJuzB4+bR6OtJx61m8bHYzT/ VJgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hooJyt8gTGvDYaBhuAxJfCgabgGXZXIdg/bjEMStCfg=; b=7k8LXB8gFSJHGjBNodrFGbQCwWHPH5TdRo1o+2HXfqkNN5hpX+ebxaXGdB5oR+FNe+ yZPRWosOJG0HMrnwr0vZbJi5aGWI/2IV7ljCr0FQjgUuVb9azEuSDPXyDY4M4dGqza4q v+nFYZFvSq19dtluL6ZMDEydlNXn6u2De7anqzSlWnXrSKnKzZCNdBC+ZvA6bU9CRdlo 6auxQaHSpVrcDZ0KLzIaFE3lMDRupy1NLiEz/W39cUK4S3cxoSZlBH1tCGd3MQxEEwQn hQw/2OGST7A60+l+0LgFD6z8gw+qRV2x0qON8X6kBoaKXH1aTR/0tHWFAc2+O0gAFSLp BIqA== X-Gm-Message-State: AOAM531V1dbdf2OSofebtwIvepOqKxv+6+89TNyIvHpC4hu6lSjqPGQN jH2MXajkozEFgTJ0OvE4THwUZQ== X-Google-Smtp-Source: ABdhPJy+SBKAp4ZPzV101Gbve1FnqwAph6/Vz3NHkH620R4tsf+WyfjfPwUXjYsmOlOU1MDl7/wu7w== X-Received: by 2002:a17:90a:d58b:: with SMTP id v11mr5772583pju.100.1644443088868; Wed, 09 Feb 2022 13:44:48 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id v2sm6781678pjt.55.2022.02.09.13.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 13:44:48 -0800 (PST) Date: Wed, 9 Feb 2022 13:44:46 -0800 From: Stephen Hemminger To: Antonio Di Bacco Cc: users@dpdk.org Subject: Re: Max size for rte_mempool_create Message-ID: <20220209134446.403cf13f@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 Wed, 9 Feb 2022 22:20:34 +0100 Antonio Di Bacco wrote: > I have a system with two numa sockets. Each numa socket has 8GB of RAM. > I reserve a total of 6 hugepages (1G). > > When I try to create a mempool (API rte_mempool_create) of 530432 mbufs > (each one with 9108 bytes) I get a ENOMEM error. > > In theory this mempool should be around 4.8GB and the hugepages are enough > to hold it. > Why is this failing ? This is likely becaus the hugepages have to be contiguous and the kernel has to that many free pages (especially true with 1G pages). Therefore it is recommended to configure and reserve huge pages on kernel command line during boot.