From owner-freebsd-questions Mon Jun 3 21:27:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from beta.tricity.wsu.edu (beta.tricity.wsu.edu [192.220.200.3]) by hub.freebsd.org (Postfix) with ESMTP id 19D2A37B407 for ; Mon, 3 Jun 2002 21:27:48 -0700 (PDT) Received: (from msmith@localhost) by beta.tricity.wsu.edu (8.9.3/8.9.3) id VAA18855; Mon, 3 Jun 2002 21:27:38 -0700 From: Mark Smith Message-Id: <200206040427.VAA18855@beta.tricity.wsu.edu> Subject: Re: make -j4 becoming default? To: pepper@reppep.com (Chris Pepper) Date: Mon, 3 Jun 2002 21:27:38 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: from "Chris Pepper" at Jun 03, 2002 05:42:46 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Obviously, I'd like to use -j4 wherever possible, and it's > suboptimal to try everything multi-threaded, then sometimes fail and > manually fall back to single-threaded. Even worse, I usually forget > -j4 for thread-safe builds, so I waste time unnecessarily. Why? I've tried make buildworld with different -j options and, on a single processor computer, they're slower than not using -jn at all. In this case, the handbook may be wrong. If you have the time, try "time make buildworld" and "time make -j4 buildworld" in both single and multiuser mode and look at the "real" time for all 4. In my experience on my box, "make buildworld" under multiuser mode is the fastest. Mark -- ========================================================================= UNIX IS user friendly, it's just very choosy about who it calls a friend! ========================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message