From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 063523777 for ; Wed, 20 Jul 2016 21:47:34 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 20 Jul 2016 12:47:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,395,1464678000"; d="scan'208";a="999280402" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 20 Jul 2016 12:47:33 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 20 Jul 2016 12:47:33 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.33]) by fmsmsx120.amr.corp.intel.com ([169.254.15.153]) with mapi id 14.03.0248.002; Wed, 20 Jul 2016 12:47:33 -0700 From: "Wiles, Keith" To: Neil Horman CC: Thomas Monjalon , Neil Horman , "dev@dpdk.org" , "Mcnamara, John" Thread-Topic: [dpdk-dev] [PATCH] validate_abi: build faster by augmenting make with job count Thread-Index: AQHR4q8KhSzpaRllEUyYQ1HdKXgjpaAiLxYA Date: Wed, 20 Jul 2016 19:47:32 +0000 Message-ID: References: <1469034588-1847-1-git-send-email-nhorman@tuxdriver.com> <6330653.K6A9CLrOZy@xps13> <20160720174849.GE28844@hmsreliant.think-freely.org> In-Reply-To: <20160720174849.GE28844@hmsreliant.think-freely.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.74.83] Content-Type: text/plain; charset="us-ascii" Content-ID: <7F152377F59E3948883CE37B7301F505@intel.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] validate_abi: build faster by augmenting make with job count 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: Wed, 20 Jul 2016 19:47:35 -0000 > On Jul 20, 2016, at 12:48 PM, Neil Horman wrote: >=20 > On Wed, Jul 20, 2016 at 07:40:49PM +0200, Thomas Monjalon wrote: >> 2016-07-20 13:09, Neil Horman: >>> From: Neil Horman >>>=20 >>> John Mcnamara and I were discussing enhacing the validate_abi script to= build >>> the dpdk tree faster with multiple jobs. Theres no reason not to do it= , so this >>> implements that requirement. It uses a MAKE_JOBS variable that can be = set by >>> the user to limit the job count. By default the job count is set to th= e number >>> of online cpus. >>=20 >> Please could you use the variable name DPDK_MAKE_JOBS? >> This name is already used in scripts/test-build.sh. >>=20 > Sure >=20 >>> +if [ -z "$MAKE_JOBS" ] >>> +then >>> + # This counts the number of cpus on the system >>> + MAKE_JOBS=3D`lscpu -p=3Dcpu | grep -v "#" | wc -l` >>> +fi >>=20 >> Is lscpu common enough? >>=20 > I'm not sure how to answer that. lscpu is part of the util-linux package= , which > is part of any base install. Theres a variant for BSD, but I'm not sure = how > common it is there. > Neil >=20 >> Another acceptable default would be just "-j" without any number. >> It would make the number of jobs unlimited. I think the best is just use -j as it tries to use the correct number of jo= bs based on the number of cores, right?