From: Kurt Garloff <K.Garloff@ping.de>
To: axp-list@redhat.com
Subject: Re: Dual CPU price/performancem
Date: Mon, 23 Nov 1998 20:56:49 +0100 [thread overview]
Message-ID: <19981123205649.A1354@kg1.ping.de> (raw)
In-Reply-To: <Pine.LNX.3.95.981120135231.19664B-100000@missing.its.to>; from Chris Price on Fri, Nov 20, 1998 at 01:59:37PM -0600
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!
prev parent reply other threads:[~1998-11-23 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox