🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #259

Re: Dual processors ?

#259
From: Michael
Date: Sun, 05 Jan 2003 02:44
60 lines
4286 bytes
George Bell wrote:
> warr wrote:
<snip>
> 
> 
> While I generally agree that dual CPU may be inappropriate, this is an 
> inaccurate statement.  The allocation of CPU resources is a function of 
> the os, not the tasks running(and thus the software).  Since Linux can 
> support SMP - symetric multiprocessor( each processor gets as much 
> "work" as the other ), then twice as much CPU time is available to the 
> system and the performance is twice as great, period.
<snip>

Remarkable amount of cock and bull being put forward in this thread 
isn't there?

Here are some facts (Assume SMP system with same CPU as a uni-processor):

- No application that runs in Linux can specify what cpu it will run 
on in an SMP system. There is (was ?) a tool around that could force 
the app to run on a certain cpu in an SMP system...In reality, the 
Kernel will almost always know better how to schedule processes.

- An application that is single threaded will likely perform slightly 
worse  in absolute terms on a SMP system than on a uni-processor 
system if the overall load is next to nothing. Why? The Linux SMP runs 
a copy of the Kernel on each CPU, and runs an overhead to manage the 
SMP environment. A uni processor system runs a single copy of the 
Kernel on one CPU with no SMP overhead.

	ie SMPload = KernelOverhead + SMBoverhead + process
            UNIload = KernelOverhead + process

HOWEVER as a result of the fact that a Linux system typically has more 
than one process running at a time, it is likely that since the SMP 
aware Kernel(s) are load balancing between cpu's, the single threaded 
application will actually perform better on a SMP system than on 
uni-processor machine because it is running on a single cpu that has 
less load - the single thread gets more cpu time to do it's job. In 
fact the theoretical no-load environment is completely unrealistic.

- The applications that are "written to take advantage of SMP systems" 
are simply multi-threaded. Multi-threaded applications are *no big 
deal*, and are still an advantage on uni-processor machines.

BTW, the performance isn't twice as great on a SMP system. There is 
overhead, resulting in SMP system being something less than twice the 
performance.


In a nut shell, a SMP Linux system running on 2X 1800 Athlons will 
always  be superior to a uni-processor 1800 AThlon machine due to the 
fact that a typical Linux system has many processes running 
(Multi-threaded or not). But the performance advantage of 
multi-threaded app is *much* greater than a single threaded app on a 
SMP system.


Cheers,
Michael
Technical Details
Message-ID: <3E179C22.40306@iprimus.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!newsfeed.mathworks.com!news.voicenet.com!newsin.iconnet.net!feed.tor.primus.ca!news.primus.ca!53ab2750!not-for-mail
References: <pan.2003.01.03.13.58.10.249319@iprimus.com.au> <av578p$c8s17$1@ID-99293.news.dfncis.de> <av5qtf$tcf$1@lust.ihug.co.nz> <fbf82913.0301040421.1a35bdfa@posting.google.com> <3E178C63.7040901@netscape.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114381,acfea8e5e9ff6f15
X-Google-Attributes: gid114381,public
X-Google-Thread: 102b32,acfea8e5e9ff6f15
X-Google-Attributes: gid102b32,public
X-Google-Thread: 102983,acfea8e5e9ff6f15
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 2003-01-04 18:43:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!newsfeed.mathworks.com!news.voicenet.com!newsin.iconnet.net!feed.tor.primus.ca!news.primus.ca!53ab2750!not-for-mail
Message-ID: <3E179C22.40306@iprimus.com.au>
From: Michael <mutk@iprimus.com.au>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: aus.computers.linux,comp.os.linux.hardware,aus.ads.forsale.computers.used
Subject: Re: Dual processors ?
References: <pan.2003.01.03.13.58.10.249319@iprimus.com.au> <av578p$c8s17$1@ID-99293.news.dfncis.de> <av5qtf$tcf$1@lust.ihug.co.nz> <fbf82913.0301040421.1a35bdfa@posting.google.com> <3E178C63.7040901@netscape.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 211.26.16.36
Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au
Lines: 61
X-Original-NNTP-Posting-Host: 127.0.0.1
Date: Sun, 05 Jan 2003 12:44:50 +1000
NNTP-Posting-Host: 203.134.67.67
X-Complaints-To: news@primus.ca
X-Trace: news.primus.ca 1041734533 203.134.67.67 (Sat, 04 Jan 2003 21:42:13 EST)
NNTP-Posting-Date: Sat, 04 Jan 2003 21:42:13 EST