From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mem: get memzone from any CPU socket when hugepages are disabled Date: Fri, 26 Jul 2013 17:09:48 +0200 Message-ID: <201307261709.48387.thomas.monjalon@6wind.com> References: <1374849329-21532-1-git-send-email-adrien.mazarguil@6wind.com> <51F28E32.9060505@6wind.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <51F28E32.9060505-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> 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" 26/07/2013 16:56, Damien Millescamps : > 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 applied -- Thomas