From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 02:11:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADC62106567E for ; Mon, 9 Jun 2008 02:11:03 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8943A8FC14 for ; Mon, 9 Jun 2008 02:11:03 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 25479 invoked from network); 9 Jun 2008 02:11:03 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Jun 2008 02:11:02 -0000 Message-ID: <484C8F15.6050208@telenix.org> Date: Sun, 08 Jun 2008 22:01:57 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Brian References: <484BE376.9050301@webrz.net> <484C5D6C.9020401@brianwhalen.net> In-Reply-To: <484C5D6C.9020401@brianwhalen.net> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Make buildworld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 02:11:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian wrote: > Jos Chrispijn wrote: >> Can someone tell me the difference between 'make -j2 buildworld' and >> 'make -j4 buildworld' ? >> >> Thanks, >> Jos >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > fyi, the below is from /usr/src/UPDATING: > > COMMON ITEMS: > > General Notes > ------------- > Avoid using make -j when upgrading. From time to time in the > past there have been problems using -j with buildworld and/or > installworld. This is especially true when upgrading between > "distant" versions (eg one that cross a major release boundary > or several minor releases, or when several months have passed > on the -current branch). I really don't think that's a fault of make(1), it's a fault of the Makefiles, which have to be written very carefully so that having multiple parallel processes going might screw up building. Yes, it has done that in the past, but it's an occaisonal thing, not a regular thing, because there's a good number of folks who build there kernels with something like -j4. I often do. One just has to be really awake when you hit a problem, or when reporting a build error... rebuild without the -jN. I did some testing, at least for me, I get the most improvements when the number of cores or processors equals the -j number. You can make it higher, even double it, withoout hurting things, but 95% of the improvements come from matching the number of processes to the number of available CPUs (and that' by my own testing, not theory). Still, if you aren't willing to do your won troubleshooting, best to avoid using - -j anything. It's very easy to screw up. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFITI8Uz62J6PPcoOkRAvc0AKCihT7rT4VrDI/6ve1BXfWjXwrsHgCdE4qr F1uwEvIAQt8qNrQADQZbkvI= =g9B0 -----END PGP SIGNATURE-----