🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #277

Re: Dual processors ?

#277
From: George Bell
Date: Sun, 05 Jan 2003 18:50
70 lines
4922 bytes
Christopher Browne wrote:

> Quoth George Bell <MasterofTimeADim@netscape.net>:
> 
>>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.
>>
> 
> This isn't a fair assessment of things.  
> 
> Having a second CPU /may/ allow the kernel to push tasks onto one CPU
> or another, sharing the load.  If you have a whole bunch of processes
> that /can/ run in parallel, that can be useful.
> 
> On the other hand, the two CPUs have to share:
>  a) The same memory bus;
>  b) The same memory caches;
>  c) The same I/O buses.
> 
> If the CPUs are working on totally different sorts of things, b) can
> lead in particular to "sucky performance."
> 
> Consider: on a single CPU machine, any given task is going to get a
> bunch of cycles to work on whatever is the work of the task.  When a
> context switch occurs, different activity will lead to different cache
> usage, but at least you get locality of access within the process
> context.
> 
> On a dual CPU machine, two processes really are running concurrently,
> and if their accesses to memory are really quite different, they'll be
> stumbling over each other as they concurrently try to access very
> different things in memory.
> 
> Both CPUs have to coordinate their access to memory lest they get out
> of sync and start trampling on each others' memory.  That coordination
> effort has a cost, and it is a cost that a single CPU machine does not
> need to pay.
> 
> If both CPUs are /reading/ the same code, or /reading/ the same memory
> locations, there could conceivably be a big /WIN/ as a result; the
> first CPU already read the data, so it's in cache so that the second
> CPU doesn't have to read it in.  But that is not the typical case; it
> is more likely that you'll have XFree86 on one CPU, doing its thing,
> and Mozilla on the other, doing something different, so that
> maintaining cache coherency is a net /cost/.
> 

I'm actually on your side, but for different reasons.  I doubt a dual 
processor machine brings much advantage *unless* you are in a situation 
where you need lots of processing power - and some of the posters bear 
out with their testimonies the superior performance of dual processor 
systems.  I think dual processor system gives a noticable difference if 
you a) have a lot of users logged on at once b) run a busy webserver 
that has to spawn a whole lot of connections at once c) you tend to run 
lots of applications at once.  At what point this advantage becomes 
apparent - I'm not sure....

The problems you mention I think are pretty well addressed by dedicated 
circuitry in the cpu when it is in SMP mode and advanced algorithms.  I 
am no expert on this so perhaps someone else can contribute to this 
thread, but this is why I have found that some CPUs can operate in SMP 
while others cannot.  Until up to a few years ago I think AMD didn't 
even make processors that could work in SMP - only Intel.

George
Technical Details
Message-ID: <3E187EF8.9040104@netscape.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!207.115.63.142!prodigy.com!news.astraweb.com!news-small.astraweb.com!news-xfer.cox.net!p01!news1.east.cox.net.POSTED!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> <av8a3u$d2h2f$1@ID-125932.news.dfncis.de>

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-05 10:50:55 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!207.115.63.142!prodigy.com!news.astraweb.com!news-small.astraweb.com!news-xfer.cox.net!p01!news1.east.cox.net.POSTED!53ab2750!not-for-mail
Message-ID: <3E187EF8.9040104@netscape.net>
From: George Bell <MasterofTimeADim@netscape.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913
X-Accept-Language: en-us
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> <av8a3u$d2h2f$1@ID-125932.news.dfncis.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 71
Date: Sun, 05 Jan 2003 18:50:54 GMT
NNTP-Posting-Host: 68.100.73.240
X-Complaints-To: abuse@cox.net
X-Trace: news1.east.cox.net 1041792654 68.100.73.240 (Sun, 05 Jan 2003 13:50:54 EST)
NNTP-Posting-Date: Sun, 05 Jan 2003 13:50:54 EST
Organization: Cox Communications