From owner-freebsd-stable Mon Dec 18 10:16:53 2000 From owner-freebsd-stable@FreeBSD.ORG Mon Dec 18 10:16:50 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 7373337B400 for ; Mon, 18 Dec 2000 10:16:50 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eBIIGDx06775; Mon, 18 Dec 2000 10:16:13 -0800 (PST) Date: Mon, 18 Dec 2000 10:16:13 -0800 From: Alfred Perlstein To: Alexey Dokuchaev Cc: freebsd-stable@FreeBSD.ORG Subject: Re: make -j Message-ID: <20001218101613.Y19572@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from danfe@inet.ssc.nsu.ru on Mon, Dec 18, 2000 at 06:33:41PM +0600 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alexey Dokuchaev [001218 04:36] wrote: > Hello! > > You see, I actually never had a clear vision of the whole `make -j' issue > during making the world. Most notably, I'm not quite sure that it's > perfectly OK to use it, that is, not being afraid that something would go > wrong. So, I've been running make without specifying any of that -j > numbers, just to be sure it won't break anything along the way. > > Right now I'm very curious about these questions: > > 1. Is it safe to build stable world/kernel with `-j n'? What are > possible restrictions/limitations on n would be in this case? The rule with -j is that it _should_ work, if it doesn't then try without -j and let us know. > 2. What is optimal n? This is a black art, I base it on several factors, how many cpus, how much ram and how usable I want the box to be while I do the compile. Experiment and find something you're comfortable with. 4-8 is good for a single processor with enough ram (gcc is large), 4-24 is ok for a SMP box. A good rule is that anything over 20 is really just to stress the machine and will actually slow things down. > 3. Is there any way to specify the actual make (not gcc) options > in make.conf, so I don't issue `make -j n' all the time, but simply type > in `make target' and all my options would come in play? Not that I know of. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message