Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Cavium mips64 perf counters
@ 2010-04-26 13:40 Giant Sand Fan's
  2010-04-26 17:06 ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: Giant Sand Fan's @ 2010-04-26 13:40 UTC (permalink / raw)
  To: linux-mips

Hi,

I'm trying to calculate de CPU load by access the performance counters
in mips and I haved reading in the cp0 but my problem is that I cannot
find documentation about the real meaning of these counters :

1.-LOG_PERF_CNT_NISSUE : ¿means cycle with no issue?

2.-LOG_PERF_CNT_SISSUE : ¿means cycle with     issue?

3.-LOG_PERF_CNT_DISSUE: ¿means cycle with double issue?


so CPU load will be == 2*100/(1+2) , in the period of time.

any clue...



thanks

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cavium mips64 perf counters
  2010-04-26 13:40 Cavium mips64 perf counters Giant Sand Fan's
@ 2010-04-26 17:06 ` David Daney
  2010-04-27  8:24   ` Giant Sand Fan's
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2010-04-26 17:06 UTC (permalink / raw)
  To: Giant Sand Fan's; +Cc: linux-mips

On 04/26/2010 06:40 AM, Giant Sand Fan's wrote:
> Hi,
>
> I'm trying to calculate de CPU load by access the performance counters
> in mips and I haved reading in the cp0 but my problem is that I cannot
> find documentation about the real meaning of these counters :
>
> 1.-LOG_PERF_CNT_NISSUE : ¿means cycle with no issue?
>
> 2.-LOG_PERF_CNT_SISSUE : ¿means cycle with     issue?

Single issue.

>
> 3.-LOG_PERF_CNT_DISSUE: ¿means cycle with double issue?
>

That's right.  And PERF_CNT_CLK is the number of cycles.

David Daney

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cavium mips64 perf counters
  2010-04-26 17:06 ` David Daney
@ 2010-04-27  8:24   ` Giant Sand Fan's
  0 siblings, 0 replies; 3+ messages in thread
From: Giant Sand Fan's @ 2010-04-27  8:24 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

0h, thank you David.

So can I do something like :

A.-) %CPU == (LOG_PERF_CNT_SISSUE)+(LOG_PERF_CNT_DISSUE*2)*100/CVMX_LOG_PERF_CNT_CLK

or

B.-) %CPU == (CVMX_LOG_PERF_CNT_ISSUE*100)/CVMX_LOG_PERF_CNT_CLK


I setup and read perf counters with :

mtc0 %0, $25, 0
dmfc0 %0, $25, 1

but I think that I can only read two counters so I can only use "B".

... or I'm totally wrong



2010/4/26 David Daney <ddaney@caviumnetworks.com>:
> On 04/26/2010 06:40 AM, Giant Sand Fan's wrote:
>>
>> Hi,
>>
>> I'm trying to calculate de CPU load by access the performance counters
>> in mips and I haved reading in the cp0 but my problem is that I cannot
>> find documentation about the real meaning of these counters :
>>
>> 1.-LOG_PERF_CNT_NISSUE : żmeans cycle with no issue?
>>
>> 2.-LOG_PERF_CNT_SISSUE : żmeans cycle with     issue?
>
> Single issue.
>
>>
>> 3.-LOG_PERF_CNT_DISSUE: żmeans cycle with double issue?
>>
>
> That's right.  And PERF_CNT_CLK is the number of cycles.
>
> David Daney
>



-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-27  8:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 13:40 Cavium mips64 perf counters Giant Sand Fan's
2010-04-26 17:06 ` David Daney
2010-04-27  8:24   ` Giant Sand Fan's

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