Detecting data TLB misses

There are a couple of easy ways that an application can be tested for whether it is encountering DTLB misses.

  • One way is to use the command trapstat, this command requires administrator privileges to run and either reports trap activity on a system-wide basis, or can be used to follow the traps that a single process encounters
  • The second way is to use cputrack to track the events recorded by the hardware performance counters on the processor. The particular counters will depend on the hardware. An example using an UltraSPARC III is:
cputrack -c pic0=Instr_cnt,pic1=DTLB_miss -p <pid>
Comments:

Post a Comment:
Comments are closed for this entry.
About

Darryl Gove is a senior engineer in the Solaris Studio team, working on optimising applications and benchmarks for current and future processors. He is also the author of the books:
Multicore Application Programming
Solaris Application Programming
The Developer's Edge

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
5
6
8
9
10
12
13
14
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
The Developer's Edge
Solaris Application Programming
Publications
Webcasts
Presentations
OpenSPARC Book
Multicore Application Programming
Docs