From owner-freebsd-questions@FreeBSD.ORG Mon Jan 2 06:00:39 2012 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 41E021065673 for ; Mon, 2 Jan 2012 06:00:39 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id EF1CB8FC08 for ; Mon, 2 Jan 2012 06:00:38 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id AB2268B141C; Mon, 2 Jan 2012 06:42:54 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.964 X-Spam-Level: X-Spam-Status: No, score=-100.964 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.036, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id zSTnfiu4bJhV; Mon, 2 Jan 2012 06:42:52 +0100 (CET) Received: from [192.168.100.30] (p54B0AD46.dip.t-dialin.net [84.176.173.70]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id E2BCE8B1424; Mon, 2 Jan 2012 06:42:52 +0100 (CET) Message-ID: <4F0143C8.1080800@executive-computing.de> Date: Mon, 02 Jan 2012 06:42:32 +0100 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Dennis Glatting References: <1325346752.35403.65.camel@btw.pki2.com> In-Reply-To: <1325346752.35403.65.camel@btw.pki2.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: CPU MHz discrepency 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: Mon, 02 Jan 2012 06:00:39 -0000 Dennis Glatting wrote on 31.12.2011 16:52: > Curios here. > > My BIOS reports my CPU at 4,023 MHz but when FreeBSD boots it says > "3973.35-MHz." How is this determined? Seems like an off-by-one error > somewhere. > > MB: ASUS Crosshair V FORMULA, latest BIOS, overclocked. > > dmesg output: > > Tasha> dmesg > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.2-STABLE #7: Fri Dec 30 18:15:12 PST 2011 > root@Tasha:/disk-1/src/sys/amd64/compile/TASHA amd64 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD FX(tm)-8150 Eight-Core Processor (3973.35-MHz > K8-class CPU) > Origin = "AuthenticAMD" Id = 0x600f12 Family = 15 Model = 1 > Stepping = 2 In your case you might want to take a look at the printcpuinfo function in ${SRC_BASE}/sys/md64/amd64/identcpu.c for starters. Especially the CPUCLASS_K8 case in the second switch statement. MfG CoCo