From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] validate_abi: build faster by augmenting make with job count Date: Wed, 20 Jul 2016 19:40:49 +0200 Message-ID: <6330653.K6A9CLrOZy@xps13> References: <1469034588-1847-1-git-send-email-nhorman@tuxdriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Neil Horman , "Mcnamara, John" To: Neil Horman Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 9A8B62BD7 for ; Wed, 20 Jul 2016 19:40:51 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id i5so79295344wmg.0 for ; Wed, 20 Jul 2016 10:40:51 -0700 (PDT) In-Reply-To: <1469034588-1847-1-git-send-email-nhorman@tuxdriver.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-20 13:09, Neil Horman: > From: Neil Horman > > 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 the number > of online cpus. Please could you use the variable name DPDK_MAKE_JOBS? This name is already used in scripts/test-build.sh. > +if [ -z "$MAKE_JOBS" ] > +then > + # This counts the number of cpus on the system > + MAKE_JOBS=`lscpu -p=cpu | grep -v "#" | wc -l` > +fi Is lscpu common enough? Another acceptable default would be just "-j" without any number. It would make the number of jobs unlimited.