From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 23:42:12 2004 Return-Path: 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 A733B16A4CE for ; Sat, 21 Feb 2004 23:42:12 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E31643D1D for ; Sat, 21 Feb 2004 23:42:12 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <40385D51.4010009@geminix.org> Date: Sun, 22 Feb 2004 08:42:09 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AuoFf-00085A-00; Sun, 22 Feb 2004 08:42:11 +0100 Subject: Re: a sysctl machdep.tsc_freq problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 07:42:12 -0000 ouyang kai wrote: > Uwe wrote: > >>Is the P4-1.6G machine a multi-processor system, that is, was the kernel >>compiled with the SMP option? If so, there is currently no TSC support >>on multi-processor systems, for technical reasons I understand. So in >>this case 'machdep.tsc.freq' is omitted from the kernel and therefore >>cannot be queried. > > No, there are all UP system. > [...] Okay, then there are apparently more reasons for its ommission than just SMP. After all, 'machdep' means "machine dependent". ;-) > I think the difference is the P4-1.6G machine enable APM-BIOS, if so, how can I get the CPU speed? > Because the CPU speed info in the 'kern.msgbuf' will be rushed after the machine run a long time and a lot of kernel msg. Did you consider parsing '/var/run/dmesg.boot'? That one won't change over time. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net