tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Nuria Guizar Grau <nrgg () hermes ! ulsa ! mx>
To: tru64-unix-managers
Subject: SUMMARY : Procesor speed
Date: Wed, 12 Nov 1997 22:32:44 +0000	[thread overview]
Message-ID: <96078619210407.tru64-unix-managers.marc@archive.invalid> (raw)


Thanks to all who responded, especially to:
* Randy M. Hayman, Mohammed Ali, Paul Kitwin, Richard L Jackson Jr, Ed
Murphy, Claude Charest, Sean McInerney, George Guethlein,
alan@nabeth.cxo.dec.com, Matthew Lucius, Dave Cherkus, Mike D Cross,
Isidoro Sepe, Karen Byrd

There are a lot of solutions to this question. Here are some of them:

1.- Compile the following and execute:

#include <sys/sysinfo.h>                /* for getsysinfo() call        */
#include <machine/hal_sysinfo.h>        /* for sysinfo data             */
#include <machine/rpb.h>                /* for struct rpb               */
#include <stdio.h>
#include <mach.h>

main()
{
long int                status;
struct          rpb     rpb_buff;

    if( 0 <= (status = getsysinfo( GSI_GET_HWRPB, &rpb_buff, 
sizeof(rpb_buff))))
        fprintf(stdout, "CPU Frequency: \t\t%u Hz\n\n",
rpb_buff.rpb_counter);

}

2.- uerf -R full |more
3.- /usr/sbin/psrinfo -v

                 reply	other threads:[~1997-11-12 22:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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