From owner-freebsd-questions@FreeBSD.ORG Sat Dec 22 03:17:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 198D916A418 for ; Sat, 22 Dec 2007 03:17:33 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id D12FB13C458 for ; Sat, 22 Dec 2007 03:17:32 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 6E89981563; Fri, 21 Dec 2007 22:17:32 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 21 Dec 2007 22:17:32 -0500 X-Sasl-enc: iVXlVpPs6fXFo7m8PfONZuyF/85bq+M0ZcWYxyiUFBCj 1198293452 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id E7A986C6B; Fri, 21 Dec 2007 22:17:31 -0500 (EST) Message-Id: <79A62827-CDDD-4B89-A2A9-11B6A95358A4@goldmark.org> From: Jeffrey Goldberg To: Chuck Swiger In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Fri, 21 Dec 2007 21:17:30 -0600 References: <7E89BDCD-AF34-48D6-A4BD-D324A8BC0C5C@goldmark.org> X-Mailer: Apple Mail (2.915) Cc: User questions Subject: Re: which cputype for Althon 64 X2 Dual Core 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, 22 Dec 2007 03:17:33 -0000 First of all, thank you very much for your response. I have some follow up questions below. On Dec 21, 2007, at 6:45 PM, Chuck Swiger wrote: > On Dec 21, 2007, at 4:33 PM, Jeffrey Goldberg wrote: >> What optimizations should I make in make.conf? > > A reasonable starting point is no special optimizations, and simply > disable debug options like WITNESS, INVARIANTS, etc. I didn't see mention of these in the example make.conf so I don't know how to disable those if they are enabled in the first place. > If you plan to go beyond that, you'll need to start by doing some > benchmarks [...] I'm after the "low hanging fruit" and I don't really have the inclination to do such extensive tuning. I was just wondering if there is anything obvious. >> The example make.conf says >> >> AMD64 architecture: opteron, athlon64, nocona, prescott, core2 >> >> But I don't know whether althon64 or core2 would be the safest and >> most appropriate. >> >> Also GENERIC for amd64 lists >> >> cpu HAMMER >> >> is that the best (only) choice? > > Yes, as far as AMD64 code goes. You could always switch down to > running in 32-bit mode, though. That answer the question for the kernel configuration. But what should I put in make.conf as cputype? Right now, I've just left it unspecified. I started a make buildworld and was surprised to see that it is using -O2 -fno-strict-aliasing -pipe even though I didn't tell it to do so. -O2 sounds like an odd default when it appears to be recommended against. Where should I look for the defaults? Cheers, -j