From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80B5AA04B6; Tue, 13 Oct 2020 10:00:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A4891D9F8; Tue, 13 Oct 2020 10:00:03 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 23F241D9CA for ; Tue, 13 Oct 2020 10:00:01 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id n18so22814208wrs.5 for ; Tue, 13 Oct 2020 01:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+yVFkXPrymp7cjZ1ypCcecU40xTG0liIBsFuLDJ2heQ=; b=GDXjY6/Zndjn8zm/Ct7GQW02R/iglyy5PsiFVnEfUIamR/3Kj94T+NgNxadKe4FpPq PzNsyc3eBwEdzzg5qfdhJrwM8b4XSndpbOBeIZACtZH9oR6HEBjfrm+AAD7S4UQjVnOb oUHx8bYNNx4nMINaVzXKQAvLAWuQzL7KhOIvdWndzL19zJfOzV/+5DuLGWuqjloZtwqZ 3SfRNbBMMPppl+iZpiHPsO0jDoU57zUnw9yPDDCyX4stif2JMQHH2dKElTPO/uo9BQi4 Hi4jUTv5P41yXwhX9q88Atom8kHmZFMxj8O4eouwjbHOcPE8dBL3mTKOuujXnq5Bjyr6 tmSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=+yVFkXPrymp7cjZ1ypCcecU40xTG0liIBsFuLDJ2heQ=; b=Sc6La6QbJ0kEMG2tHOXFBavQeyvcIR1AudauPVlL7MP5Ye0FuESq8w1mnGwDSEok+n p3r2gWtrqfBLx5nHBj0jSPFKVLtt3Y+Bz9BZj16aDqUXRK79wNF4r9IL2Q1xAsUf+dJk 5IOEEEJ+VAxT/PrPBmTZ62Jhjc3RxR2u4Mkz3Os0vVBj7ggnXoFPapwxmHcVK3PmZraf wrcY2CJCVX/mFAEO6uNG94lkgLdGKOBxP/9NXYP/lYMyair0cc4K0uDvlXH0mMxQ7Sx/ 0JmwHk0jjkWNpXTRhlKHWErUlXlE7vTuGijRbTNaiAc1inSZyalCF7lFlTyCI0Ak6z7M Wgzw== X-Gm-Message-State: AOAM530G0j4glLHvguCQaZRPmFnvg+DtLWwU+w4o6H570Yu1AmW9CX7H mBdxztNgKUGnGvgAOkGqhMmUmA== X-Google-Smtp-Source: ABdhPJzrM/y24936t+Ndf3xLohqixVGxf+DYUEzOiLDjcQygnCsDn3kqiWiP5LEjh7yHWkm5sQjmCw== X-Received: by 2002:adf:f10e:: with SMTP id r14mr32561243wro.337.1602575999753; Tue, 13 Oct 2020 00:59:59 -0700 (PDT) Received: from ?IPv6:2a01:e0a:410:bb00:4063:2d57:afbb:937a? ([2a01:e0a:410:bb00:4063:2d57:afbb:937a]) by smtp.gmail.com with ESMTPSA id t13sm25466300wmj.15.2020.10.13.00.59.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Oct 2020 00:59:58 -0700 (PDT) To: Nick Connolly , Anatoly Burakov , Didier Pallard , Olivier Matz , David Marchand Cc: dev@dpdk.org, stable@dpdk.org References: <20200805122640.13884-1-nick.connolly@mayadata.io> <20201012192803.3741-1-nick.connolly@mayadata.io> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Tue, 13 Oct 2020 09:59:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201012192803.3741-1-nick.connolly@mayadata.io> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v2] mem: fix allocation failure on non-NUMA kernel X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: nicolas.dichtel@6wind.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Le 12/10/2020 à 21:28, Nick Connolly a écrit : > Running dpdk-helloworld on Linux with lib numa present, > but no kernel support for NUMA (CONFIG_NUMA=n) causes > ret_service_init() to fail with EAL: error allocating > rte services array. > > alloc_seg() calls get_mempolicy to verify that the allocation > has happened on the correct socket, but receives ENOSYS from > the kernel and fails the allocation. > > The allocated socket should only be verified if check_numa() is true. > > Fixes: 2a96c88be83e ("mem: ease init in a docker container") > Cc: nicolas.dichtel@6wind.com > Cc: stable@dpdk.org > > Signed-off-by: Nick Connolly Reviewed-by: Nicolas Dichtel