Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2004 08:42:09 +0100
From:      Uwe Doering <gemini@geminix.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: a sysctl machdep.tsc_freq problem
Message-ID:  <40385D51.4010009@geminix.org>
In-Reply-To: <BAY4-DAV4BVyjh1vPuT00078a19@hotmail.com>
References:  <BAY4-DAV4BVyjh1vPuT00078a19@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40385D51.4010009>