Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Dual CPU price/performancem
@ 1998-11-20 10:55 Bill Broadley
  1998-11-20 19:34 ` Chris Albertson
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Broadley @ 1998-11-20 10:55 UTC (permalink / raw)
  To: axp-list

----- Forwarded message from Kevin.Brown@asu.edu -----

>PIIs have 512K L2 cache and 32K L1 cache so they will perform even better than
>an overclocked celeron.

Ummm depends on what your doing.

For jobs that mostly access L1 (32k) they will be identical (per Mhz).
For bigger jobs that mostly fit in 128k the celeron will be faster (per Mhz).
For bigger jobs that mostly fit in 512k the PII will be faster (per Mhz).
For bigger mostly memory bound jobs the celeron will be faster (since cache 
	misses are faster, and latency to main memory is lower).

It's very hard to know where a particular application will fall without
actually benchmarking it.  Benchmarking YOUR application is always highly
apprehended.

As an example a celeron 300A at 450 compiles ssh-1.2.26 is 49 seconds,
a real PII-450 does similiar in 55 seconds.  My conclusion is that it's
possible that gcc is probably rather friendly to the celeron's 128k cache
but doesn't have a high hit rate for the L1 cache.  I could be wrong,
but I was quite pleased it was close regardless of the actual reason.

A similiar case happened with the alphas, the older alphas (before lx/miata)
with the up to 8 way interleaved, 512 byte wide  FPM memory, and large L3 
caches were almost always slower then the newer alphas with smaller
caches, 128 bit wide sdram memory.  Latency and bandwidth of each
layer of the memory system can have rather complicated interactions with
an application.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dual CPU price/performancem
  1998-11-20 10:55 Dual CPU price/performancem Bill Broadley
@ 1998-11-20 19:34 ` Chris Albertson
  1998-11-20 19:59   ` Chris Price
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Albertson @ 1998-11-20 19:34 UTC (permalink / raw)
  To: axp-list

Bill Broadley wrote:
> 
> ----- Forwarded message from Kevin.Brown@asu.edu -----
> 
> >PIIs have 512K L2 cache and 32K L1 cache so they will perform even better than
> >an overclocked celeron.
> 
> Ummm depends on what your doing.
> 
> For jobs that mostly access L1 (32k) they will be identical (per Mhz).
> For bigger jobs that mostly fit in 128k the celeron will be faster (per Mhz).
> For bigger jobs that mostly fit in 512k the PII will be faster (per Mhz).
> For bigger mostly memory bound jobs the celeron will be faster (since cache
>         misses are faster, and latency to main memory is lower).
> 
> It's very hard to know where a particular application will fall without
> actually benchmarking it.  Benchmarking YOUR application is always highly
> apprehended.

The above analysis is ok for a uni-processor system but
if you are concidering a multi-CPU system it should be because
you have many processes that you want to run all at the same
time.  Having even 16 CPUs will not make any one process go
faster.  It only allows you to run more processes without taking
a big preformence hit.  So, to modify the above statement you need
to "benchmark YOUR application mix".  Cache use is more complex
when we are talking about running 4 copies of gcc at the same time
as a DBMS and web server all while supporting a few telnet sessions.

It is clear the cache will get thrashed but it gets worse:  You
need the keep the caches in sync.  This is a non-triveal problem
for designers of multi-CPU systems and a big system bottleneck once
you get more than two CPUs.  The problem is a write to memory by
one CPU may invalidate the content of the cache of every other CPU.
DMA controllers can do writes too.  


-- 
--Chris Albertson

  chris@topdog.logicon.com                Voice:  626-351-0089  X127
  Logicon RDA, Pasadena California          Fax:  626-351-0699


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dual CPU price/performancem
  1998-11-20 19:34 ` Chris Albertson
@ 1998-11-20 19:59   ` Chris Price
  1998-11-23 19:56     ` Kurt Garloff
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Price @ 1998-11-20 19:59 UTC (permalink / raw)
  To: axp-list



On Fri, 20 Nov 1998, Chris Albertson wrote:

