From owner-freebsd-questions@FreeBSD.ORG Sat Jun 24 05:21:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422CB16A494 for ; Sat, 24 Jun 2006 05:21:57 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id B61E143D48 for ; Sat, 24 Jun 2006 05:21:56 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id q3so996252nzb for ; Fri, 23 Jun 2006 22:21:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=im6CtAm9kwELydzzVsq5/qKvC3GNMmATnTp7GTznD9NNi+uk++5HIMg+OyJsdD0O3D1ugMgYsEkhxsNIQM9YRGmW+z5I7q4UunxhvgISVlRZTjyO44CIfgFC4gFGheI1BFqMmPgDqwadZnuoUGS3375LBfSfQHeaY0Rf/eFiZcg= Received: by 10.36.227.49 with SMTP id z49mr4828425nzg; Fri, 23 Jun 2006 22:21:53 -0700 (PDT) Received: by 10.36.12.11 with HTTP; Fri, 23 Jun 2006 22:21:53 -0700 (PDT) Message-ID: Date: Sat, 24 Jun 2006 00:21:53 -0500 From: "Nikolas Britton" To: freebsd-questions@freebsd.org In-Reply-To: <20060624014452.GT11625@tigger.digitaltorque.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060620233551.GG11625@tigger.digitaltorque.ca> <20060621011340.GI11625@tigger.digitaltorque.ca> <20060621173253.GD7596@tigger.digitaltorque.ca> <20060624014452.GT11625@tigger.digitaltorque.ca> Subject: Re: migrating to 64-bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 05:21:57 -0000 On 6/23/06, Michael P. Soulier wrote: > On 21/06/06 Nikolas Britton said: > > > The consensus seems to be that FreeBSD/amd64 is a tad slower then > > FreeBSD/i386 because it has to deal with 32 extra bits. The primary > > reason to use FreeBSD/amd64 seems to be if you need greater then 4GB > > of RAM. > > > > This should give you the speed boost your looking for: > > CPUTYPE?=pentium2 > > CFLAGS+= -mtune=nocona > > COPTFLAGS+= -mtune=nocona > > > > Put that in /etc/make.conf and recompile ports/kern/world. > > Cool, thanks. > > Mike > Yea it looks weird but I've benchmarked it: -march=pentium2 + -mtune=pentium3 -march=pentium2 + -mtune=pentium4 -march=pentium2 + -mtune=prescott -march=pentium2 + -mtune=nocona All are equal to or better then -march={your_real_cpu} alone, which is weird because -march=cputype implies -mtune=cputype. My gcc settings also produce safer (less buggy) code at compile time and safely optimizes code that would otherwise ignore the CPUTYPE option in make.conf... YMMV. -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/