From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11430 invoked from network); 23 Nov 1998 20:19:51 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Nov 1998 20:19:51 -0000 Received: from lilly.ping.de (qmailr@lilly.ping.de [195.37.120.2]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA08244 for ; Mon, 23 Nov 1998 15:19:48 -0500 Received: (qmail 6605 invoked by uid 10); 23 Nov 1998 20:19:36 -0000 Received: from kg1.ping.de by lilly.ping.de with UUCP (rmail-0.1-fdc); 23 Nov 1998 20:19:35 -0000 Received: (from garloff@localhost) by kg1.ping.de (8.8.7/8.7.3) id UAA01476; Mon, 23 Nov 1998 20:56:49 +0100 Message-ID: <19981123205649.A1354@kg1.ping.de> Date: Mon, 23 Nov 1998 20:56:49 +0100 From: Kurt Garloff To: axp-list@redhat.com Subject: Re: Dual CPU price/performancem Mail-Followup-To: axp-list@redhat.com References: <3655C45B.AB24E479@topdog.logicon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.90.4i In-Reply-To: ; from Chris Price on Fri, Nov 20, 1998 at 01:59:37PM -0600 X-Operating-System: Linux 2.1.125 i686 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 (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!