Article View: aus.computers.linux
Article #268Re: Dual processors ?
From: Floyd Davidson
Date: Sun, 05 Jan 2003 04:08
Date: Sun, 05 Jan 2003 04:08
55 lines
3528 bytes
3528 bytes
Michael <mutk@iprimus.com.au> wrote: >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. Here's an example. I compiled the kernel using two different commands (twice each, to make sure the times were valid). >make clean;time make bzImage The above command ran in 2 minutes and 37 seconds, while >make clean;time make -j2 MAKE='make -j2' bzImage ran in 1 minute 28 seconds. Basically, by taking advantage of both cpu's the compile was 1.8 times as fast. We can surmise that if I pulled out 1 cpu, the first command would probably run 1.01 times as fast, but the second command would not be any faster than the first (actually, because of all the context switching, it might slow it down to 1.00 again). A single cpu machine, compared to a dual cpu machine, will provide an unnoticable speed increase (that may be measurable), if and only if only one process is running on the machine. But a dual cpu machine can compile the kernel as much as 1.8 times as fast on a heavily loaded machine. Whether a dual cpu is cost effective depends entirely on how often one can actually load it down with enough work to see any benefit. And as one poster noted, that is less likely with today's faster cpu's than it was a few years back. When running the X server took up 30% of the cpu power, having 2 cpu's made a very noticable difference for a single logged in user just in command line responsiveness. I haven't tried it, but I suspect that if I pulled one cpu out of this box I would not notice a difference in command line response more often than once a week. Since I commonly do things which heavily load the cpu's, I very much enjoy the advantages of SMP. Others might find it a veritable waste of money! -- Floyd L. Davidson <http://www.ptialaska.net/~floyd> Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Technical Details
Message-ID:
<8765t45jcu.fld@barrow.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1References:
<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> <3E179C22.40306@iprimus.com.au>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 20:35:26 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 From: Floyd Davidson <floyd@ptialaska.net> Newsgroups: aus.computers.linux,comp.os.linux.hardware,aus.ads.forsale.computers.used Subject: Re: Dual processors ? Date: 04 Jan 2003 19:08:33 -0900 Organization: __________ Lines: 55 Sender: floyd@barrow.com Message-ID: <8765t45jcu.fld@barrow.com> 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> <3E179C22.40306@iprimus.com.au> NNTP-Posting-Host: p-512.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: gnus 5.8.3/XEmacs 21.1.9/Linux