From owner-freebsd-questions@FreeBSD.ORG Mon Nov 25 19:39:09 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48A769FE for ; Mon, 25 Nov 2013 19:39:09 +0000 (UTC) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [IPv6:2607:f8b0:400c:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D84423B3 for ; Mon, 25 Nov 2013 19:39:08 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id c14so3242932vea.37 for ; Mon, 25 Nov 2013 11:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ohAPsf2LFvMmKGUpvn9HM76NfBoE8CQBbt/rIxSDlcs=; b=uUXmfaxmHU4k1fCG5KD2xgBLvnrq3gxPIBSCLqB9rRPHsTTkJgioGwm7zkkmF0BbLl 7VMrM5MzdvqbG89c3ia8lmlp0KYkYNSdNO/t6GdqrAIhdqDf1oUvvyx2dPW0Gfbh85Yw 0tsiRbKp/6DeH2O2/TqkbQVGHDRKga2km0qMKos4jzsJ5Z0KX9bJDMxBXL2ImWRvuFfl NN9GNDBGTma+rkrCjT9ElRxGxBwbAmYl6btKv/h8F3PvHGIoUQGJihUFTzxnr8UEVyjH C1ha/kalX9rAfLEDrIJ3/z5BKFdXcDm1KUdV5RBNqXYM6Qnzfgwo92XCgq610wQTL09+ Dwsg== X-Received: by 10.52.98.194 with SMTP id ek2mr23244164vdb.11.1385408348206; Mon, 25 Nov 2013 11:39:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.231.167 with HTTP; Mon, 25 Nov 2013 11:38:48 -0800 (PST) In-Reply-To: <20131125193418.GS15424@itcom245.staff.itd.umich.edu> References: <20131125193418.GS15424@itcom245.staff.itd.umich.edu> From: Anton Sayetsky Date: Mon, 25 Nov 2013 21:38:48 +0200 Message-ID: Subject: Re: using make(1) with "-j" option To: William Bulley , FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 19:39:09 -0000 2013/11/25 William Bulley : > In the modern era with multiple CPUs the norm, I was interested in > finding a way to speed up compiles from source (of the kernel and > the various ports I use). > > According to the man page "make(1)" the "-j max_jobs" option: > > Specify the maximum number of jobs that make may have running at > any one time. Turns compatibility mode off, unless the -B flag > is also specified. > > While building the kernel today, I was successful using "make -j 4" > on a four CPU system. Later on, on the same system, I was unable > to build any ports from source using either "# make -j 4 install" > or "# make -j 2 install" commands. What am I missing here? You should use make jobs _only_ for build stage. Other stages are not supported. For example: make -j3 all && make install This applicable for both src & ports. But correct way for ports is setting MAKE_JOBS_NUMBER and/or FORCE_MAKE_JOBS in make.conf