From owner-freebsd-hackers Tue Feb 13 0:32:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 2D35C37B503 for ; Tue, 13 Feb 2001 00:32:00 -0800 (PST) Received: from localhost (matt@localhost) by xena.gsicomp.on.ca (8.11.1/8.9.3) with ESMTP id f1D7WWK64420; Tue, 13 Feb 2001 02:32:33 -0500 (EST) (envelope-from matt@xena.gsicomp.on.ca) Date: Tue, 13 Feb 2001 02:32:32 -0500 (EST) From: Matthew Emmerton To: Jordan Hubbard Cc: kstewart@urx.com, Danny Braniss , freebsd-hackers@FreeBSD.ORG Subject: Re: soft updates performance In-Reply-To: <81045.982046200@winston.osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 12 Feb 2001, Jordan Hubbard wrote: > > One other point that I would like to understand is why -j4 takes > > longer on all of my systems. That goes against what everyone claims > > should happen. > > With how many running processors? If you're running -j4 on a > uniprocessor system, you're only introducing competition for already > scarce CPU resources, though -j2 can be a speedup since this allows > one target build to run while another is in an I/O wait. I've only > seen a speedup with -j4 when using at least 2 CPUs. FWIW, I've got an ancient dual-CPU machine (Pentium 133s) with an onboard Adaptec 7870 hooked to a pair of SCSI-2 drives. With any intensive build activity (make buildworld, or a kernel recompile), -j8 gives me the best results. (I came to this conclusion after profiling a kernel build using -j2/4/6/8/10/12.) The only explanation I can give in my case is that the onboard 7870 is a PCI device and is the main bottleneck in the system (my motherboard is a very interesting EISA/PCI combo, mfgd in 1991). Although Jordan's quite right in saying that using anything larger than -j2 on a uniprocessor machine will usually be futile, in the world of SMP things are much stranger, so it's good to experiment. (-j8 is about a 50% speedup over -j2). YMMV. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message