Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2000 16:26:34 -0700
From:      "Sameer R. Manek" <manek@ecst.csuchico.edu>
To:        "Donn Miller" <dmmiller@cvzoom.net>, "Sam Zamarripa" <samz@oz.net>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   RE: Make World "Nice"
Message-ID:  <LMEMIKHGPPEEMMMMGIENCEOKCDAA.manek@ecst.csuchico.edu>
In-Reply-To: <39F29DA8.1F056F9B@cvzoom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Donn Miller
> Sam Zamarripa wrote:
>
> > Is there anyway to have Make world(s) be set to use a higher
> cpu priority?
> > Such as all the GCC compiling set to use nice -10 for example. Thanks.
>
> Actually, doing make -j [n] where n is an integer >=1 will implicitly
> raise the priority level, because you have approx. [n] gcc processes
> going at once.  With 64M RAM, I find that make -j2 buildworld works
> best.
>

From what I've seen, make -j [n] where n = number cpu + X, X = a few extra
processes, usually 1-3.

You want every cpu to be compiling, plus you want a few more in the run
queue, so should a process enter a sleep state, due to an io wait or
something, there is another compile to make use of the idle cpu.

a make world is a high disk io process for most folks, setting a gcc to a
nice value of -10 is not likely to significantly speed up the process,
unless your processor is already being heavily utilized by other
applications. In which case I doubt that's the best system to be performing
a make world on.

On my pII 400, it takes approximately 3.5 hours to run through a
buildworld/buildkernel, so I usually just run it over night, or when I don't
plan on using the system for a while.

Sameer




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?LMEMIKHGPPEEMMMMGIENCEOKCDAA.manek>