> The above analysis is ok for a uni-processor system but
> if you are concidering a multi-CPU system it should be because
> you have many processes that you want to run all at the same
> time.  Having even 16 CPUs will not make any one process go
> faster.  It only allows you to run more processes without taking
> a big preformence hit.


	AFAIK, this is correct, but only on current non-threaded kernels
and programs not compiled/written for a threaded architecture. 

	I thought I had read that the 2.2 kernels were built using
multi-threaded libraries (for the most part) and therefore would take
better advantage of SMP systems. 

	PLease feel free to fill me in on the multi-threaded pros and cons
of 2.2 kernels. I have a 4x233 Alphaserver 2100A available, and would love
to run some smokin Linux appas on it...


	Later


  So, to modify the above statement you need
> to "benchmark YOUR application mix".  Cache use is more complex
> when we are talking about running 4 copies of gcc at the same time
> as a DBMS and web server all while supporting a few telnet sessions.
> 
> It is clear the cache will get thrashed but it gets worse:  You
> need the keep the caches in sync.  This is a non-triveal problem
> for designers of multi-CPU systems and a big system bottleneck once
> you get more than two CPUs.  The problem is a write to memory by
> one CPU may invalidate the content of the cache of every other CPU.
> DMA controllers can do writes too.  
> 
> 
> -- 
> --Chris Albertson
> 
>   chris@topdog.logicon.com                Voice:  626-351-0089  X127
>   Logicon RDA, Pasadena California          Fax:  626-351-0699
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dual CPU price/performancem
  1998-11-20 19:59   ` Chris Price
@ 1998-11-23 19:56     ` Kurt Garloff
  0 siblings, 0 replies; 4+ messages in thread
From: Kurt Garloff @ 1998-11-23 19:56 UTC (permalink / raw)
  To: axp-list

On Fri, Nov 20, 1998 at 01:59:37PM -0600, Chris Price wrote:
> > The above analysis is ok for a uni-processor system but
> > if you are concidering a multi-CPU system it should be because
> > you have many processes that you want to run all at the same
> > time.  Having even 16 CPUs will not make any one process go
> > faster.  It only allows you to run more processes without taking
> > a big preformence hit.
> 
> 
> 	AFAIK, this is correct, but only on current non-threaded kernels
> and programs not compiled/written for a threaded architecture. 
> 
> 	I thought I had read that the 2.2 kernels were built using
> multi-threaded libraries (for the most part) and therefore would take
> better advantage of SMP systems. 
> 
> 	PLease feel free to fill me in on the multi-threaded pros and cons
> of 2.2 kernels. I have a 4x233 Alphaserver 2100A available, and would love
> to run some smokin Linux appas on it...

The 2.1.1xx/2.2 kernels have significant performance improvements for SMP
machines.
On 2.0 kernels, every time a process entered kernel mode, i.e. performing a
system call, no other CPU could enter kernel mode, so if one application was
reading data from the network interface, another application had to wait for
the network syscall to finish in order access the disks. System calls are
relatively fast, so this didn't cause too much trouble.
On 2.1/2.2 we have a much more fine grained locking mechanism. Of course,
two processes can't perform sys calls on the same device at the same time.
But we are able to do disk I/O and ethernet access at the same time now on
MP machines.

For normal applications, this will cause a very slight performance
advantage, only, because only syscalls will eventually be faster, cause they
don't have to wait.
You still have to write multithreaded applications (or have multiple
processes) to really profit from MP machines. Not every job is easy to
parallelize.

Both Linux-2.0 and 2.1/2 do support multithreaded applications.

BTW: Multithreaded programming isn't hard at all. You just have to take care
to properly lock shared resources and use the linuxthreads package ...
But still the user has to do it and properly design multithreaded
applications. The compiler just doesn't have the info it'd need to
parallelize things.

-- 
Kurt Garloff <K.Garloff@ping.de>  (Dortmund, FRG)
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff
Unix IS user friendly - it's just selective about who its friends are!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-11-23 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-20 10:55 Dual CPU price/performancem Bill Broadley
1998-11-20 19:34 ` Chris Albertson
1998-11-20 19:59   ` Chris Price
1998-11-23 19:56     ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox