From owner-freebsd-hardware@FreeBSD.ORG Mon Mar 15 21:16:56 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C0F816A4CE for ; Mon, 15 Mar 2004 21:16:56 -0800 (PST) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 94E9F43D31 for ; Mon, 15 Mar 2004 21:16:55 -0800 (PST) (envelope-from oceanare@pacific.net.sg) Received: (qmail 5098 invoked from network); 16 Mar 2004 05:16:53 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by santiago with SMTP; 16 Mar 2004 05:16:52 -0000 Received: from pacific.net.sg ([210.24.203.19]) by maxwell2.pacific.net.sg with ESMTP id <20040316051652.GOZS1277.maxwell2.pacific.net.sg@pacific.net.sg>; Tue, 16 Mar 2004 13:16:52 +0800 Message-ID: <40568DC4.7020209@pacific.net.sg> Date: Tue, 16 Mar 2004 13:16:52 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, en-us, de MIME-Version: 1.0 To: Artem Koutchine References: <002f01c4081c$bd720810$0c00a8c0@artem> In-Reply-To: <002f01c4081c$bd720810$0c00a8c0@artem> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hardware@freebsd.org Subject: Re: Multiprocessor system VS one processor system X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 05:16:56 -0000 Hi, Artem Koutchine wrote: > twice as fast than on dual 500Mhz, however, to box will > become a bit less responsive, because in a dual box Yes. > when one CPU is loaded, another one may have some > spare time to respond. However, in case of very loaded > box both CPUs a extremely loaded and the box will > be as responsive as single 1000Mhz CPU box 100% loaded. No. It depends very much on the application. Two CPUs have two caches. As long as the data still fits into the caches of both CPU but does not fit into the cache of a single CPU, the dual CPU machine is much much faster. As soon as the data do not fit into the cache anymore the degration on a SMP machine are much more noticeable. > So, according to what i just said there is not real reason to > setup a dual CPU box under FREEBSD unless you want to > have 5000Mhz box, but there is no CPU with such speed, so I would always go for as many CPUs as possible even if the clock speed of the CPUs is lower. It still makes sense to run a dual Pentium III machine instead of a single CPU Pentium IV. Maybe not with 500 MHz, but with 1 GHZ and above. > you put two 2500Mhz CPU in it and if you are running a lot You never get a higher speed as the speed of a single CPUs. What you get is a higher through-put. The time to do a certain task depends on the clock speed of a CPU and not on the number of CPUs as long the task is just one process with one thread. > of processes with short run periods you will get overal > perfomance somewhere near 5000Mhz. However, when i > subsituted two 500Mhz CPUs with 1500Mhz one (even with > less 2nd level cache) on a heavy loaded web server i notice > that sites started to load faster. So, it seems as > one 3X Mhz CPU is faster that two X MHz CPUs, at least > for web server with sql base and many perl scripts. > This is true as long there is no load until the CPU cache comes into the game. It also depends on how the CPUs are connected to the main memory. Erich