From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 05:08:20 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C2C16A4CE for ; Tue, 23 Nov 2004 05:08:20 +0000 (GMT) Received: from auk2.snu.ac.kr (auk2.snu.ac.kr [147.46.100.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1978443D4C for ; Tue, 23 Nov 2004 05:08:20 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004112314:08:05:806065.21758.3052956592 for ; Tue, 23 Nov 2004 14:08:05 +0900 (KST) Message-ID: <41A2C5C0.3080908@yahoo.com> Date: Tue, 23 Nov 2004 14:08:16 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: YES-__TRSYS_LV__3 (SR:-4.16) (SRN:SPAMROBOT) ----------------- Subject: make -j$n buildworld : use of -j investigated X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 05:08:20 -0000 Hi, I have tested following with FreeBSD 5.3-Stable. On several different PCs I have used make -j$n buildworld with $n ranging from 1 to 9. Although people suggest "-j4" as optimal in general case, I have come to a very different conclusion: 1) single CPU with enough RAM (2 GHz, 512 MB) there's no significant speed up in the range "-j1" to "-j9". So "-j1" is as good as "-j9". 2) single CPU with little RAM (333 MHz, 64 MB) speed slows down rapidly from "-j1" to "-j9", because of intensive swapping. So "-j1" performs best in this case. 3) dual CPU with enough RAM (2 x 800 MHz, 1GB) speed up by almost two from "-j1" to "-j2", but after that no noticeable speed up anymore. So "-j2" is as good as "-j9". ---------------------------------------- With these simple tests, I come to the conclusion that "make -j$n buildworld" is best with n = number of CPUs. Does that make sense? Rob.