From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8A6CE2B8C for ; Sat, 11 Mar 2017 15:52:22 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 11 Mar 2017 06:52:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,147,1486454400"; d="scan'208";a="833502668" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 11 Mar 2017 06:52:20 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 11 Mar 2017 06:52:20 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.172]) by fmsmsx120.amr.corp.intel.com ([169.254.15.204]) with mapi id 14.03.0248.002; Sat, 11 Mar 2017 06:52:20 -0800 From: "Wiles, Keith" To: Kai Zhang CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Issue with more Cores assigned: Cannot mmap device resource file Thread-Index: AQHSmncVf+IWPtyWEka9T4zZq6zRFw== Date: Sat, 11 Mar 2017 14:52:20 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.23.231] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Issue with more Cores assigned: Cannot mmap device resource file X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2017 14:52:22 -0000 > On Mar 10, 2017, at 9:35 PM, Kai Zhang wrote: >=20 > Hi, there >=20 > I am using DPDK-16.11 on XL710 40GbE NIC. OS: CentOS 7.3.1611 with Linux > kernel version 3.8.0-30. >=20 > I have a master process and a secondary process. When I run the secondary > process with less than or equal to 4 cores, it works correctly. Such as: > sudo ./program -l 4,5,6,7 -n 4 --proc-type=3Dsecondary > sudo ./program -c 0x0f -n 4 --proc-type=3Dsecondary >=20 > However, there will be error in the rte_eal_init if I assign more than 4 > cores. > sudo ./program -l 0,1,2,3,4 -n 4 --proc-type=3Dsecondary > sudo ./program -c 0x1f -n 4 --proc-type=3Dsecondary >=20 > EAL: Cannot mmap device resource file > /sys/bus/pci/devices/0000:02:00.0/resource0 to address: 0x7fff65bfc000 > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:02:00.0 cannot be used I assume you have at least 8 cores. Have you tried -l 1-5 on the secondary = process. You did not show the primary process command line, but the if you use 1-5 t= hen you can only give primary process -l 6-7 or two cores. It is always a r= easonable thing is to leave core zero for linux to use. Also it could be you ran out of memory or hugepages you allocated to the sy= stem. >=20 > Anyone knows why this happens? >=20 > Thanks a lot, > Kai Zhang Regards, Keith