From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id AB75C1150; Wed, 23 Jan 2019 11:15:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2019 02:15:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,510,1539673200"; d="scan'208";a="118737543" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.84]) ([10.237.220.84]) by fmsmga008.fm.intel.com with ESMTP; 23 Jan 2019 02:15:38 -0800 To: Ilya Maximets , dev@dpdk.org Cc: Thomas Monjalon , stable@dpdk.org References: <20190122162714.9144-1-i.maximets@samsung.com> From: "Burakov, Anatoly" Message-ID: <1a3eea71-1b1a-7589-48fa-71a23ee1e0a2@intel.com> Date: Wed, 23 Jan 2019 10:15:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190122162714.9144-1-i.maximets@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal: fix parsing zero socket memory and limits X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2019 10:15:41 -0000 On 22-Jan-19 4:27 PM, Ilya Maximets wrote: > Modern memory mode allowes to not reserve any memory by the > '--socket-mem' option. i.e. it could be possible to specify > zero preallocated memory like '--socket-mem 0'. > Also, it should be possible to configure unlimited memory > allocations by '--socket-limit 0'. > > Both cases are impossible now and blocks starting the DPDK > application: > > ./dpdk-app --socket-limit 0 <...> > EAL: invalid parameters for --socket-limit > EAL: Invalid 'command line' arguments. > Unable to initialize DPDK: Invalid argument > > Fixes: 6b42f75632f0 ("eal: enable non-legacy memory mode") > Cc: stable@dpdk.org > > Signed-off-by: Ilya Maximets > --- That's kind of an odd parameter to pass, as it is assumed that if you don't need any limitations or preallocated memory, you don't specify these flags in the first place, but OK :) Acked-by: Anatoly Burakov -- Thanks, Anatoly