Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2012 00:53:43 +0200
From:      Polytropon <>
To:        Mr U <>
Cc:        "freebsd-questions@freebsd org" <>
Subject:   Re: how to speed up port make??
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 25 Jul 2012 08:02:37 -0700 (PDT), Mr U wrote:
> hi
> is it possible to speed up port make ??
> i want to install openbox and xorg on a Pentium 4 and 2gb ram,
> compiling xorg takes about 2 hours

That's a fully normal make time on such a system. I've been
experiencing it on FreeBSD 5 and 7 (with ATA disks and 768 MB

There is no real way to speed it up, except to replace the hard
disk with a SSD. But that's only for I/O, not for compiling itself.
You also won't benefit from using the -j parameter (maximum number
of jobs), because the P4 does not seem to support it.

There's not much you can do to improve the system performance.
You _can_ few things to streamline the system, but that won't
be a _significant_ change.

Plan your builds to take place when you don't use the system
interactively, or use the "nice" command to give building a lower
priority. It will last longer, but can be run in the background
without noticing it.

Don't complain about build times until you compile world and
kernel on a 150 MHz Pentium 1 with 64 MB RAM. :-)

To give you some impressions of real-work build times, see those

FreeBSD 5, 500 MHz P2 system:
# make buildkernel KERNCONF
# make buildworld

FreeBSD 5, 2 GHz P4 system:
# make buildworld buildkernel
# make buildworld
# make buildkernel KERNCONF=*
# make installkernel KERNCONF=*

On the same system:

A portupgrade of XFree86 server:
And mplayer including nearly all options:

FreeBSD 7, 2 GHz P4 system:
# make buildkernel KERNCONF=*
# make buildworld

Even worse:

# time make buildkernel KERNCONF=* -D USBDEBUG
18232.967u 2427.404s 7:19:49.24 78.2%   391+379k 47250+5754io 3049pf+0w

# time make buildworld buildkernel KERNCONF=*
18992.839u 2569.146s 9:12:00.28 65.1%   927+762k 25593+6358io 2506pf+0w

(No idea how I got _that_ time!)

# time make buildworld buildkernel KERNCONF=*
17272.243u 2294.595s 6:01:33.44 90.1%   24+204k 34888+6367io 2911pf+0w
18541.285u 2596.192s 6:19:33.55 92.8%   498+327k 31247+7302io 3034pf+0w
19725.009u 2882.355s 7:39:11.57 82.0%   -875+548k 44987+6963io 2950pf+0w

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>