Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 21:38:48 +0200
From:      Anton Sayetsky <vsjcfm@gmail.com>
To:        William Bulley <web@umich.edu>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: using make(1) with "-j" option
Message-ID:  <CAFG2KCK4e07JVtKnFbaX0MOfyk26dMw_KaVe7R54h_SSnROgdA@mail.gmail.com>
In-Reply-To: <20131125193418.GS15424@itcom245.staff.itd.umich.edu>
References:  <20131125193418.GS15424@itcom245.staff.itd.umich.edu>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
2013/11/25 William Bulley <web@umich.edu>:
> In the modern era with multiple CPUs the norm, I was interested in
> finding a way to speed up compiles from source (of the kernel and
> the various ports I use).
>
> According to the man page "make(1)" the "-j max_jobs" option:
>
>    Specify the maximum number of jobs that make may have running at
>    any one time.  Turns compatibility mode off, unless the -B flag
>    is also specified.
>
> While building the kernel today, I was successful using "make -j 4"
> on a four CPU system.  Later on, on the same system, I was unable
> to build any ports from source using either "# make -j 4 install"
> or "# make -j 2 install" commands.  What am I missing here?
You should use make jobs _only_ for build stage. Other stages are not supported.
For example: make -j3 all && make install
This applicable for both src & ports. But correct way for ports is
setting MAKE_JOBS_NUMBER and/or FORCE_MAKE_JOBS in make.conf



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAFG2KCK4e07JVtKnFbaX0MOfyk26dMw_KaVe7R54h_SSnROgdA>