Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Bharadwaj Yadavalli <sby@ives.lkg.dec.com>
To: axp-list@redhat.com
Subject: Re: Finding processor frequency
Date: Thu, 25 Jan 2001 11:36:28 -0500 (EST)	[thread overview]
Message-ID: <200101251636.LAA28416@ives.lkg.dec.com> (raw)
In-Reply-To: <3A6F9551.45CB217F@appnet.com> from "Jeff Sturm" at Jan 24, 2001 09:54:09 PM

        Ross A Knepper wrote:
        > personally, i think that exporting a hwrpb_struct to userland is both ugly
        > and unnecessary.  the rpb is intended to be hidden to upper levels and
        > certainly to userland.  

I fully agree with you.

        > whereas finding the MHz of the cpu is conceptually
        > the same from the user's point of view on any architecture, 
        > parsing a hwrpb_struct is clearly alpha-specific.

AFAIK, this is the only place that the processor frequency is 
recorded in the kernel. Not knowing how else to get the value
(other than parsing /proc/cpuinfo and hence relying on the string
"cycle frequency [Hz]" not changing in the sprintf() in 
get_cpuinfo()), I enquired. 

As you say, since processor frequency is an architecture 
independent characteristic, may be it should be part of 
information returned in struct sysinfo structure by or sysconf(). 
getsysinfo() on Tru64 lets you pick that information with 
GSI_CPU_INFO operation.

        Jeff Sturm suggested:
        > The lmbench suite <uri:http://www.bitmover.com/lmbench/>

Thanks. I'll check it out.        

Bharadwaj
(resigned to parsing /proc/cpuinfo :-((




  reply	other threads:[~2001-01-25 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24 23:31 Finding processor frequency Bharadwaj Yadavalli
2001-01-24 23:33 ` Ross A Knepper
2001-01-25  2:54   ` Jeff Sturm
2001-01-25 16:36     ` Bharadwaj Yadavalli [this message]
2001-01-25 22:39       ` W Bauske
2001-01-26  3:53     ` DP264 Sale Maurice Hilarius
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox