Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 13:16:52 +0800
From:      Erich Dollansky <oceanare@pacific.net.sg>
To:        Artem Koutchine <matrix@itlegion.ru>
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: Multiprocessor system VS one processor system
Message-ID:  <40568DC4.7020209@pacific.net.sg>
In-Reply-To: <002f01c4081c$bd720810$0c00a8c0@artem>
References:  <CD1C1AC62C4DA944914E36E7B3DD904313DB17@sestosrv004p.ad.octapharma.se> <002f01c4081c$bd720810$0c00a8c0@artem>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40568DC4.7020209>