[okl4-developer] PMCs

Frank Kaiser frank.kaiser at opensynergy.com
Thu Jan 7 20:46:32 EST 2010


Hello

 

Most of modern x86 processors provide the TSC for performance
monitoring. According to what I remember from INTEL's x86 architecture
documentation it is guaranteed that the TSC will not overflow within 10
years. This is far beyond a system's uninterrupted operating time,
therefore I see no reason for an overflow interrupt etc.

The common approach is to read and store the TSC at a tracepoint and
calculate time differences between associated tracepoints. The main
difficulty is to determine the absolute timebase, because this is highly
dependent on the specific CPU and chipset in use, and on the system's
clocking.

 

Frank

From: developer-bounces at okl4.org [mailto:developer-bounces at okl4.org] On
Behalf Of Peter Nguyen
Sent: Wednesday, January 06, 2010 11:39 PM
To: Gabi Voiculescu
Cc: developer
Subject: Re: [okl4-developer] PMCs

 

Hi,

 

Well, I think there would be given that if counters overflow, how are
they handled exactly? I've been reading documentation about the APIC,
which generates performance monitoring interrupts, which i would assume
deals with counter overflows.

 

-----------------------------------------------------

Peter Nguyen

Jacaranda Research Group

 

 

 

On 07/01/2010, at 6:16 AM, Gabi Voiculescu wrote:





Hi.

I think there is no performance counter interrupt on any Intel
processor, except for Itanium.
http://www.intel.com/software/products/documentation/vlin/mergedprojects
/analyzer_ec/sampling_hh/performance_counters_on_intel(r)_processors.htm

I saw that applications were making use of RTC interrupt to perform
polling of these counters.
http://www.intel.com/software/products/documentation/vlin/mergedProjects
/analyzer_ec/sampling_hh/event_based_sampling.htm

--- On Mon, 1/4/10, Peter Nguyen <peter.nguyen at adelaide.edu.au> wrote:


From: Peter Nguyen <peter.nguyen at adelaide.edu.au>
Subject: [okl4-developer] PMCs
To: "developer" <developer at okl4.org>
Date: Monday, January 4, 2010, 1:07 PM

Hi,

In using the Pentium architecture for OKL4, does anyone know how to  
get the PMCs working in terms of generating a performance monitoring  
interrupt? I am able to activate the counters, but when an overflow  
occurs, nothing happens. I've tried switching execution to use the  
APIC code, but that doesn't seem to work at all. I suspect the kernel  
debugger uses it although only to print the values of registers rather  
than utilising the performance monitoring facilities at all.

Any suggestions would be great.
-----------------------------------------------------
Peter Nguyen
Jacaranda Research Group




_______________________________________________
Developer mailing list
Developer at okl4.org
https://lists.okl4.org/mailman/listinfo/developer

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20100107/c80efa4b/attachment.htm 


More information about the Developer mailing list