From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 15:18:44 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 478BB16A40E for ; Thu, 8 Feb 2007 15:18:42 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from spqr.komquats.com (S0106002078125c0c.gv.shawcable.net [24.108.150.192]) by mx1.freebsd.org (Postfix) with ESMTP id 5B14B13C48E for ; Thu, 8 Feb 2007 15:18:41 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by spqr.komquats.com (Postfix) with ESMTP id 9D4494C5C5; Thu, 8 Feb 2007 07:18:40 -0800 (PST) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.13.8/8.13.8) with ESMTP id l18FIeMR002991; Thu, 8 Feb 2007 07:18:40 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Message-Id: <200702081518.l18FIeMR002991@cwsys.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: freebsd-questions@freebsd.org, freebsd-amd64@freebsd.org In-Reply-To: Message from Mike Meyer of "Thu, 08 Feb 2007 00:53:24 EST." <17866.47828.219523.71972@bhuda.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Feb 2007 07:18:40 -0800 Sender: Cy.Schubert@komquats.com Cc: Subject: Re: Dual Core Or Dual CPU - What's the real difference in performance? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2007 15:18:44 -0000 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. >From an operating system perspective an AP means that processor 0 will receive the interrupt and put it on it's queue. Then either processor 0 or processor 1 would take the interrupt off the queue and do something with it. To add another dimension to this discussion, hyperthreading uses spare cycles in a single processor to pretend there are two processors, increasing performance for some apps and reducing performance for other apps. For example Sun T2000 systems have multiple CPUs each with multiple cores and each core capable of hyperthreading, presenting to Solaris 32 processors where in fact there are only two CPU chips (I may have the numbers wrong as I spend most of my time in "management" mode at work and you know managers don't have brains). Generally speaking, dual core is an inexpensive way to get SMP into the hands of people who could not normally afford SMP technology as it was. I have a mortgage so spending money on computers is not a high priority in relation to that priority but dual core does give me an opportunity to enter the market relatively inexpensively and get good value for the money I spend on the technology. That's really what it's all about, how much performance you get for the money you spend. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org e**(i*pi)+1=0