From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Vyal Subject: rte_malloc_socket UNABLE to allocate 8GB. Date: Wed, 24 Sep 2014 19:26:35 +0400 Message-ID: <5422E2AB.4070906@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Dear list, I'm experiencing problems allocating big chunks of memory with rte_malloc_socket. Basically, it successfully allocates 6GB but returns NULL when I try to allocate 8GB. I tried dpdk-1.5.1 and 1.7.1 and got similar behavior. First machine I was trying this on had 29*1GB hugepages on single NUMA node, preallocated using grub. Another one had 14000*2Mb hugepages split between two sockets. Are there any restrictions on maximum size of the block to be allocated with rte_malloc_socket? $ mount |grep hug nodev on /mnt/huge type hugetlbfs (rw,pagesize=1Gb) $ cat /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages 29 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise Best regards, Dmitry