From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 296CE5953 for ; Fri, 26 Jul 2013 16:57:25 +0200 (CEST) Received: by mail-wg0-f42.google.com with SMTP id j13so880190wgh.3 for ; Fri, 26 Jul 2013 07:57:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=sGt40IKLgo5aS3EeibVWRMYDDSyNFIMvklyR3tNxxig=; b=TSlCe0ykCl9x/VMb7LS/uYPp3E/I5bOjPequ22Xjf2ARMCNIQgmx7CjBXH8xy4OQaa TrsA7sZkYzqxVVmFTYOsmNJgaHAZjhvyRmUkHii6qRMhv5qrASIAPpO8juxvdR9Xukpu QzRgY9GQYwEcSaqe7GsOokPSvDwUfN7hSHSS1mYHu8EnQIuq0CNczopSfAdf4UudLK+y VYOSFWFaiq29QIRW+J/g4aSAX7ZeH2oixgQE60pAIxHtGrnnAN+x19HCBnLu2XUREdoy yeu3OSW4p0+v26VBxkJLSuc3FNFUpwbHwMELjPElAGhBr1vkrq4hHBcPE4c6N/8q8Z3n SWbA== X-Received: by 10.194.58.239 with SMTP id u15mr34767096wjq.87.1374850668049; Fri, 26 Jul 2013 07:57:48 -0700 (PDT) Received: from [10.16.0.97] (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id w4sm5258602wia.9.2013.07.26.07.57.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 07:57:47 -0700 (PDT) Message-ID: <51F28E32.9060505@6wind.com> Date: Fri, 26 Jul 2013 16:56:50 +0200 From: Damien Millescamps User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: dev@dpdk.org References: <1374849329-21532-1-git-send-email-adrien.mazarguil@6wind.com> In-Reply-To: <1374849329-21532-1-git-send-email-adrien.mazarguil@6wind.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQl0xALmuCvqGGHXfP2aIzap/73oV9FVPwxNVrOASJRqGgS8YxbVPU3ukM1K0ba/QV1yjfO3 Subject: Re: [dpdk-dev] [PATCH] mem: get memzone from any CPU socket when hugepages are disabled 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: Fri, 26 Jul 2013 14:57:25 -0000 On 07/26/2013 04:35 PM, Adrien Mazarguil wrote: > When huge pages are disabled, memory is allocated for a single, undefined > CPU socket using malloc(), causing rte_memzone_reserve_aligned() to fail > most of the time. > > This patch causes that memory to use SOCKET_ID_ANY instead of 0, and allow > it to be used in place of any socket ID specified by user. > > Signed-off-by: Adrien Mazarguil > --- > lib/librte_eal/common/eal_common_memzone.c | 1 + > lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > ack