From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 15:29:27 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 BBDA516A4E0 for ; Sat, 21 Feb 2004 15:29:27 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8294F43D1F for ; Sat, 21 Feb 2004 15:29:27 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <4037E9D1.8090005@geminix.org> Date: Sun, 22 Feb 2004 00:29:21 +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; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AugYm-000Mkf-00; Sun, 22 Feb 2004 00:29:25 +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: Sat, 21 Feb 2004 23:29:27 -0000 ouyang kai wrote: > i found a strange case, i have tested the three machines(PIII 800 & > FreeBSD4.9-stable, > P4-1.6G & FreeBSD4.8-release, P4-2.0G & FreeBSD5.2.1). > I use "sysctl -a | grep machdep.tsc.freq" to get the CUP speed. But, I > failed on the P4-1.6G machine. Nothing appears. > Should I set some additional stuff on the P4-1.6G machine? I have do > nothing specailly for the other two machines, but it works. 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. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net