From owner-freebsd-stable Sat Sep 15 15:34: 8 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id 5D48437B40D for ; Sat, 15 Sep 2001 15:34:03 -0700 (PDT) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.2/8.11.0) with ESMTP id f8FMY2E10032 for ; Sun, 16 Sep 2001 00:34:02 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id AAA02295 for ; Sun, 16 Sep 2001 00:34:01 +0200 (CEST) Received: (qmail 49164 invoked by uid 1001); 15 Sep 2001 22:34:00 -0000 Date: Sun, 16 Sep 2001 00:33:59 +0200 From: Erik Trulsson To: stable@FreeBSD.ORG Subject: Re: make -j4 vs -j8... 4 works, but 8 does not Message-ID: <20010916003359.A48953@student.uu.se> Mail-Followup-To: stable@FreeBSD.ORG References: <5.1.0.14.0.20010915123606.035fcc18@192.168.0.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Sep 15, 2001 at 06:06:10PM -0400, Garance A Drosihn wrote: > [aside on those multiple builds that I did: It was interesting that > even though it was on a dual-processor system, there was not much of > a speed improvement (on 4.3-stable) when going from -j4 to -j10. Big > improvement going from -j1 to -j4, but after that it didn't help much] That sounds exactly like what I would expect. More than 2 (or maybe 3) jobs per CPU is normally not going to make things go faster but might actually slow it down. Increasing the number of jobs running in parallell up to the number of CPUs will naturally increase performance. (Since otherwise you have some unused processors.) The reason why running more than one job/CPU might be good is that the processes uses a mixture of I/O and CPU. If you run two jobs in parallell then one can use the CPU while the other waits for I/O. This increases the efficiency in total resource usage. If you run more than that things will not improve much since you can only have one process using a CPU at a particular time. And if you have several processes trying to access a disk at the same time the disk will spend a lot of time seeking back and forth which is a sure way of making a system slow. So for a system with P processors the speed improvements for using -jN with N > 2*P is normally going to be fairly small. (While the speed improvments when increasing N from 1 up to 2*P can often be noticable, especially when going from 1 to P.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message