From owner-freebsd-questions Wed Mar 6 2:16:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 6D13137B416 for ; Wed, 6 Mar 2002 02:16:50 -0800 (PST) Received: (qmail 70842 invoked by uid 100); 6 Mar 2002 10:16:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15493.60559.729973.900130@guru.mired.org> Date: Wed, 6 Mar 2002 04:16:47 -0600 To: Stephen Montgomery-Smith Cc: questions@freebsd.org Subject: Re: Which processor? In-Reply-To: <82550640@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.48 (Python 2.2 on freebsd4) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stephen Montgomery-Smith types: > I would like to get a computer to do my processor intensive math > calculations under the FreeBSD operating system. Today I went to my > local computer store, and they offered me a couple of possibilities: > > Asus A7V266-E Motherboard > with 2GHz AMD Athlon XP > or > Tyan S2460 Dual MP Socket A > with dual AMD 1.8 GHz Athlon MP. > > 1. If I run one program, will it only use one of the MP processors? Unless it does something to generate multiple threads of control, it will only use one at a time. It may move back and forth between them. > 2. If I run two seperate programs, will they each use one of the MP > processors, and each go with the speed of 1.8GHz, in effect running the > programs as if they are on two seperate 1.8GHz computers. Right. Except, as noted, that they sometimes move between processors. FreeBSD tries to keep processes on the same CPU, but if it's been waiting long enough and the only free processor is the one it wasn't on before, it'll move. > 3. The salesperson I was speaking two said that these processors were > designed to talk to each other in some way - I think he used the phrase > "sharing threads." What does this mean? A thread is an OS concept. Basically, it encapsulates the runtime state of a program. There are calls to create new threads in the same process, and they can both run at the same time on an SMP system. If your program doesn't create multiple threads, then it will only use one processor. There are lots of things that go into how well the program performs; marketroids have focused on the speed of the processor because it's a single number that can be directly compared, never mind that 200MH PPeo with 512K of cash will run rings around a Celeron with no cache for most applications. The only way to tell how fast a specific program will run on a specific computer is to benchmark it. Can you create a suitable behncharmk? It should use the same memory, but use less time. If so, ask if you can run the benchmark on the machines to see which is faster. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message