From owner-freebsd-newbies@FreeBSD.ORG Tue Apr 29 10:30:19 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D6DE37B401 for ; Tue, 29 Apr 2003 10:30:19 -0700 (PDT) Received: from thor.acuson.com (ac17859.acuson.com [157.226.71.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D5543F93 for ; Tue, 29 Apr 2003 10:30:18 -0700 (PDT) (envelope-from DavidJohnson@Siemens.com) Received: from mvaexch02.acuson.com (mvaexch02.acuson.com [157.226.230.209]) by thor.acuson.com (iPlanet Messaging Server 5.2 (built Feb 21 2002)) with ESMTP id <0HE400MVL8L3ZR@thor.acuson.com> for freebsd-newbies@freebsd.org; Tue, 29 Apr 2003 10:29:27 -0700 (PDT) Received: by mvaexch02.acuson.com with Internet Mail Service (5.5.2653.19) id ; Tue, 29 Apr 2003 10:19:43 -0700 Received: from dhcp-46-117.acuson.com ([157.226.46.117]) by mvaexch01.acuson.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id JQ7MBKBS; Tue, 29 Apr 2003 10:21:13 -0700 Content-return: allowed Date: Tue, 29 Apr 2003 10:29:49 -0700 From: Johnson David In-reply-to: <20030429063543.GA888@home.arachne.cz> To: Jan Stary , freebsd-newbies@freebsd.org Message-id: <200304291029.49957.DavidJohnson@Siemens.com> Organization: Siemens Medical Systems MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.5.1 References: <20030429063543.GA888@home.arachne.cz> Subject: Re: kernel optimized for Athlon XP 1800+ X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 17:30:19 -0000 On Monday 28 April 2003 11:35 pm, Jan Stary wrote: > Anyway; it's an Athlon CPU, and when compiling my custom kernel, I > couldn't find any option more specific then CPU_I686 (also said > ATHLON_SSE_HACK). I only want to make sure that it really gets > optimized for my Athlon (so far, all ports compile with > -mcpu=pentiumpro). Those CPU settings for the kernel are not for optimization. They're for accessing functionality. If you run dmesg and look near the top, you'll find that FreeBSD kernel is detecting your CPU as a "686-class CPU" regardless. The kernel is not optimized because it's just too close to the metal. Optimize it too much and it will break every time gcc changes its optimizer ever so slightly. On the plus side, you can edit /etc/make.conf to optimize for the Athlon. This will apply to buildworld (not recommended) and building ports. See the handbook for complete information. David