1752788 Members
6061 Online
108789 Solutions
New Discussion юеВ

Re: Processor Speed

 
SOLVED
Go to solution
Robert-Jan Goossens
Honored Contributor

Re: Processor Speed

Hi,

You can also use,

db001:/etc# ioscan -fnkC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
processor 1 166 processor CLAIMED PROCESSOR Processor

Hope it helps,

Robert-Jan.
Mike Stroyan
Honored Contributor

Re: Processor Speed

You can actually get clock rate information for each processor with the pstat_getprocessor function.
That still reports the same speed for every processor. Here is a small example program.

#include
#include
#include
#include
int main(int argc, char *argv[])
{
struct pst_processor st;
int id;
for (id=0; pstat_getprocessor(&st, sizeof(st), (size_t)1, id)==1; id++) {
printf("processor %d- %d clock cycles per second\n",
id, st.psp_iticksperclktick * sysconf(_SC_CLK_TCK));
}
return 0;
}
Mary Claire Pollard
Occasional Advisor

Re: Processor Speed

ummm, I read about the stm that was just posted. I got into it, and can't get out! I know, I know...what a sad, sad post. Can somebody help me?

Thanks,
Mary P.

Jeff Schussele
Honored Contributor

Re: Processor Speed

Hi Mary,

Don't be hard on yourself, we all have days like this.

Not sure whether you're sitting at a
cstm>
prompt or not.
If so just type quit & 2 returns to get out.
If you went into cstm via the echo/pipe routine a ctrl-C should get you out. If that doesn't do it try the delete key. If that doesn't do it try the ctrl-backslash.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!