NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make jobs on uniprocessor machines



At Thu, 8 May 2025 08:54:17 +0000, nia <nia%NetBSD.org@localhost> 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 <gwoods%acm.org@localhost>

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

Attachment: pgp4omHNTY96N.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index