From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by dpdk.org (Postfix) with ESMTP id 129FAB346 for ; Wed, 24 Sep 2014 17:20:23 +0200 (CEST) Received: by mail-la0-f47.google.com with SMTP id mc6so11053442lab.34 for ; Wed, 24 Sep 2014 08:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=zoI6s4vslvoPDQmr0R46FyerSJGQkExSj8kMB11/x0I=; b=0+A7m9JkmkcFk72gCROOEj/sYC0puW3/PLAs85CTCeSBte30rv82V8pRrB9GqQ1kph HH1tGJox3MT3d6oq5cYftgcYXB1+QqqpnXdi3xDX1JBCTFUga83R9OtzKME1U7HeSF6j g5CTG8jhxHgOdZBdageGDTLoK38ITJ51C/QvvMr3uXWdQZojtnvUblyBYAL8H2eWHh2R KeoF63Pxx+5wp0XTi0nAdKxpoQttqrIzspRwO983eIUfrN2LfMJqVuVflyfhFkkL1XBJ MzjtNMoj9PWF52Qdlak6G6wtRMcEs+2nY2KVinKGFe6cK8le5rUsmwCB/181CvHAMxS9 JvtA== X-Received: by 10.152.43.18 with SMTP id s18mr7059566lal.68.1411572396328; Wed, 24 Sep 2014 08:26:36 -0700 (PDT) Received: from [10.210.0.222] ([81.163.30.242]) by mx.google.com with ESMTPSA id y7sm3633893lbp.46.2014.09.24.08.26.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Sep 2014 08:26:35 -0700 (PDT) Message-ID: <5422E2AB.4070906@gmail.com> Date: Wed, 24 Sep 2014 19:26:35 +0400 From: Dmitry Vyal User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "dev@dpdk.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] rte_malloc_socket UNABLE to allocate 8GB. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 15:20:23 -0000 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