At Thu, 8 May 2025 08:54:17 +0000, nia <n...@netbsd.org> wrote:
Subject: make jobs on uniprocessor machines
>
> Has anyone benchmarked increasing numbers of make -jX on
> single-processor systems with lots of memory?
>
> Up until now, I've been operating under the assumption that
> -j2 helps by not making the process wait on the file system
> once the previous job is complete - but I wonder if that's
> true at all...

A very long time ago when I had mostly only single-CPU systems I would
typically run with '-j4'.  I don't remember if I timed it more than once
on a whole system build, but it certainly was faster than a
single-threaded build.  I do seem to remember that '-j2' was too small
to make a big difference, but those were older systems with much slower
disk subsystems.

These days on multi-CPU systems I typically continue to run about four
jobs more than there are CPUs.

--
                                        Greg A. Woods <gwo...@acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <wo...@robohack.ca>
Planix, Inc. <wo...@planix.com>     Avoncote Farms <wo...@avoncote.ca>

Attachment: pgpB5mq8XOSlG.pgp
Description: OpenPGP Digital Signature

Reply via email to