svn commit: r365265 - head

Kubilay Kocak koobs at FreeBSD.org
Mon Aug 18 04:19:47 UTC 2014


Author: koobs
Date: Mon Aug 18 04:19:46 2014
New Revision: 365265
URL: http://svnweb.freebsd.org/changeset/ports/365265
QAT: https://qat.redports.org/buildarchive/r365265/

Log:
  Makefile: Default INDEX_JOBS value to kern.smp.cpus
  
  INDEX_JOBS currently defaults to 2 for the make index target.
  
  MAKE_JOBS_NUMBER in bsd.port.mk currently uses kern.smp.cpus to select
  a default. Modify INDEX_JOBS to match.
  
  Nominal and repeatable performance improvements of ~20-30% were observed.
  
  CR:		D381
  Reviewed by:	swills, bdrewery
  Approved by:	portmgr

Modified:
  head/Makefile

Modified: head/Makefile
==============================================================================
--- head/Makefile	Mon Aug 18 00:28:54 2014	(r365264)
+++ head/Makefile	Mon Aug 18 04:19:46 2014	(r365265)
@@ -82,7 +82,10 @@ ${INDEXDIR}/${INDEXFILE}.bz2: .PHONY
 MASTER_SITE_INDEX?=	http://www.FreeBSD.org/ports/
 SETENV?=	/usr/bin/env
 FETCHINDEX?=	${SETENV} ${FETCH_ENV} fetch -am -o
-INDEX_JOBS?=	2
+
+.if !defined(INDEX_JOBS)
+INDEX_JOBS!=	${SYSCTL} -n kern.smp.cpus
+.endif
 
 .if !defined(INDEX_VERBOSE)
 INDEX_ECHO_MSG=		true


More information about the svn-ports-head mailing list