From owner-freebsd-amd64@FreeBSD.ORG Sat Feb 10 01:46:56 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B43116A407 for ; Sat, 10 Feb 2007 01:46:56 +0000 (UTC) (envelope-from drumslayer2@yahoo.com) Received: from web34514.mail.mud.yahoo.com (web34514.mail.mud.yahoo.com [66.163.178.180]) by mx1.freebsd.org (Postfix) with SMTP id D3F7213C48D for ; Sat, 10 Feb 2007 01:46:55 +0000 (UTC) (envelope-from drumslayer2@yahoo.com) Received: (qmail 91141 invoked by uid 60001); 10 Feb 2007 01:46:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=xkC6Z7GbmZgCWiYoPGAuc8c/AJYDtNuU4z6LuSRvpEZIQXnJ/lJag87v/6NarFhnIQ3+8yM0QjZRKsGxeWcTN13sZyfZJTu5fGG8ExGhrlAKZj5EZ6omr4R5h6ynmCQiF7DyThEUGlGrTk46qJ+xzsR5E8WD+zPUSbM0zXe3J2k=; X-YMail-OSG: kUvMSZwVM1lldlan1IBtv_iUqp5lhUcgd3b8TFM7CZkT5GcjRGFuZ_TmxAvdwty2PVukYlEjc4zOQmgYAuGOfCGJr5TMrn.jOmp1DLtpheKJrM8OIMVY6dJC0MKK77jGaI4vDZydddfrfhbfkY4eXw1vn8hruJQcsxvLLVaCRDER1CPnjGStdRTxAADh Received: from [67.112.21.26] by web34514.mail.mud.yahoo.com via HTTP; Fri, 09 Feb 2007 17:46:54 PST Date: Fri, 9 Feb 2007 17:46:54 -0800 (PST) From: Nicole Harrington To: Cy Schubert In-Reply-To: <200702090251.l192pviU087983@cwsys.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <935627.87795.qm@web34514.mail.mud.yahoo.com> Cc: freebsd-questions@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Dual Core Or Dual CPU - What's the real difference in performance? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Feb 2007 01:46:56 -0000 --- Cy Schubert wrote: > In message > <142261.76672.qm@web34514.mail.mud.yahoo.com>, > Nicole Harrington > wri > tes: > > --- Cy Schubert wrote: > > > In message > > > <17866.47828.219523.71972@bhuda.mired.org>, Mike > > > Meyer writes: > > > > Generally, more processors means things will > go > > > faster until you run > > > > out of threads. However, if there's some > shared > > > resource that is the > > > > bottleneck for your load, and the resource > doesn't > > > support > > > > simultaneous access by all the cores, more > cores > > > can slow things > > > > down. > > > > > > > > Of course, it's not really that simple. Some > > > shared resources can be > > > > managed so as to make things improve under > most > > > loads, even if they > > > > don't support simultaneous access. > > > > > > Generally speaking the performance increase is > not > > > linear. At some point > > > there is no benefit to adding more processors. > In a > > > former life when I was > > > an MVS systems programmer the limit was seven > > > processors in a System/370. > > > Today we can use 16, 32, even 64 processors with > a > > > standard operating > > > system and current hardware, unless one of the > > > massively parallel > > > architectures is used. > > > > > > To answer the original posters question, there > are > > > architectural > > > differences mentioned here, e.g. shared cache, > I/O > > > channel, etc., but the > > > reason the chip manufacturers make them is that > > > they're more cost effective > > > than two CPUs. > > > > > > The AMD X2 series of chips (I have one), they're > not > > > truely a dual > > > processor chip. They're analogous to the single > > > processor System/370 with > > > an AP (attached processor) in concept. What this > > > means is that both > > > processors can execute all instructions and are > just > > > as capable in every > > > way except external interrupts, e.g. I/O > interrupts, > > > are handled by the > > > processor 0 as only that processor is "wired" to > be > > > interrupted in case of > > > external interrupt. I can't comment about > Intel's > > > Dual Core CPUs as I don't > > > know their architecture but I'd suspect the same > > > would be true. Chips in > > > which there are two dual core CPUs on the same > die, > > > I believe one of each > > > of the dual core CPUs can handle external > > > interrupts. > > > > Wow I love ansking questions without too many > > specifics as I learn so much more. With this > however > > it really seems to be a love hate relationship > with > > dual core. > > > > Based on what you stated above, would that mean > that > > when using a dual core system, using polling > interupts > > might be better or perhaps monumanally worse? > > No. CPU 0 would be interrupted. It would schedule > the interrupt in the > queue. Either CPU could service the interrupt once > the interrupt was queued. > > Some devices need to be polled as they do not > generate interrupts or they > generate spurious interrupts. Otherwise allowing a > device to interrupt the > CPU is more efficient as it allows the CPU to do > other work rather than > spinning its wheels polling. This is the Von Neumann > model. > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: > http://www.FreeBSD.org > > e**(i*pi)+1=0 > Yes, I have heard that, thanks. However, how does one know or tell which is the right mode/model for which devices? I have seen people on either side (poll vs interupt) claim one is better or much like an infomercial, just do blah and your system will be so much faster. Altho of course that would be the pro polling side, since by default, interupts are used. Is it all just imperical testing? Take this pill and see let me know how you feel? It seems as though when it's heavy networking, use polling. Otherwise stick with interupts. I have even heard when using X network card, use polling. How would know when one card will do better with polling while another may not? Thanks for helping me understand the debate better. Nicole --- If you make people think they're thinking, they'll love you; but if you really make them think, they'll hate you." -- Don Marquis