Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2000 10:16:13 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Alexey Dokuchaev <danfe@inet.ssc.nsu.ru>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: make -j
Message-ID:  <20001218101613.Y19572@fw.wintelcom.net>
In-Reply-To: <Pine.LNX.4.10.10012181816270.29890-100000@inet.ssc.nsu.ru>; from danfe@inet.ssc.nsu.ru on Mon, Dec 18, 2000 at 06:33:41PM %2B0600
References:  <Pine.LNX.4.10.10012181816270.29890-100000@inet.ssc.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
* Alexey Dokuchaev <danfe@inet.ssc.nsu.ru> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001218101613.Y19572>