From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by dpdk.org (Postfix) with ESMTP id 0C34F5965 for ; Fri, 26 Jul 2013 17:09:27 +0200 (CEST) Received: by mail-we0-f181.google.com with SMTP id p58so2015902wes.12 for ; Fri, 26 Jul 2013 08:09:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:organization:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=JTitOR7pcznbjo8TLiAFxtMTamwL9i3ffLuYxAd0hCI=; b=MjtiNiJ5Qt9XUZZEP8+YB/STx7eibFOBO16ntrZbaFcN08h+JDsFMiFR8knHUbjrxj zfCqO878a74wrLpxKAWInyT9Wl4Fkjt+pTs4TV7l6cdzPNjjRhpuKgBf9DKhUQ0OBL5C ghtoDCOG1GLnkshN3L2jDME7XSED4LOXjhL7ONNIHVuJOPgQZiW6U7CBU757LuWL0u8S eo1ztN4JEhC+byShVZW9+Sk6T/i9jD6nxaYs6blzoUL3M3VNSvL5sg3C+NdRFri/rMAM vDlb11wl9V08oB9x6qM5lHkLRDRLgUssJkvS3BsIVuK92GPAvXif2jw9KeiH8Oo6nnkR VJCA== X-Received: by 10.180.74.197 with SMTP id w5mr6070633wiv.20.1374851390937; Fri, 26 Jul 2013 08:09:50 -0700 (PDT) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id r8sm5407267wiz.5.2013.07.26.08.09.49 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 08:09:50 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: dev@dpdk.org Date: Fri, 26 Jul 2013 17:09:48 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <1374849329-21532-1-git-send-email-adrien.mazarguil@6wind.com> <51F28E32.9060505@6wind.com> In-Reply-To: <51F28E32.9060505@6wind.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201307261709.48387.thomas.monjalon@6wind.com> X-Gm-Message-State: ALoCoQlQqjBidv9XQ+C+TaFbcCALaC4/iCnkXpPuWlvAUqt/I9LK+2ZW9U1x+Y/ueL9AOWB0V8rR 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 15:09:28 -0000 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