Intel® Xeon® Processor E5-2600
Product Family Uncore Performance
Monitoring Guide
March 2012
Reference Number: 327043-001
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL
BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS
PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER,
AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING T O SALE AND/OR USE OF INTEL PRODUC TS INCLUDING
LIABILITY OR WARRANTIES RELA TING T O FITNES S FOR A PARTICULAR PURPOSE, MERCHANT ABILITY, OR INFRINGEMENT OF ANY
PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving,
life sustaining applications.
A "Mission Critical Application" is any application in which failure of the Intel Product could result, directly or indirectly, in personal
injury or death. SHOULD YOU PURCHASE OR USE INTEL'S PRODUCTS FOR ANY SUCH MISSION CRITICAL APPLICATION, YOU
SHALL INDEMNIFY AND HOLD INTEL AND ITS SUBSIDIARIES, SUBCONTRACTORS AND AFFILIATES, AND THE DIRECTORS,
OFFICERS, AND EMPLOYEES OF EACH, HARM LESS AGAINST ALL CLAIMS COSTS, DAMAGES, AND EXPENSES AND REASONABLE
AT TORNEY S' FEES ARISING O UT OF, DIRECTLY OR INDIRECTLY, ANY CLAIM O F PRODUCT LIABILITY, PERSONAL INJURY, OR DEATH
ARISING IN ANY WAY OUT OF SUCH MISSION CRITICAL APPLICATION, WHETHER OR NOT INTEL OR ITS SUBCONTRACTOR WAS
NEGLIGENT IN THE DESIGN, MANUFACTURE, OR WARNING OF THE INTEL PRODUCT OR ANY OF ITS PARTS.
®
PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED,
Intel may make changes to specifications and product descriptions at any time, without notice.
Designers must not rely on the absence or characteristics of any features or instructions marked “reserved” or “undefined.” Intel
reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future
changes to them.
Code names represented in this document are only for use by Intel to identify a product, technology, or service in development,
that has not been made commercially available to the public, i.e., announced, launched or shipped. It is not a “commercial” name
for products or services and is not intended to function as a trademark.
The Intel
from published specifications. Current characterized er rata ar e ava ila bl e on re q uest.
Hyper-Threading Technology requires a computer system with an I ntel
an HT Technology enabled chipset, BIOS and operating system. Performance will vary depending on the specific hardware and
software you use. For more information, see http://www.intel.com/technology/hyperthread/index.htm; including details on which processors
support HT Technology.
Intel
(VMM) and for some uses, certain platform software enabled for it. Functionality, performance or other benefits will
on hardware and software configurations. Intel
development.
64-bit computing on Intel architecture requires a computer system with a processor , chipset, BIOS, operating system, device drivers and applications enabled for Intel
64 architecture-enabled BIOS. Performance will vary depending on your hardware and software configurations. Consult with your
system vendor for more information.
®
64 architecture processors may contain design defects or errors known as errata, which may cause the product to deviate
®
processor supporting Hyper-Threading Technology and
®
Virtualization Technology requires a computer system with an enabled Intel® processor, BIOS, virtual machine monitor
®
Virtualization Technology-enabled BIOS and VMM applications are currently in
®
64 architecture. Processors will not operate (including 32-bit operation) without an Intel
vary depending
Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order.
Copies of documents which have an order number and are referenced in this document, or other Intel literature, may be obtained
by calling 1-800-548-4725, or by visiting Intel's Web Site
Intel, Pentium, Intel Xeon, Intel NetBurst, Intel Core Solo , In tel Cor e Duo , Intel Core 2 Duo, Intel Core 2 Extreme, Intel Pentium
D, Itanium, Intel SpeedStep, MMX, and VTune are trademarks or registered trademarks of Intel Corporation or its subsidiaries in
The uncore subsystem of the Intel® Xeon® processor E5-2600 product family is shown in Figure 1-1.
The uncore subsystem also applies to the Intel® Xeon® processor E5-1600 product family in a
single-socket platform
CBox caching agent to the power controller unit (PCU), integrated memory controller (iMC) and home
agent (HA), to name a few. Most of these components provide similar performance monitoring
capabilities.
Figure 1-1. Uncore Sub-system Block Diagram of Intel Xeon Processor E5-2600 Family
1
. The uncore sub-system consists of a variety of components, r anging from the
1.2Uncore PMON Overview
The uncore performance monitoring facilities are organized into per-component performance
monitoring (or ‘PMON’) units. A PMON unit within an uncore component may contain one of more
sets of counter registers. With the exception of the UBox, each PMON unit provides a unit-level
control register to synchronize actions across the counters within the box (e.g., to start/stop
counting).
1. The uncore sub-system in Intel® CoreTM i7-3930K and i7-3820 processors are derived from
above, hence most of the descriptions of this document also apply.
Reference Number: 327043-0019
Introduction
Events can be collected by reading a set of local counter registers. Each counter register is paired with
a dedicated control register used to specify what to count (i.e. through the event select/umask fields)
and how to count it. Some units provide the ability to specify additional information that can be used
to ‘filter’ the monitored events (e.g., C-box; see Section 2.3.3.3, “CBo Filter Register
(Cn_MSR_PMON_BOX_FILTER)”).
Uncore performance monitors represent a per-socket resource that is not meant to be affected by
context switches and thread migration performed by the OS, it is recommended that the monitoring
software agent establish a fixed affinity binding to prevent cross-talk of event counts from different
uncore PMU.
The programming interface of the counter registers and control registers fall into two address spaces:
• Accessed by MSR are PMON registers within the Cbo units, PCU, and U-Box, see Table 1-2.
• Access by PCI device configuration space are PMON registers within the HA, iMC, Intel® QPI,
R2PCIe and R3QPI units, see Table 1-3.
Irrespective of the address-space difference and with only minor exceptions, the bit-granular layout of
the control registers to program event code, unit mask, start/stop, and signal filtering via threshold/
edge detect are the same.
The general performance monitoring capabilities of each box are outlined in the following table.
• Section 2.7, “Intel® QPI Link Layer Performance Monitoring”
• Section 2.9, “R3QPI Performance Monitoring”
• Section 2.8, “R2PCIe Performance Monitoring”
• Section 2.10, “Packet Matching Reference”
10Reference Number: 327043-001
Introduction
1.4Uncore PMON - Typical Control/Counter Logic
Following is a diagram of the standard perfmon counter block illustrating how event information is
routed and stored within each counter and how its paired control register helps to select and filter the
incoming information. Details for how control bits affect event information is presented in each of the
box subsections of Chapter 2, with some summary information below.
Note:The PCU uses an adaptation of this block (refer to Section 2.6.3, “PCU Performance
Monitors” more information). Also note that only a subset of the available control bits
are presented in the diagram.
Figure 1-2. Perfmon Control/Counter Block Diagram
Selecting What To Monitor: The main task of a configuration register is to select the event to be
monitored by its respective data counter. Setting the .ev_sel and .umask fields performs the event
selection.
Telling HW that the Control Register Is Set: .en bit must be set to 1 to enable counting. Once
counting has been enabled in the box and global level of the Performance Monitoring H ier archy (refer
to Section 2.1.1, “Setting up a Monitoring Session” for more information), the paired data register will
begin to collect events.
Reference Number: 327043-00111
Introduction
Additional control bits include:
Applying a Threshold to Incoming Events: .thresh - since most counters can increment by a
value greater than 1, a threshold can be applied to generate an event based on the outcome of the
comparison. If the .thresh is set to a non-zero value, that value is compared against the incoming
count for that event in each cycle. If the incoming count is >= the threshold value, then the event
count captured in the data register will be incremented by 1.
Using the threshold field to generate additional events can be particularly useful when applied to a
queue occupancy count. For example, if a queue is known to contain eight entries, it may be useful to
know how often it contains 6 or more entires (i.e. Almost Full) or when it contains 1 or more entries
(i.e. Not Empty).
Note:The .invert and .edge_det bits follow the threshold comparison in sequence. If a user
wishes to apply these bits to events that only increment by 1 per cycle, . thresh must be
set to 0x1.
Inverting the Threshold Comparison: .invert - Changes the .thresh test condition to ‘<‘.
Counting State Transitions Instead of per-Cycle Events: .edge_det - Rather than accumulating
the raw count each cycle (for events that can increment by 1 per cycle), the register can capture
transitions from no event to an event incoming (i.e. the ‘Rising Edge’).
1.5Uncore PMU Summary Tables
Following is a list of the registers provided in the Uncore for Performance Monitoring. It should be
noted that the PMON interfaces are split between MSR space (U, CBo and PCU) and PCICFG space.
Table 1-2.MSR Space Uncore Performance Monitoring Registers (Sheet 1 of 2)
BoxMSR AddressesDescription
C-Box Counters
C-Box 7
C-Box 6
C-Box 5
C-Box 4
C-Box 3
0xDF9-0xDF6 Counter Registers
0xDF4 Counter Filters
0xDF3-0xDF0 Counter Config Registers
0xDE4 Box Control
0xDD9-0xDD6 Counter Registers
0xDD4 Counter Filters
0xDD3-0xDD0 Counter Config Registers
0xDC4 Box Control
0xDB9-0xDB6 Counter Registers
0xDB4 Counter Filters
0xDB3-0xDB0 Counter Config Registers
0xDA4 Box Control
0xD99-0xD96 Counter Registers
0xD94 Counter Filters
0xD93-0xD90 Counter Config Registers
0xD84 Box Control
0xD79-0xD76 Counter Registers
0xD74 Counter Filters
0xD73-0xD70 Counter Config Registers
12Reference Number: 327043-001
Introduction
Table 1-2.MSR Space Uncore Per formance Monitoring Registers (Sheet 2 of 2)
Table 1-3.PCICFG Space Uncore Performance Monitoring Registers (Sheet 1 of 2)
Box
PCICFG Register
Addresses
R3QPID19:F5,6F(5,6) for Link 0,1
F4 Box Control
E0-D8 Counter Config Registers
B4-A0 Counter Registers
R2PCIeD19:F1
F4 Box Control
E4-D8 Counter Config Registers
BC-A0 Counter Registers
iMCD16:F0,1,4,5
F4 Box Control
F0 Counter Config Register (Fixed)
Reference Number: 327043-00113
F(0,1,4,5) For Channel 0,1,2,3
Description
Introduction
Table 1-3.PCICFG Space Uncore Performance Monitoring Registers (She et 2 of 2)
Box
HAD14:F1
QPID8,9:F2D(8,9) for Port 0,1
QPI Mask/MatchD8,9:F6D(8,9) for Port 0,1
QPI MiscD8,9:F0D(8,9) for Port 0,1
PCICFG Register
Addresses
E4-D8 Counter Config Registers (General)
D4-D0 Counter Register (Fixed)
BC-A0 Counter Registers (General)
F4 Box Control
E4-D8 Counter Config Registers
BC-A0 Counter Registers
48-40 Opcode/Addr Match Filters
F4 Box Control
E4-D8 Counter Config Registers
BC-A0 Counter Registers
23C-238 Mask 0,1
22C-228 Match 0,1
D4 QPI Rate Status
Description
1.6On Parsing and Using Derived Events
For many of the sections in the chapter covering the Performance Monitoring capabilites of each box,
a set of commonly measured metrics or ‘Derived Events’ have been included. For the most part,
these derived events are simple mathetmatical combinations of events found within the box. (e.g.
[SAMPLE]) However, there are some extensions to the notation used by the metrics.
Following is a breakdown of a Derived Event to illustrate many of the notations used. To calculcate
“Average Number of Data Read Entries that Miss the LLC when the TOR is not empty”.
pnemonic for the register will be included in the equation. Software will be responsible for
configuring the data register and setting it to start counting with the other events used by the
metric.
Requires more input to software to determine the specific event/subevent
• In some cases, there may be multiple events/subevents that cover the same information across
multiple like hardware units. Rather than manufacturing a derived event for each combination,
the derived event will use a lower case variable in the event name.
•e.g., POWER_CKE_CYCLES.RANKx / MC_Chy_PCI_PMON_CTR_FIXED where ‘x’ is a variable to cover
events POWER_CKE_CYCLES.RANK0 through POWER_CKE_CYCLES.RANK7
Requires setting extra control bits in the register the event has been programmed in:
• event_name[.subevent_name]{ctrl_bit[=value],}
•e.g.,
NOTE: If there is no [=value] specified it is assumed that the bit must be set to 1.
Requires gathering of extra information outside the box (often for common terms):
• See following section for a breakdown of common terms found in Derived Events.
COUNTER0_OCCUPANCY{edge_det,thresh=0x1}
1.6.1On Common Terms found in Derived Events
To convert a Latency term from a count of clocks to a count of nanoseconds:
• e.g., For READ_MEM_BW, an event derived from iMC:CAS_COUNT.RD * 64, which is the amount
of memory bandwidth consumed by read requests, put ‘READ_MEM_BW’ into the bandwidth term
to convert the measurement from raw bytes to GB/sec.
Following are some other terms that may be found wi thin Metrics and how they should be interpreted.
• GB_CONVERSION: 1024^3
• TSC_SPEED: Time Stamp Counter frequency in MHz
• SAMPLE_INTERVAL = TSC end time - TSC start time.
§
Reference Number: 327043-00115
Introduction
16Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2Intel® Xeon® Processor E5-
2600 Product Family Uncore
Performance Monitoring
2.1Uncore Per-Socket Performance Monitoring
Control
The uncore PMON does not support interrupt based sampling. T o manage the large number of counter
registers distributed across many units and collect event data efficiently, this section describes the
hierarchical technique to start/stop/restart event counting that a software agent may need to perform
during a monitoring session.
2.1.1Setting up a Monitoring Session
On HW reset, all the counters are disabled. Enabling is hierarchical. So the following steps, which
include programming the event control registers and enabling the counters to begin collecting events,
must be taken to set up a monitoring session. Section 2.1.2 co vers the steps to stop/re-start counter
registers during a monitoring session.
For each box in which events will be measured: Skip (a) and (b) for U-Box monitoring.
a) Enable each box to accept the freeze signal to start/stop/re-start all counter registers in that box
e.g., set Cn_MSR_PMON_BOX_CTL.frz_en to 1
Note:Recommended: set the .frz_en bits during the setup phase for each box a user intends
to monitor, and left alone for the duration of the monitoring session.
b) Freeze the box’s counters while setting up the monitoring session.
e.g., set Cn_MSR_PMON_BOX_CTL.frz to 1
For each event to be measured within each box:
c) Enable counting for each monitor
e.g. Set C0_MSR_PMON_CTL2.en to 1
Note:Recommended: set the .en bit for all counters in each box a user intends to monitor,
and left alone for the duration of the monitoring session.
d) Select event to monitor if the event control register hasn’t been programmed:
Reference Number: 327043-001 17
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Program the .ev_sel and .umask bits in the control register with the encodings necessary to capture
the requested event along with any signal conditioning bits (.thresh/.edge_det/.invert) used to qualify
the event.
e.g., Set C0_MSR_PMON_CT2.{ev_sel, umask} to {0x03, 0x1} in order to capture
LLC_VICTIMS.M_STATE in CBo 0’s C0_MSR_PMON_CTR2.
Note:It is also important to program any additional filter registers used to further qualify the
events (e.g., setting the opcode match field in Cn_MSR_BOX_FILTER to qualify
TOR_INSERTS by a specific opcode).
Back to the box level:
e) Reset counters in each box to ensure no stale values have been acquired from previous sessions.
• For each CBo, set Cn_MSR_PMON_BOX_CTL[1:0] to 0x2.
• For each Intel® QPI Port, set Q_Py_PCI_PMON_BOX_CTL[1:0] to 0x2.
• Set PCU_MSR_PMON_BOX_CTL[1:0] to 0x2.
• For each Link, set R3QPI_PCI_PMON_BOX_CTL[1:0] to 0x2.
• Set R2PCIE_PCI_PMON_BOX_CTL[1:0] to 0x2.
Note:The UBox does not have a Unit Control register and neither the iMC nor the HA have a
reset bit in their Unit Control register. The counters in the UBox, the HA each populated
DRAM channel in the iMC will need to be manually reset by writing a 0 in each data
register.
Back to the box level:
f) Commence counting at the box level by unfreezing the counters in each box
e.g., set Cn_MSR_PMON_BOX_CTL.frz to 0
And with that, counting will begin.
Note:The UBox does not have a Unit Control register. Once enabled and programmed with a
valid event, they will be collecting events. For somewhat better synchronization, a user
can keep the U_MSR_PMON_CTL.ev_sel at 0x0 while enabled and write it with a valid
value just prior to unfreezing the registers in other boxes.
2.1.2Reading the Sample Interval
Software can poll the counters whenever it chooses.
a) Polling - before reading, it is recommended that software freeze the counters in each box in which
counting is to take place (by setting *_PMON_BOX_CTL.frz_en and .frz to 1). After reading the event
counts from the counter registers, the monitoring agent can choose to reset the event counts to avoid
event-count wrap-around; or resume the counter register without resetting their values. The latter
choice will require the monitoring agent to check and adjust for potential wrap-around situations.
18Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.2UBox Performance Monitoring
2.2.1Overview of the UBox
The UBox serves as the system configuration controller for the Intel Xeon Processor E5-2600 family
uncore.
In this capacity, the UBox acts as the central unit for a variety of functions:
• The master for reading and writing physically distributed registers across the uncore using the
Message Channel.
• The UBox is the intermediary for interrupt traffic, receiving interrupts from the sytem and
dispatching interrupts to the appropriate core.
• The UBox serves as the system lock master used when quiescing the platform (e.g., Intel® QPI
bus lock).
2.2.2UBox Performance Monitoring Overview
The UBox supports event monitoring through two programmable 44-bit wide counters
(U_MSR_PMON_CTR{1:0}), and a 48-bit fixed counter which increments each u-clock. Each of these
counters can be programmed (U_MSR_PMON_CTL{1:0}) to monitor any UBox event.
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per- Sock et
The following registers represent the state governing all box-level PMUs in the UBox.
Size
(bits)
Description
U
Reference Number: 327043-001 19
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.2.3.2UBox PMON state - Counter/Control Pairs
The following table defines the layout of the UBox performance monitor control registers. The main
task of these configuration registers is to select the event to be monitored by their respective data
counter (.ev_sel, .umask). Additional control bits are provided to shape the incoming events (e.g.
.invert, .edge_det, .thresh) as well as provide additional functionality for monitoring software (.rst).
Table 2-2.U_MSR_PMON_CTL{1-0} Register – Field D efinitions
FieldBitsAttr
rsv31:29RV0 Reserved (?)
thresh28:24RW0 Threshold used in counter comparison.
invert23RW0 Invert comparison against Threshold.
en22RW0 Local Counter Enable.
rsv21:20RV0 Reserved. SW must write to 0 for proper operation.
rsv19RV0 Reserved (?)
edge_det18RW0 When set to 1, rather than measuring the event in each cycle it
rst17WO0 When set to 1, the corresponding counter will be cleared to 0.
umask15:8RW0 Select subevents to be counted within the selected event.
ev_sel7:0RW0 Select event to be counted.
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshol d?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
is active, the corresponding counter will incr ement when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
The UBox performance monitor data registers are 44-bit wide. Should a counter ov erflow (a carry out
from bit 43), the counter will wrap and continue to collect events.
If accessible, software can continuously read the data registers without disabling event collection.
Table 2-3.U_MSR_PMON_CTR{1-0} Register – Field Definitions
The Global UBox PMON registers also include a fixed counter that increments at UCLK for each cycle it
is enabled.
20Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-4.U_MSR_PMON_FIXED_CTL Register – Field Definitions
FieldBitsAttr
rsv31:23RV0 Reserved (?)
en22RW0 Enable counter when global enable is set.
rsv21:20RV0 Reserved. SW must write to 0 for proper operation.
rsv19:0RV0 Reserved ( ?)
HW
Rese
t Val
Description
Table 2-5.U_MSR_PMON_FIXED_CTR Register – Field Definitions
• Definition: Number of times an IDI Lock/SplitLock sequence was started
2.3Caching Agent (Cbo) Performance Monitoring
2.3.1Overview of the CBo
The LLC coherence engine (CBo) manages the interface between the core and the last level cache
(LLC). All core transactions that access the LLC are directed from the core to a CBo via the ring
interconnect. The CBo is responsible for managing data delivery from the LLC to the requesting core.
It is also responsible for maintaining coherence between the cores within the socket that share the
LLC; generating snoops and collecting snoop responses from the local cores when the MESIF protocol
requires it.
So, if the CBo fielding the core request indicates that a core within the socket owns the line (for a
coherent read), the request is snooped to that local core. That same CBo will then snoop all peers
which might have the address cached (other cores, remote sockets, etc) and send the request to the
appropriate Home Agent for conflict checking, memory requests and writebacks.
In the process of maintaining cache coherency within the socket, the CBo is the gate keeper for all
®
QuickPath Interconnect (Intel® QPI) messages that originate in the core and is responsible for
Intel
ensuring that all Intel
®
QPI messages that pass through the socket’s LLC remain coherent.
The CBo manages local conflicts by ensuring that only one request is issued to the system for a
specific cacheline.
The uncore contains up to eight instances of the CBo, each assigned to manage a distint 2.5MB slice
of the processor’s total LLC capacity. A slice that can be up to 20-way set associative. For processors
with fewer than 8 2.5MB LLC slices, the CBo Boxes or missing slices will still be active and track ring
traffic caused by their co-located core even if they have no LLC related traffic to track (i.e. hits/
misses/snoops).
Every physical memory address in the system is uniquely associated with a single CBo instance via a
proprietary hashing algorithm that is designed to keep the distribution of traffic across the CBo
instances relatively uniform for a wide range of possible address patterns. This enables the individual
CBo instances to operate independently , each man aging its slice of the physical address space without
any CBo in a given socket ever needing to communicate with the other CBos in that same socket.
22Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.3.2CBo Performance Monitoring Overview
Each of the CBos in the uncore supports event monitoring through four 44-bit wide counters
(Cn_MSR_PMON_CTR{3:0}). Event programming in the CBo is restricted such that each events can
only be measured in certain counters within the CBo. For example, counter 0 is dedicated to
occupancy events. No other counter may be used to capture occupancy events.
• Counter 0: Queue-occupancy-enabled counter that tracks all events
• Counter 1: Basic counter that tracks all but queue occupancy events
• Counter 2: Basic counter that tracks ring events and the occupancy companion event
(COUNTER0_EVENT).
• Counter 3: Basic counter that tracks ring events and the occupancy companion event
(COUNTER0_EVENT).
CBo counter 0 can increment by a maximum of 20 per cycle; counters 1-3 can increment by 1 per
cycle.
Some uncore performance events that monitor transaction activities require additional details that
must be programmed in a filter register. Each Cbo provides one filter register and allows only one
such event be programmed at a given time, see Section 2.3.3.3.
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per- Sock et
Performance Monitoring Control”
.
2.3.2.1Special Note on CBo Occupancy Events
Although only counter 0 supports occupancy events, it is possible to program coounters 1-3 to
monitor the same occupancy event by selecting the “OCCUPANCY_COUNTER0” event code on
counters 1-3.
This allows:
• Thresholding on all four counters.
While one can monitor no more than one queue at a time, it is possible to setup different queue
occupancy thresholds on each of the four counters. For example, if one wanted to monitor the
IRQ, one could setup thresholds of 1, 7, 14, and 18 to get a picture of the time spent at different
occupancies in the IRQ.
• Average Latency and Average Occupancy
It can be useful to monitor the average occupancy in a queue as well as the average number of
items in the queue. One could program counter 0 to accumulate the occupancy, counter 1 with
the queue’s allocations event, and counter 2 with the OCCUPANCY_COUNTER0 event and a
threshold of 1. Latency could then be calculated by counter 0 / counter 1, and occupancy by
counter 0 / counter 2.
Reference Number: 327043-001 23
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.3.3CBo Performance Monitors
Table 2-8.CBo Performance Monitoring MSRs (Sheet 1 of 4)
C0_MSR_PMON_CTL30x0D13 32CBo 0 PMON Control for Counter 3
C0_MSR_PMON_CTL20x0D12 32CBo 0 PMON Control for Counter 2
C0_MSR_PMON_CTL10x0D11 32CBo 0 PMON Control for Counter 1
C0_MSR_PMON_CTL00x0D10 32CBo 0 PMON Control for Counter 0
Box-Level Control/Status
C0_MSR_PMON_BOX_CTL0x0D0432 CBo 0 PMON Box-Wide Control
C1_MSR_PMON_CTL30x0D33 32CBo 1 PMON Control for Counter 3
C1_MSR_PMON_CTL20x0D32 32CBo 1 PMON Control for Counter 2
C1_MSR_PMON_CTL10x0D31 32CBo 1 PMON Control for Counter 1
C1_MSR_PMON_CTL00x0D30 32CBo 1 PMON Control for Counter 0
Box-Level Control/Status
C1_MSR_PMON_BOX_CTL0x0D2432 CBo 1 PMON Box-Wide Control
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-8.CBo Performance Moni toring MSRs (Sheet 2 of 4)
MSR Name
C2_MSR_PMON_BOX_FILTER0x0D5432 CBo 2 PMON Filter
Generic Counter Control
C2_MSR_PMON_CTL30x0D53 32CBo 2 PMON Control for Counter 3
C2_MSR_PMON_CTL20x0D52 32CBo 2 PMON Control for Counter 2
C2_MSR_PMON_CTL10x0D51 32CBo 2 PMON Control for Counter 1
C2_MSR_PMON_CTL00x0D50 32CBo 2 PMON Control for Counter 0
Box-Level Control/Status
C2_MSR_PMON_BOX_CTL0x0D4432 CBo 2 PMON Box-Wide Control
C3_MSR_PMON_CTL30x0D73 32CBo 3 PMON Control for Counter 3
C3_MSR_PMON_CTL20x0D72 32CBo 3 PMON Control for Counter 2
C3_MSR_PMON_CTL10x0D71 32CBo 3 PMON Control for Counter 1
C3_MSR_PMON_CTL00x0D70 32CBo 3 PMON Control for Counter 0
Box-Level Control/Status
C3_MSR_PMON_BOX_CTL0x0D6432 CBo 3 PMON Box-Wide Control
C4_MSR_PMON_CTL30x0D93 32CBo 4 PMON Control for Counter 3
C4_MSR_PMON_CTL20x0D92 32CBo 4 PMON Control for Counter 2
C4_MSR_PMON_CTL10x0D91 32CBo 4 PMON Control for Counter 1
C4_MSR_PMON_CTL00x0D90 32CBo 4 PMON Control for Counter 0
Box-Level Control/Status
C4_MSR_PMON_BOX_CTL0x0D8432 CBo 4 PMON Box-Wide Control
Reference Number: 327043-001 25
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-8.CBo Performance Monitoring MSRs (Sheet 3 of 4)
C5_MSR_PMON_CTL30x0DB3 32CBo 5 PMON Control for Counter 3
C5_MSR_PMON_CTL20x0DB2 32CBo 5 PMON Control for Counter 2
C5_MSR_PMON_CTL10x0DB1 32CBo 5 PMON Control for Counter 1
C5_MSR_PMON_CTL00x0DB0 32CBo 5 PMON Control for Counter 0
Box-Level Control/Status
C5_MSR_PMON_BOX_CTL0x0DA432 CBo 5 PMON Box-Wide Control
C6_MSR_PMON_CTL30x0DD3 32CBo 6 PMON Control for Counter 3
C6_MSR_PMON_CTL20x0DD2 32CBo 6 PMON Control for Counter 2
C6_MSR_PMON_CTL10x0DD1 32CBo 6 PMON Control for Counter 1
C6_MSR_PMON_CTL00x0DD0 32CBo 6 PMON Control for Counter 0
Box-Level Control/Status
C6_MSR_PMON_BOX_CTL0x0DC432 CBo 6 PMON Box-Wide Control
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-8.CBo Performance Moni toring MSRs (Sheet 4 of 4)
MSR Name
C7_MSR_PMON_CTL30x0DF3 32CBo 7 PMON Control for Counter 3
C7_MSR_PMON_CTL20x0DF2 32CBo 7 PMON Control for Counter 2
C7_MSR_PMON_CTL10x0DF1 32CBo 7 PMON Control for Counter 1
C7_MSR_PMON_CTL00x0DF0 32CBo 7 PMON Control for Counter 0
Box-Level Control/Status
C7_MSR_PMON_BOX_CTL0x0DE432 CBo 7 PMON Box-Wide Control
MSR
Address
Size
(bits)
Description
2.3.3.1CBo Box Level PMON State
The following registers represent the state governing all box-level PMUs in the CBo.
In the case of the CBo, the Cn_MSR_PMON_BOX_CTL register governs what happens when a freeze
signal is received (.frz_en). It also provides the ability to manually freeze the counters in the box
(.frz) and reset the generic state (.rst_ctrs and .rst_ctrl).
Table 2-9.Cn_MSR_PMON_BOX_CTL Register – Field Definitions
FieldBitsAttr
rsv31:18RV0 Reserved (?)
rsv17RV0 Reserved; SW must write to 0 else behavior is undefined.
frz_en16WO0 Freeze Enable.
HW
Reset
Val
Description
If set to 1 and a freeze signal is received, the counters will be
stopped or ‘frozen’, else the freeze signal will be ignored.
rsv15:9RV0 Reserved (?)
frz8WO0 Freeze.
If set to 1 and the .frz_en is 1, the counters in this box will be
When set to 1, the Counter Registers will be reset to 0.
rst_ctrl0WO0 Reset Control.
U
When set to 1, the Counter Control Registers will be reset to 0.
2.3.3.2CBo PMON state - Counter/Control Pairs
The following table defines the layout of the CBo performance monitor control registers. The main
task of these configuration registers is to select the event to be monitored by their respective data
counter (.ev_sel, .umask). Additional control bits are provided to shape the incoming events (e.g.
.invert, .edge_det, .thresh) as well as provide additional functionality for monitoring software (.rst).
Table 2-10. Cn_MSR_PMON_CTL{3-0} Re gister – Field Definitions (Sheet 1 of 2)
FieldBitsAttr
thresh31:24RW-V0 Threshold used in counter comparison.
HW
Reset
Val
Description
Reference Number: 327043-001 27
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-10. Cn_MSR_PMON_CTL{3-0} Register – Field Definitions (Sheet 2 of 2)
FieldBitsAttr
invert23RW-V0 Invert comparison against Threshold.
en22RW-V0 Local Counter Enable.
rsv21:20RV0 Reserved; SW must write to 0 else behavior is undefined.
tid_en19RW-V0 TID Filter Enable
edge_det18RW-V0 When set to 1, rather than measuring the event in each cycle it
rst17WO0 When set to 1, the corresponding counter will be cleared to 0.
rsv16RV0 Reserved. SW must write to 0 else behavior is undefined.
umask15:8RW-V0 Select subevents to be counted within the selected event.
ev_sel7:0RW-V0 Select event to be counted.
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshol d?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
is active, the corresponding counter will incr ement when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
The CBo performance monitor data registers are 44b wide. Should a counter overflow (a carry out
from bit 43), the counter will wrap and continue to collect events.If accessible, software can
continuously read the data registers without disabling event collection.
Table 2-11. Cn_MSR_PMON_CTR{3-0} Register – Field Definitions
In addition to generic event counting, each CBo provides a MATCH register that allows a user to filter
various traffic as it applies to specific events (see Event Section for more information). LLC_LOOKUP
may be filtered by the cacheline state, QPI_CREDITS may be filtered by link while TOR_INSERTS and
TOR_OCCUPANCY may be filtered by the opcode of the queued request as well as the corresponding
NodeID.
Any of the CBo events may be filtered by Thread/Core-ID. To do so, the control register’s .tid_en bit
must be set to 1 and the tid field in the FILTER register filled out.
28Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Note:Not all transactions can be associated with a specific thread. For example, when a
snoop triggers a WB, it does not have an associated thread. Transactions that are
associated with PCIe will come from “0x1E” (b11110).
Note:Only one of these filtering criteria may be applied at a time.
Table 2-12. Cn_MSR_PMON_BOX_FILTER Register – Field Definitions
FieldBitsAtrtr
opc
(7b IDI Opcode?
w/top 2b 0x3)
state22:18RW0 Select state to monitor for LLC_LOOKUP event. Setting multiple
NOTE: Only tracks opcodes that come from the IRQ. It is not
possible to track snoops (from IPQ) or other transactions from
the ISMQ.
bits in this field will allow a user to track multiple states.
b1xxxx - ‘F’ state.
bx1xxx - ‘M’ state
bxx1xx - ‘E’ state.
bxxx1x - ‘S’ state.
bxxxx1 - ‘I’ state.
NID is a mask filter with each bit representing a different Node in
the system. 0x01 would filter on NID 0, 0x2 would filter on NID
1, etc
[0] Thread 1/0
When .tid_en is 0; the specified counter will count ALL events
Thread-ID 0xF is reserved for non- associated requests such as: -
LLC victims - PMSeq - External Snoops
Refer to Table 2-144, “Opcodes (Alphabetical Listing)” for definitions of the opcodes found in the
following table.
Table 2-13. Opcode Match by IDI Packet Type for Cn_MSR_PMON_BOX_FILTER.opc (Sheet
1 of 2)
opc
Value
0x180RFODemand Data RFO
0x181CRdDemand Code Read
0x182DRdDemand Data Read
0x187PRdPartial Reads (UC)
0x18CWCiLFStreaming Store - Full
0x18DWCiLStreaming Store - Partial
0x190PrefRFOPrefetch RFO into LLC but don’t pass to L2. Includes Hints
0x191PrefCodePrefetch Code into LLC but don’t pass to L2. Includes Hints
0x192PrefDataPrefetch Data into LLC but don’t pass to L2. Includes Hints
Reference Number: 327043-001 29
OpcodeDefn
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-13. Opcode Match by IDI Packet Type for Cn_MSR_PMON_BOX_FILTER.opc (Sheet
2 of 2)
opc
Value
0x194PCIWiLFPCIe Write (non-allocating)
0x195PCIPRdPCIe UC Read
0x19CPCIItoMPCIe Write (allocating)
0x19EPCIRdCurPCIe read current
0x1C4WbMtoIRequest writeback Modified invalidate line
0x1C5WbMtoERequest writeback Modified set to Exclusive
0x1C8ItoMRequest Invalidate Line
0x1E4PCINSRdPCIe Non-Snoop Read
0x1E5PCINSWrPCIe Non-Snoop Write (partial)
0x1E6PCINSWrFPCIe Non-Snoop Read (full)
OpcodeDefn
2.3.4CBo Performance Monitoring Events
2.3.4.1An Overview:
The performance monitoring events within the CBo include all events internal to the LLC as well as
events which track ring related activity at the CBo/Core ring stops.
CBo performance monitoring events can be used to track LLC access rates, LLC hit/miss rates, LLC
eviction and fill rates, and to detect evidence of back pressure on the LLC pipelines. In addition, the
CBo has performance monitoring events for tracking MESI state transitions that occur as a result of
data sharing across sockets in a multi-socket system. And finally, there are events in the CBo for
tracking ring traffic at the CBo/Core sink inject points.
Every event in the CBo is from the point of view of the LLC and is not associated with any specific core
since all cores in the socket send their LLC transactions to all CBos in the socket. However, the PMON
logic in the CBo provides a thread-id field in the Cn_MSR_PMON_BOX_FILTER register which can be
applied to the CBo events to obtain the interactions between specific cores and threads.
There are separate sets of counters for each CBo instance. For any event, to get an aggregate count
of that event for the entire LLC, the counts across the CBo instances must be added together. The
counts can be averaged across the CBo instances to get a view of the typical count of an event from
the perspective of the individual CBos. Indiv idual per-CBo deviations from the a ver age can be used to
identify hot-spotting across the CBos or other evidences of non-uniformity in LLC behavior across the
CBos. Such hot-spotting should be rare, though a repetitive polling on a fixed physical address is one
obvious example of a case where an analysis of the deviations across the CBos would indicate hotspotting.
2.3.4.2Acronyms frequently used in CBo Events:
The Rings:
AD (Address) Ring - Core Read/Write Requests and Intel QPI Snoops. Carries Intel QPI requests and
snoop responses from C to Intel® QPI.
BL (Block or Data) Ring - Data == 2 transfers for 1 cache line
30Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
AK (Acknowledge) Ring - Acknowledges Intel® QPI to CBo and CBo to Core. Carries snoop responses
from Core to CBo.
IV (Invalidate) Ring - CBo Snoop requests of core caches
Internal CBo Queues:
IRQ - Ingress Request Queue on AD Ring. Associated with requests from core.
IPQ - Ingress Probe Queue on AD Ring. Associated with snoops from Intel® QPI LL.
ISMQ - Ingress Subsequent Messages (response queue). Associated with messages responses to
ingress requests (e.g. data responses, Intel QPI complete messages, core snoop response messages
and GO reset queue).
TOR - Table Of Requests. Tracks pending CBo transactions.
RxR (aka IGR) - “Receive from Ring” referring to Ingress (requests from the Cores) queues.
TxR (aka EGR) - “Transmit to Ring” referring to Egress (requests headed for the Ring) queues.
2.3.4.3The Queues:
There are several internal occupancy queue counters, each of which is 5bits wide and dedicated to its
queue: IRQ, IPQ, ISMQ, QPI_IGR, IGR, EGR and the TOR.
2.3.5CBo Events Ordered By Code
The following table summarizes the directly measured CBO Box events.
Table 2-14. Performance Monitor Events for CBO (Sheet 1 of 2)
Symbol Name
CLOCKTICKS0x000-31Uncore Clocks
TxR_INSERTS0x020-11Egress Allocations
TxR_ADS_USED0x040-11
RING_BOUNCES0x050-11Number of LLC responses that bounced on
RING_SRC_THRTL0x070-11
RxR_OCCUPANCY0x11020Ingress Occupancy
RxR_EXT_STARVED0x120-11Ingress Arbiter Blocking Cycles
RxR_INSERTS0x130-11Ingress Allocations
RING_AD_USED0x1B2-31AD Ring In Use
RING_AK_USED0x1C2-31AK Ring In Use
RING_BL_USED0x1D2-31BL Ring in Use
RING_IV_USED0x1E2-31BL Ring in Use
COUNTER0_OCCUPANCY0x1F1-320Counter 0 Occupancy
ISMQ_DRD_MISS_OCC0x210-120
RxR_IPQ_RETRY0x310-11Probe Queue Retries
RxR_IRQ_RETRY0x320-11Ingress Request Queue Rejects
Event
Code
Ctrs
Max
Inc/
Cyc
Description
the Ring.
Reference Number: 327043-001 31
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-14. Performance Monitor Events for CBO (Sheet 2 of 2)
The following table summarizes metrics commonly calculated from CBO Box events.
Table 2-15. Metrics Derived from CBO Events (Sheet 1 of 3)
Symbol Name:
Definition
AVG_INGRESS_DEPTH:
Average Depth of the Ingress Queue
through the sample interval
AVG_INGRESS_LATENCY:
Average Latency of Requests through the
Ingress Queue in Uncore Clocks
AVG_INGRESS_LATENCY_WHEN_NE:
Average Latency of Requests through the
Ingress Queue in Uncore Clocks when Ingress
Queue has at least one entry
AVG_TOR_DRDS_MISS_WHEN_NE:
Average Number of Data Read Entries that
Miss the LLC when the TOR is not empty.
AVG_TOR_DRDS_WHEN_NE:
Average Number o f Data Re ad Entries when
the TOR is not empty.
AVG_TOR_DRD_HIT_LATENCY:
Average Latency of Data Reads through the
TOR that hit the LLC
AVG_TOR_DRD_LATENCY:
Average Latency of Data Read Entries
making their way through the TOR
AVG_TOR_DRD_LOC_MISS_LATENCY:
Average Latency of Data Reads through the
TOR that miss the LLC and were satsified by
Locally HOMed Memory. Only valid at
processor level == don't add counts across
Cbos. NOTE: Count imperfect. Will be
polluted by remote hits where memory's
home node is local memory.
AVG_TOR_DRD_MISS_LATENCY:
Average Latency of Data Reads through the
TOR that miss the LLC
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-15. Metrics Derived from CBO Events (Sheet 2 of 3)
Symbol Name:
Definition
AVG_TOR_DRD_REM_MISS_LATENCY:
Average Latency of Data Reads through the
TOR that miss the LLC and were satsified by a
Remote cache or Remote Memory . Only valid
at processor level == don't add counts across
Cbos.
CYC_INGRESS_BLOCKED:
Cycles the Ingress Request Queue arbiter
was Blocked
CYC_INGRESS_STARVED:
Cycles the Ingress Request Queue was in
Internal Starvation
CYC_USED_DNEVEN:
Cycles Used in the Down direction, Even
polarity
CYC_USED_DNODD:
Cycles Used in the Down direction, Odd
polarity
CYC_USED_UPEVEN:
Cycles Used in the Up direction, Even
polarity
CYC_USED_UPODD:
Cycles Used in the Up direction, Odd
polarity
INGRESS_REJ_V_INS:
Ratio of Ingress Request Entries that were
rejected vs. inserted
LLC_DRD_MISS_PCT:
LLC Data Read miss ratio
LLC_DRD_RFO_MISS_TO_LOC_MEM:
LLC Data Read and RFO misses satisfied by
locally HOMed memory. Only valid at
processor level == don't add counts across
Cbos. NOTE: Count imperfect. Will be
polluted by remote hits where memory's
home node is local memory.
LLC_DRD_RFO_MISS_TO_REM_MEM:
LLC Data Read and RFO misses satisfied by
a remote cache or remote memory. Only
valid at processor level == don't add counts
across Cbos.
LLC_MPI:
LLC Misses Per Instruction (code, read, RFO
and prefetches)
LLC_PCIE_DATA_BYTES:
LLC Miss Data from PCIe in Number of
Bytes
LLC_RFO_MISS_PCT:
LLC RFO Miss Ratio
MEM_WB_BYTES:
Data written back to memory in Number of
Bytes
Note:LLC_MPI only makes sense when measured either in the processor or at the system
level. There is no correlation between a specific CBo andthe instructions retired in a
specific core. Therefore it is necessary to add the LLC_LOOKUP term across all CBos
and divide by either all instructions retired in a core or all instructions retired across all
cores.
2.3.7CBo Performance Monitor Event List
The section enumerates the performance monitoring events for the CBO Box.
CLOCKTICKS
• Title: Uncore Clocks
• Category: UCLK Events
• Event Code: 0x00
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition:
COUNTER0_OCCUPANCY
• Title: Counter 0 Occupancy
• Category: OCCUPANCY Events
• Event Code: 0x1F
• Max. Inc/Cyc: 20, Register Restrictions: 1-3
• Definition: Since occupancy counts can only be captured in the Cbo's 0 counter, this event allows a
user to capture occupancy related information by filtering the Cb0 occupancy count captured in
Counter 0. The filtering available is found in the control register - threshold, invert and edge
detect. E.g. setting threshold to 1 can effectively monitor how many cycles the monitored queue
has an entry.
34Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
ISMQ_DRD_MISS_OCC
• Title:
• Category: ISMQ Events
• Event Code: 0x21
• Max. Inc/Cyc: 20, Register Restrictions: 0-1
• Definition:
LLC_LOOKUP
• Title: Cache Lookups
• Category: CACHE Events
• Event Code: 0x34
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Counts the number of times the LLC was accessed - this includes code, data,
prefetches and hints coming from L2. This has numerous filters available. Note the non-standard
filtering equation. This event will count requests that lookup the cache multiple times with multiple
increments. One must ALWAYS set filter mask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.
• NOTE: Bit 0 of the umask must always be set for this event. This allows us to match a given state
(or states). The state is programmed in Cn_MSR_PMON_BOX_FIL TER.state. The state field is a bit
mask, so you can select (and monitor) multiple states at a time. 0 = I (miss), 1 = S, 2 = E, 3 = M,
4 = F. For example, if you wanted to monitor F and S hits, you could set 10010b in the 5-bit state
field. To monitor any lookup, set the field to 0x1F.
Table 2-16. Unit Masks for LLC_LOOKUP
Extension
DATA_READb00000011 CBoFilter[2
WRITEb00000101 CBoFilter[2
REMOTE_SNOOPb00001001 CBoFilter[2
NIDb01000001 CBoFilter[2
umask
[15:8]
Filter DepDescription
2:18]
2:18]
2:18]
2:18],
CBoFilter[1
7:10]
Data Read Request:
Read transactions
Write Requests:
This includes all write transactions -- both Cachable
and UC.
External Snoop Request:
Filters for only snoop requests coming from the remote
socket(s) through the IPQ.
RTID:
Match a given RTID destination NID. The NID is
programmed in Cn_MSR_PMON_BOX_FILTER.nid. In
conjunction with STATE = I, it is possible to monitor
misses to specific NIDs in the system.
LLC_VICTIMS
• Title: Lines Victimized
• Category: CACHE Events
• Event Code: 0x37
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Counts the number of lines that were victimized on a fill. This can be filtered by the
state that the line was in.
Table 2-17. Unit Masks for LLC_VICTIMS (Sheet 1 of 2)
Extension
M_STATEbxxxxxxx1Lines in M state
E_STATEbxxxxxx1xLines in E state
Reference Number: 327043-001 35
umask
[15:8]
Filter DepDescription
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-17. Unit Masks for LLC_VICTIMS (Sheet 2 of 2)
Extension
S_STATEbxxxxx1xxLines in S State
MISSbxxxx1xxx
NIDbx1xxxxxxCBoFilter[1
umask
[15:8]
7:10]
MISC
• Title: Cbo Misc
• Category: MISC Events
• Event Code: 0x39
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Miscellaneous events in the Cbo.
Table 2-18. Unit Masks for MISC
Extension
RSPI_WAS_FSEbxxxxxxx1 Silent Snoop Eviction:
WC_ALIASINGbxxxxxx1xWrite Combining Aliasing:
STARTEDbxxxxx1xx
RFO_HIT_Sbxxxx1xxx RFO HitS:
umask
[15:8]
Counts the number of times when a Snoop hit in FSE states and
triggered a silent eviction. This is useful because this information is
lost in the PRE encodings.
Counts the number of times that a USWC write (WCIL(F)) transaction
hit in the LLC in M state, triggering a WBMtoI followed by the USWC
write. This occurs when there is WC aliasing.
Number of times that an RFO hit in S state. This is useful for
determining if it might be good for a workload to use RspIWB instead
of RspSWB.
Filter DepDescription
Victimized Lines that Match NID:
The NID is programmed in
Cn_MSR_PMON_BOX_FILTER. nid. In conjunction with
STATE = I, it is possible to monitor misses to specific
NIDs in the system.
Description
RING_AD_USED
• Title: AD Ring In Use
• Category: RING Events
• Event Code: 0x1B
• Max. Inc/Cyc: 1, Register Restrictions: 2-3
• Definition: Counts the number of cycles that the AD ring is being used at this ring stop. This
includes when packets are passing by and when packets are being sunk, but does not include when
packets are being sent from the ring stop. We really hav e two rings in JKT -- a clockwise ring and a
counter-clockwise ring. On the left side of the ring, the "UP" direction is on the clockwise ring and
"DN" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half
of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In
other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because
they are on opposite sides of the ring.
36Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-19. Unit Masks for RING_AD_USED
Extension
UP_EVENbxxxxxxx1Up and Even:
UP_ODDbxxxxxx1xUp and Odd:
DOWN_EVENbxxxxx1xxDown and Even:
DOWN_ODDbxxxx1xxxDown and Odd:
umask
[15:8]
Description
Filters for the Up and Even ring polarity.
Filters for the Up and Odd ring polarity.
Filters for the Down and Even ring polarity.
Filters for the Down and Odd ring polarity.
RING_AK_USED
• Title: AK Ring In Use
• Category: RING Events
• Event Code: 0x1C
• Max. Inc/Cyc: 1, Register Restrictions: 2-3
• Definition: Counts the number of cycles that the AK ring is being used at this ring stop. This
includes when packets are passing by and when packets are being sunk, but does not include when
packets are being sent from the ring stop.We really have two rings in JKT -- a clockwise ring and a
counter-clockwise ring. On the left side of the ring, the "UP" direction is on the clockwise ring and
"DN" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half
of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In
other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because
they are on opposite sides of the ring.
Table 2-20. Unit Masks for RING_AK_USED
Extension
UP_EVENbxxxxxxx1Up and Even:
UP_ODDbxxxxxx1xUp and Odd:
DOWN_EVENbxxxxx1xxDown and Even:
DOWN_ODDbxxxx1xxxDown and Odd:
umask
[15:8]
Description
Filters for the Up and Even ring polarity.
Filters for the Up and Odd ring polarity.
Filters for the Down and Even ring polarity.
Filters for the Down and Odd ring polarity.
RING_BL_USED
• Title: BL Ring in Use
• Category: RING Events
• Event Code: 0x1D
• Max. Inc/Cyc: 1, Register Restrictions: 2-3
• Definition: Counts the number of cycles that the BL ring is being used at this ring stop. This
includes when packets are passing by and when packets are being sunk, but does not include when
packets are being sent from the ring stop.We really have two rings in JKT -- a clockwise ring and a
counter-clockwise ring. On the left side of the ring, the "UP" direction is on the clockwise ring and
"DN" is on the counter-clockwise ring. On the right side of the ring, this is reversed. The first half
of the CBos are on the left side of the ring, and the 2nd half are on the right side of the ring. In
other words (for example), in a 4c part, Cbo 0 UP AD is NOT the same ring as CBo 2 UP AD because
they are on opposite sides of the ring.
Reference Number: 327043-001 37
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-21. Unit Masks for RING_BL_USED
Extension
UP_EVENbxxxxxxx1Up and Even:
UP_ODDbxxxxxx1xUp and Odd:
DOWN_EVENbxxxxx1xxDown and Even:
DOWN_ODDbxxxx1xxxDown and Odd:
umask
[15:8]
Filters for the Up and Even ring polarity.
Filters for the Up and Odd ring polarity.
Filters for the Down and Even ring polarity.
Filters for the Down and Odd ring polarity.
RING_BOUNCES
• Title: Number of LLC responses that bounced on the Ring.
• Category: RING Events
• Event Code: 0x05
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition:
Table 2-22. Unit Masks for RING_BOUNCES
Extension
AK_COREbxxxxxx1xAcknowledgements to core
BL_COREbxxxxx1xxData Responses to core
IV_COREbxxxx1xxxSnoops of processor's cache.
umask
[15:8]
Description
Description
RING_IV_USED
• Title: BL Ring in Use
• Category: RING Events
• Event Code: 0x1E
• Max. Inc/Cyc: 1, Register Restrictions: 2-3
• Definition: Counts the number of cycles that the IV ring is being used at this ring stop. This
includes when packets are passing by and when packets are being sunk, but does not include when
packets are being sent from the ring stop. There is only 1 IV ring in JKT. Therefore, if one wants to
monitor the "Even" ring, they should select both UP_EVEN and DN_EVEN. To monitor the "Odd"
ring, they should select both UP_ODD and DN_ODD.
Table 2-23. Unit Masks for RING_IV_USED
Extension
ANYb00001111 Any:
umask
[15:8]
Description
Filters any polarity
RING_SRC_THRTL
• Title:
• Category: RING Events
• Event Code: 0x07
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition:
38Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
RxR_EXT_STARVED
• Title: Ingress Arbiter Blocking Cycles
• Category: INGRESS Events
• Event Code: 0x12
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Counts cycles in external starvation. This occurs when one of the ingress queues is
being starved by the other queues.
Table 2-24. Unit Masks for RxR_EXT_STARVED
Extension
IRQbxxxxxxx1IPQ:
IPQbxxxxxx1xIRQ:
ISMQbxxxxx1xxISMQ:
ISMQ_BIDSbxxxx1xxxISMQ_BID:
umask
[15:8]
Description
IRQ is externally starved and therefore we are blocking the IPQ.
IPQ is externally startved and therefore we are blocking the IRQ.
ISMQ is externally starved and therefore we are blocking both IRQ
and IPQ.
Number of times that the ISMQ Bid.
RxR_INSERTS
• Title: Ingress Allocations
• Category: INGRESS Events
• Event Code: 0x13
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Counts number of allocations per cycle into the specified Ingress queue.
• NOTE: IRQ_REJECTED should not be Ored with the other umasks.
Counts the number of allocations into the IRQ Ord ering FIFO . In JKT,
it is necessary to keep IO requests in order. Therefore, they are
allocated into an ordering FIFO that sits next to the IRQ, and must be
satisfied from the FIFO in order (with respect to each other). This
event, in conjunction with the Occupancy Accumulator event, can be
used to calculate average lifetime in the FIFO. Transactions are
allocated into the FIFO as soon as they enter the Cachebo (and the
IRQ) and are deallocated from the FIFO as soon as they are
deallocated from the IRQ.
RxR_IPQ_RETRY
• Title: Probe Queue Retries
• Category: INGRESS_RETRY Events
• Event Code: 0x31
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Number of times a snoop (probe) request had to retry. Filters exist to cover some of
the common cases retries.
Reference Number: 327043-001 39
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-26. Unit Masks for RxR_IPQ_RETRY
Extension
ANYbxxxxxxx1Any Reject:
FULLbxxxxxx1x No Egress Credits:
ADDR_CONFLICTbxxxxx1xx Address Conflict:
QPI_CREDITSbxxx1xxxxNo Intel® QPI Credits
umask
[15:8]
Counts the number of times that a request form the IPQ was retried
because of a TOR reject. TOR r ejects from the IPQ can b e caused b y
the Egress being full or Address Conflicts.
Counts the number of times that a request form the IPQ was retried
because of a TOR reject from the Egress being full. IPQ requests
make use of the AD Egress for regular respo nses, the BL egress to
forward data, and the AK egress to return credits.
Counts the number of times that a request form the IPQ was retried
because of a TOR reject from an address conflicts. Address conflicts
out of the IPQ should be rare. They will generally only occur if two
different sockets are sending requests to the same address at the
same time. This is a true "conflict" case, unlike the IPQ Address
Conflict which is commonly caused by prefetching characteristics.
RxR_IRQ_RETRY
• Title: Ingress Request Queue Rejects
• Category: INGRESS_RETRY Events
• Event Code: 0x32
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition:
Table 2-27. Unit Masks for RxR_IRQ_RETRY (Sheet 1 of 2)
Description
Extension
ANYbxxxxxxx1Any Reject:
FULLbxxxxxx1x No Egress Credits:
ADDR_CONFLICTbxxxxx1xx Address Conflict:
umask
[15:8]
Counts the number of IRQ retries that occur. Requests from the IRQ
are retried if they are rejected from the TOR pipeline for a variety of
reasons. Some of the most common reasons include if the Egress is
full, there are no RTIDs, or there is a Physical Address match to
another outstanding request.
Counts the number of times that a request from the IRQ was retried
because it failed to acquire an entry in the Egress. The egress is the
buffer that queues up for allocating onto the ring. IRQ requests can
make use of all four rings and all four Egresses. If any of the queues
that a given request needs to make use of are full, the request will be
retried.
Counts the number of times that a request from the IRQ was retried
because of an address match in the TOR. In order to maintain
coherency, requests to the same address are not allowed to pass
each other up in the Cbo. Therefore, if there is an outstanding
request to a given address, on e cann ot issue another request to that
address until it is complete. This comes up most commonly with
prefetches. Outstanding prefetches occasionally will not complete
their memory fetch and a demand request to the same address will
then sit in the IRQ and get retried until the prefetch fills the data into
the LLC. Therefore, it will not be uncommon to see this case in high
bandwidth streaming workloads when the LLC Prefetcher in the core
is enabled.
Description
40Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-27. Unit Masks for RxR_IRQ_RETRY (Sheet 2 of 2)
Extension
RTIDbxxxx1xxxNo RTIDs:
QPI_CREDITSbxxx1xxxxNo Intel® QP I Credits:
umask
[15:8]
Counts the number of times that requests from the IRQ were retried
because there were no RTIDs available. RTIDs are required after a
request misses the LLC and needs to send sno ops and/or reque sts to
memory. If there are no RTIDs available, requests will queue up in
the IRQ and retry until one becomes available. Note that there are
multiple RTID pools for the different sockets. There may be cases
where the local RTIDs are all used, but requests destined for remote
memory can still acquire an RTID because there are remote RTIDs
available. This event does not provide any filtering for this case.
Number of requests rejects because of lack of Intel® QPI Ingress
credits. These credits are required in order to send transactions to
the Intel® QPI agent. Please see the QPI_IGR_CREDITS events for
more information.
Description
RxR_ISMQ_RETRY
• Title: ISMQ Retries
• Category: INGRESS_RETRY Events
• Event Code: 0x33
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Number of times a transaction flowing through the ISMQ had to retry . Transaction pass
through the ISMQ as responses for requests that already exist in the Cbo. Some examples include:
when data is returned or when snoop responses come back from the cores.
Table 2-28. Unit Masks for RxR_ISMQ_RETRY
Extension
ANYbxxxxxxx1Any Reject:
FULLbxxxxxx1x No Egress Credits:
RTIDbxxxx1xxxNo RTIDs:
QPI_CREDITSbxxx1xxxxNo Intel® QP I Credits
IIO_CREDITSbxx1xxxxxNo IIO Credits:
umask
[15:8]
Counts the total number of times that a request from the ISMQ
retried because of a TOR reject. ISMQ requests generally will not
need to retry (or at least ISMQ retries are less common than IRQ
retries). ISMQ requests will retry if they are not able to acquire a
needed Egress credit to get onto the ring, or for cache evictions that
need to acquire an RTID. Most ISMQ requests already hav e an RT ID,
so eviction retries will be less common here.
Counts the number of times that a request from the ISMQ retried
because of a TOR reject caused by a lack of Egress credits. The
egress is the buffer that queues up for allocating onto the ring. If
any of the Egress queues that a given request needs to make use of
are full, the request will be retried.
Counts the number of times that a request from the ISMQ retried
because of a TOR reject caused by no R TIDs. M-state cache evictions
are serviced through the ISMQ, and must acquire an RTID in order to
write back to memory . If no RTIDs are available, they will be retried.
Number of times a request attempted to acquire the NCS/NCB credit
for sending messages on BL to the IIO. There is a single credit in
each CBo that is shared between the NCS and NCB message classes
for sending transactions on the BL ring (such as read data) to the
IIO.
Description
Reference Number: 327043-001 41
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
RxR_OCCUPANCY
• Title: Ingress Occupancy
• Category: INGRESS Events
• Event Code: 0x11
• Max. Inc/Cyc: 20, Register Restrictions: 0
• Definition: Counts number of entries in the specified Ingress queue in each cycle.
• NOTE: IRQ_REJECTED should not be Ored with the other umasks.
Accumulates the number of used entries in the IRQ Ordering FIFO in
each cycle. In JKT, it is necessary to keep IO requests in order.
Therefore, they are allocated into an ordering FIFO that sits next to
the IRQ, and must be satisfied from the FIFO in order (with respect
to each other). This event, in c onjunction with the Allocations ev ent,
can be used to calculate average lifetime in the FIFO. This event can
be used in conjunction with the Not Empty event to c alculate aver age
queue occupancy. T r ansactions are allocated in to the FIFO as so on as
they enter the Cachebo (and the IRQ) and are deallocated from the
FIFO as soon as they are deallocated from the IRQ.
TOR_INSERTS
• Title: TOR Inserts
• Category: TOR Events
• Event Code: 0x35
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Counts the number of entries successfuly inserted into the TOR that match qualifica-
tions specified by the subevent. There are a number of subevent 'filters' but only a subset of the
subevent combinations are valid. Subevents that require an opcode or NID match require the
Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD
Local Misses, one should select "MISS_OPC_MATCH" and set Cn_MSR_PMON_BOX_FILTER.opc to
DRD (0x182).
Table 2-30. Unit Masks for TOR_INSERTS (Sheet 1 of 2)
Extension
OPCODEb00000001 CBoFilter[3
EVICTIONb00000100Evictions:
WBb00010000Writebacks:
42Reference Number: 327043-001
umask
[15:8]
Filter DepDescription
1:23]
Opcode Match:
Transactions inserted into the TOR that match an
opcode (matched by
Cn_MSR_PMON_BOX_FILTER.opc)
Eviction transactions inserted into the TOR. Evictions
can be quick, such as when the line is in the F, S, or E
states and no core valid bits are set. They can also b e
longer if either CV bits are set (so the cores need to be
snooped) and/or if there is a HitM (in which case it is
necessary to write the request out to memory).
Write transactions inserted into the TOR. This does
not include "RFO", but actual operations that contain
data being sent from the core.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-30. Unit Masks for TOR_INSERTS (Sheet 2 of 2)
Extension
MISS_OPCODEb00000011 CBoFilter[3
MISS_ALLb00001010Miss All:
NID_OPCODEb01000001 CBoFilter[3
NID_EVICTIONb01000100 CBoFilter[1
NID_ALLb01001000 CBoFilter[1
NID_WBb01010000 CBoFilter[1
NID_MISS_OPCODEb01000011 CBoFilter[3
NID_MISS_ALLb01001010 CBoFilter[1
umask
[15:8]
Filter DepDescription
1:23]
1:23],
CBoFilter[1
7:10]
7:10]
7:10]
7:10]
1:23],
CBoFilter[1
7:10]
7:10]
Miss Opcode Match:
Miss transactions inserted into the TOR that match an
opcode.
All Miss requests inserted into the TOR. 'Miss' means
the allocation requires an RTID. This generally means
that the request was sent to memory or MMIO.
NID and Opcode Matched:
Transactions inserted into the TOR that match a NID
and an opcode.
NID Matched Evictions:
NID matched eviction transactions inserted into the
TOR.
NID Matched:
All NID matched (matches an RTID destination)
transactions inserted into the TOR. The NID is
programmed in Cn_MSR_PMON_BOX_FILTER.nid. In
conjunction with STATE = I, it is possible to monitor
misses to specific NIDs in the system.
NID Matched Writebacks:
NID matched write transactions inserted into the TOR.
NID and Opcode Matched Miss:
Miss transactions inserted into the TOR that match a
NID and an opcode.
NID Matched Miss All:
All NID matched miss requests that were inserted into
the TOR.
TOR_OCCUPANCY
• Title: TOR Occupancy
• Category: TOR Events
• Event Code: 0x36
• Max. Inc/Cyc: 20, Register Restrictions: 0
• Definition: For each cycle, this event accumulates the number of valid entries in the TOR that
match qualifications specified by the subevent. There are a number of subevent 'filters' but only a
subset of the subevent combinations are valid. Subevents that require an opcode or NID match
require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to
count DRD Local Misses, one should select "MISS_OPC_MATCH" and set
Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182)
Table 2-31. Unit Masks for TOR_OCCUPANCY (Sheet 1 of 2)
Extension
OPCODEb00000001 CBoFilter[3
EVICTIONb00000100Evictions:
umask
[15:8]
Filter DepDescription
1:23]
Opcode Match:
TOR entries that match an opcode (matched by
Cn_MSR_PMON_BOX_FILTER.opc).
Number of outstanding eviction transactions in the
TOR. Evictions can be quick, such as when the line is
in the F, S, or E states and no core valid bits are set.
They can also be longer if either CV bits are set (so the
cores need to be snooped) and/or if the re is a HitM (in
which case it is necessary to write the request out to
memory).
Reference Number: 327043-001 43
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-31. Unit Masks for TOR_OCCUPANCY (Sheet 2 of 2)
Extension
ALLb00001000Any:
MISS_OPCODEb00000011 CBoFilter[3
MISS_ALLb00001010Miss All:
NID_OPCODEb01000001 CBoFilter[3
NID_EVICTIONb01000100 CBoFilter[1
NID_ALLb01001000 CBoFilter[1
NID_MISS_OPCODEb01000011 CBoFilter[3
NID_MISS_ALLb01001010 CBoFilter[1
umask
[15:8]
Filter DepDescription
All valid TOR entries. This includes requests that
reside in the TOR for a short time, such as LLC Hits
that do not need to snoop cores or requests that get
rejected and have to be retried through one of the
ingress queues. The TOR is more commonly a
bottleneck in skews with smaller core counts, where
the ratio of RTIDs to TOR entries is larger. Note that
there are reserved TOR entries for various request
types, so it is possible that a given request type be
blocked with an occupancy that is less than 20. Also
note that generally requests will not be able to
arbitrate into the TOR pipeline if there are no available
TOR slots.
1:23]
1:23],
CBoFilter[1
7:10]
7:10]
7:10]
1:23],
CBoFilter[1
7:10]
7:10]
Miss Opcode Match:
TOR entries for miss transactions that match an
opcode. This generally means that the request was
sent to memory or MMIO.
Number of outstanding miss requests in the TOR.
'Miss' means the allocation requires an RTID. This
generally means that the request was sent to memory
or MMIO.
NID and Opcode Matched:
TOR entries that match a NID and an opcode.
NID Matched Evictions:
Number of outstanding NID matched eviction
transactions in the TOR .
NID Matched:
Number of NID matched outstanding requests in the
TOR. The NID is programmed in
Cn_MSR_PMON_BOX_FILTER.nid.In conjunction with
STATE = I, it is possible to monitor misses to specific
NIDs in the system.
NID and Opcode Matched Miss:
Number of outstanding Miss requests in the TOR that
match a NID and an opcode.
NID Matched:
Number of outstanding Miss requests in the TOR that
match a NID.
TxR_ADS_USED
• Title:
• Category: EGRESS Events
• Event Code: 0x04
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition:
TxR_INSERTS
• Title: Egress Allocations
• Category: EGRESS Events
• Event Code: 0x02
• Max. Inc/Cyc: 1, Register Restrictions: 0-1
• Definition: Number of allocations into the Cbo Egress. The Egress is used to queue up requests
destined for the ring.
44Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-32. Unit Masks for TxR_INSERTS
Extension
AD_CACHEbxxxxxxx1 AD - Cachebo:
AK_CACHEbxxxxxx1xAK - Cachebo:
BL_CACHEbxxxxx1xxBL - Cacheno:
IV_CACHEbxxxx1xxxIV - Cachebo:
AD_COREbxxx1xxxxAD - Corebo:
AK_COREbxx1xxxxxAK - Corebo:
BL_COREbx1xxxxxxBL - Corebo:
umask
[15:8]
Description
Ring transactions from the Cachebo destined for the AD ring. Some
example include outbound requests, snoop requests, and snoop
responses.
Ring transactions from the Cachebo destined for the AK ring. This is
commonly used for credit returns and GO responses.
Ring transactions from the Cachebo destined for the BL ring. This is
commonly used to send data from the cache to various destinations.
Ring transactions from the Cachebo destined for the IV ring. This is
commonly used for snoops to the cores.
Ring transactions from the Corebo destined for the AD ring. This is
commonly used for outbound requests.
Ring transactions from the Corebo destined for the AK ring. This is
commonly used for snoop responses coming from the core and
destined for a Cachebo.
Ring transactions from the Corebo destined for the BL ring. This is
commonly used for transfering writeback data to the cache.
2.4Home Agent (HA) Performance Monitoring
2.4.1Overview of the Home Agent
The HA is responsible for the protocol side of memory interactions, including coherent and noncoherent home agent protocols (as defined in the Intel® QuickPath Interconnect Specification).
Additionally, the HA is responsible for ordering memory reads/writes, coming in from the modular
Ring, to a given address such that the iMC (memory controller).
In other words, it is the coherency agent responsible for guarding the memory controller. All requests
for memory attached to the coupled iMC must first be ordered through the HA. As such, it provides
several functions:
• Interface between Ring and iMC:
Regardless of the memory technology, the Home Agent receives memory read and write requests
from the modular ring. It checks the memory transaction type, detects and resolves the coherent
conflict, and finally schedules a corresponding transaction to the memory controller. It is also
responsible for returning the response and completion to the requester.
• Conflict Manager:
All requests must go through conflict management logic in order to ensure coherent consistency.
In other words, the view of data must be the same across all coherency agents regardless of who
is reading or modifying the data. On Intel® QPI, the home agent is responsible for tracking all
requests to a given address and ensuring that the results are consistent.
• Memory Access Ordering Control:
• The Home Agent guarantees the ordering of RAW, WAW and W AR. Home Snoop Protocol Support
(for parts with Directory Support):
Reference Number: 327043-001 45
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
The Home Agent supports Intel® QPI’s home snoop protocol by initiating snoops on behalf of
requests. Closely tied to the directory feature, the home agent has the ability to issue snoops to
the peer caching agents for requests based on the directory information.
• Directory Support:
In order to satisfy performance requirements for the 4 socket and scalable DP segments, the
Home Agent implements a snoop directory which tracks all cachelines residing behind this Home
Agent. This directory is used to reduce the snoop traffic when Intel® QPI bandwidth would
otherwise be strained. The directory is not intended for typical 2S topologies.
2.4.2HA Performance Monitoring Overview
The HA Box supports event monitoring through four 48-bit wide counters
(HA_PCI_PMON_CTR{3:0}). Each of these counters can be programmed (HA_PCI_PMON_CTL{3:0})
to capture any HA event. The HA counters will increment by a maximum of 8b per cycle.
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per-Socket
Performance Monitoring Control”.
2.4.3HA Performance Monitors
Table 2-33. HA Performance Monitoring MSRs
Register Name
PCICFG Base AddressDev:Func
HA PMON RegistersD14:F1
Box-Level Control/Status
HA_PCI_PMON_BOX_CTLF432 HA PMON Box-Wide Control
Generic Counter Control
HA_PCI_PMON_CTL3E4 32HA PMON Control for Counter 3
HA_PCI_PMON_CTL2E0 32HA PMON Control for Counter 2
HA_PCI_PMON_CTL1DC 32HA PMON Control for Counter 1
HA_PCI_PMON_CTL0D8 32HA PMON Control for Counter 0
HA_PCI_PMON_BOX_OPCODEMATCH4832 HA PMON Opcode Match
HA_PCI_PMON_BOX_ADDRMATCH14432 HA PMON Address Match 1
HA_PCI_PMON_BOX_ADDRMATCH04032 HA PMON Address Match 0
PCICFG
Address
Size
(bits)
Description
2.4.3.1HA Box Level PMON State
The following registers represent the state governing all box-level PMUs in the HA Box.
46Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
In the case of the HA, the HA_PCI_PMON_BOX_CTL register governs what happens when a freeze
signal is received (.frz_en). It also provides the ability to manually freeze the counters in the box
(.frz).
Table 2-34. HA_PCI_PMON_BOX_CTL Regi ster – Field Definitions
FieldBitsAttr
rsv31:18RV0 Reserved (?)
rsv17RV0 Reserved; SW must write to 0 else behavior is undefined.
frz_en16WO0 Freeze Enable.
rsv15:9RV0 Reserved (?)
frz8WO0 Freeze.
rsv7:2RV0 Reserved (?)
rsv1:0RV0 Reserved; SW must write to 0 else behavior is undefined.
HW
Reset
Val
Description
If set to 1 and a freeze signal is received, the counters will be
stopped or ‘frozen’, else the freeze signal will be ignored.
If set to 1 and the .frz_en is 1, the counters in this box will be
frozen.
2.4.3.2HA PMON state - Counter/Control Pairs
The following table defines the layout of the HA performance monitor control registers. The main task
of these configuration registers is to select the event to be monitored by their respective data counter
(.ev_sel, .umask). Additional control bits are provided to shape the incoming events (e.g. .invert,
.edge_det, .thresh).
Table 2-35. HA_PCI_PMON_CTL{3-0} Reg i ster – Field Definitions (Sheet 1 of 2)
FieldBitsAttr
thresh31:24RW-V0 Threshold used in counter comparison.
invert23RW-V0 Invert comparison against Threshold.
en22RW-V0 Local Counter Enable.
rsv21:20RV0 Reserved. SW must write to 0 else behavior is undefined.
rsv19RV0 Reserved (?)
edge_det18RW-V0 When set to 1, rather than measuring the event in each cycle it
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshold?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
is active, the corresponding counter will increment when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Reference Number: 327043-001 47
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-35. HA_PCI_PMON_CTL{3-0} Register – F ie l d Definitions (Sheet 2 of 2)
FieldBitsAttr
rsv17:16RV0 Reserved. SW must write to 0 else behavior is undefined.
umask15:8RW-V0 Select subevents to be counted within the selected event.
ev_sel7:0RW-V0 Select event to be counted.
HW
Reset
Val
Description
The HA performance monitor data registers are 48-bit wide. Should a counter overflow (a carry out
from bit 47), the counter will wrap and continue to collect events.If accessible, software can
continuously read the data registers without disabling event collection.
Table 2-36. HA_PCI_PMON_CTR{3-0} Register – Field Definitions
In addition to generic event counting, each HA provides a pair of Address Match registers and an
Opcode Match register that allow a user to filter incoming packet traffic according to the packet
Opcode, Message Class and Physical Address. The ADDR_OPC_MATCH.FILT event is provided to
capture the filter match as an event. The fields are laid out as follows:
Note:Refer to Table 2-142, “Intel® QuickPath Interconnect Packet Message Classes” and
Table 2-143, “Opcode Match by Message Class” to determine the encodings of the B-
Box Match Register fields.
Table 2-37. HA_PCI_PMON_BOX_OPCODEMATCH Register – Field Definitions
FieldBitsAttr
rsv31:6RV0 Reserved (?)
opc5:0RWS0 Match to this incoming (? which polarity?) opcode
HW
Reset
Val
Description
Table 2-38. HA_PCI_PMON_BOX_ADDRMATCH1 Register – Field Definitions
FieldBitsAttr
rsv31:14RV0 Reserved (?)
hi_addr13:0RWS0 Match to this System Address - Most Significant 14b of cache
HW
Reset
Val
Description
aligned address [45:32]
48Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-39. HA_PCI_PMON_BOX_ADDRMATCH0 Register – Field Definitions
FieldBits
lo_addr31:6RWS0 Match to this System Address - Least Significant 26b of cache
rsv5:0RV0 Reserved (?)
HW
Reset
Val
HW
Reset
Val
Description
aligned address [31:6]
Note:The address comparison always ignores the lower 12 bits of the physical address, even
if they system is interleaving between sockets at the cache-line level. Therefore, this
mask will always match to an OS virtual page, even if only a fraction of that page is
mapped to the Home Agent under investigation. The mask is not adjusted for large
pages, so matches will only be allowed within 4K granularity.
2.4.4HA Performance Monitoring Events
The performance monitoring events within the HA include all events internal to the HA as well as
events which track ring related activity at the HA ring stops. Internal events include the ability to
track Directory Activity, Direct2Core Activity, iMC Read/W rite Traffic, time spent dealing with Conflicts,
etc.
Other notable event types:
•iMC RPQ/WPQ Events
Determine cycles the HA is stuck without credits in to the iMCs read/write queues.
•Ring Stop Events
To track Egress and ring utilization (broken down by direction and ring type) statistics, as well as
ring credits between the HA and Intel® QPI.
• Local/Remote Filtering
A number of HA events is extended to support filtering the origination from a local or remote
caching agent .
• Snoop Latency
2.4.4.1On the Major HA Structures:
The 128-entry TF (Tracker File) holds all transactions that arrive in the HA from the time they arrive
until they are completed and leave the HA. T ransactions could stay in this structure much longer than
they are needed. TF is the critical resource each transaction needs before being sent to the iMC
(memory controller)
TF average occupancy == (valid cnt * 128 / cycles)
TF average latency == (valid cnt * 128 / inserts)
Other Internal HA Queues of Interest:
TxR (aka EGR) - The HA has Egress (responses) queues for each ring (AD , AK, BL) as well as queues
to track credits the HA has to push traffic onto those rings.
Reference Number: 327043-001 49
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.4.5HA Box Events Ordered By Code
The following table summarizes the directly measured HA Box events.
Table 2-40. Performance Monitor Events for HA
Symbol Name
CLOCKTICKS0x000-31uclks
REQUESTS0x010-31Read and Write Requests
TRACKER_INSERTS0x060-31Tracker Allocations
CONFLICT_CYCLES0x0B0-31Conflict Checks
DIRECTORY_LOOKUP0x0C0-31Directory Lookups
DIRECTORY_UPDATE0x0D0-31Directory Updates
TxR_AK_NDR0x0E0-31Outbound NDR Ring Transactions
TxR_AD0x0F0-31Outbound NDR Ring Transactions
TxR_BL0x100-31Outbound DRS Ring Transactions to Cache
DIRECT2CORE_COUNT0x110-31Direct2Core Messages Sent
DIRECT2CORE_CYCLES_DISABLED0x120-31Cycles when Direct2Core was Disabled
DIRECT2CORE_TXN_OVERRIDE0x130-31Number of Reads that had Direct2Core
RPQ_CYCLES_NO_REG_CREDITS0x150-34iMC RPQ Credits Empty - Regular
WPQ_CYCLES_NO_REG_CREDITS0x180-34HA iMC CHN0 WPQ Credits Empty - Regular
IMC_WRITES0x1A0-31HA to iMC Full Line Writes Issued
TAD_REQUESTS_G00x1B0-32HA Requests to a TAD Region - Group 0
TAD_REQUESTS_G10x1C0-32HA Requests to a TAD Region - Group 1
IMC_RETRY0x1E0-31Retry Events
ADDR_OPC_MATCH0x200-31Intel® QPI Address/Opcode Match
IGR_NO_CREDIT_CYCLES0x220-31Cycles without Intel® QPI Ingress Credits
TxR_AD_CYCLES_FULL0x2A0-31AD Egress Full
TxR_AK_CYCLES_FULL0x320-31AK Egress Full
TxR_BL_CYCLES_FULL0x360-31BL Egress Full
Event
Code
Ctrs
Max
Inc/
Cyc
Description
Overridden
2.4.6HA Box Common Metrics (Derived Events)
The following table summarizes metrics commonly calculated from HA Box events.
Table 2-41. Metrics Derived from HA Events (Sheet 1 of 2)
Symbol Name:
Definition
PCT_CYCLES_BL_FULL:
Percentage of time the BL Egress Queue is
full
PCT_CYCLES_CONFLICT:
Percentage of time in Conflict Resolution
PCT_CYCLES_D2C_DISABLED:
Percentage of time that Direct2Core was
disabled.
50Reference Number: 327043-001
TxR_BL_CYCLES_FULL.ALL / SAMPLE_INTERVAL
CONFLICT_CYCLES.CONFLICT / SAMPLE_INTERVAL
DIRECT2CORE_CYCLES_DISABLED / SAMPLE_INTERVAL
Equation
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-41. Metrics Derived from HA Events (Sheet 2 of 2)
Symbol Name:
Definition
PCT_RD_REQUESTS:
Percentage of HA traffic that is from Read
Requests
PCT_WR_REQUESTS:
Percentage of HA traffic that is from Write
Requests
• Definition: Counts the number of uclks in the HA. This will be slightly different than the count in
the Ubox because of enable/freeze delays. The HA is on the other side of the die from the fixed
Ubox uclk counter, so the drift could be somewhat larger than in units that are closer like the Intel®
QPI Agent.
CONFLICT_CYCLES
• Title: Conflict Checks
• Category: CONFLICTS Events
• Event Code: 0x0B
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition:
Reference Number: 327043-001 51
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-43. Unit Masks for CONFLICT_CYCLES
Extension
NO_CONFLICTbxxxxxxx1No Conflict:
CONFLICTbxxxxxx1xConflict Detected:
umask
[15:8]
Counts the number of cycles that we are NOT handling conflicts.
Counts the number of cycles that we are handling conflicts.
DIRECT2CORE_COUNT
• Title: Direct2Core Messages Sent
• Category: DIRECT2CORE Events
• Event Code: 0x11
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of Direct2Core messages sent
DIRECT2CORE_CYCLES_DISABLED
• Title: Cycles when Direct2Core was Disabled
• Category: DIRECT2CORE Events
• Event Code: 0x12
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles in which Direct2Core was disabled
DIRECT2CORE_TXN_OVERRIDE
• Title: Number of Reads that had Direct2Core Overridden
• Category: DIRECT2CORE Events
• Event Code: 0x13
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of Reads where Direct2Core overridden
Description
DIRECTORY_LOOKUP
• Title: Directory Lookups
• Category: DIRECTORY Events
• Event Code: 0x0C
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of transactions that looked up the directory. Can be filtered by
requests that had to snoop and those that did not have to.
• NOTE: Only valid for parts that implement the Directory
Table 2-44. Unit Masks for DIRECTORY_LOOKUP
Extension
SNPbxxxxxxx1Snoop Needed:
NO_SNPbxxxxxx1xSnoop Not Needed:
52Reference Number: 327043-001
umask
[15:8]
Description
Filters for transactions that had to send one or more snoops because
the directory bit was set.
Filters for transactions that did not ha ve to send an y sn oops b ecause
the directory bit was clear.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
DIRECTORY_UPDATE
• Title: Directory Updates
• Category: DIRECTORY Events
• Event Code: 0x0D
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of directory updates that were required. These result in writes to
the memory controller. This can be filtered by directory sets and directory clears.
• NOTE: Only valid for parts that implement the Directory
Table 2-45. Unit Masks for DIRECTORY_UPDATE
Extension
SETbxxxxxxx1Directory Set:
CLEARbxxxxxx1xDirectory Clear:
ANYbxxxxxx11Any Directory Update
umask
[15:8]
Description
Filter for directory sets. This occurs when a remote read transact ion
requests memory, bringing it to a remote cache.
Filter for directory clears. This occurs when snoops were sent and all
returned with RspI.
IGR_NO_CREDIT_CYCLES
• Title: Cycles without Intel® QPI Ingress Credits
• Category: QPI_IGR_CREDITS Events
• Event Code: 0x22
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the HA does not have credits to send messages to
the Intel® QPI Agent. This can be filtered by the different credit pools and the different links.
Table 2-46. Unit Masks for IGR_NO_CREDIT_CYCLES
Extension
AD_QPI0bxxxxxxx1AD to Intel® QPI Link 0
AD_QPI1bxxxxxx1xAD to Intel® QPI Link 1
BL_QPI0bxxxxx1xx BL to Intel® QPI Link 0
BL_QPI1bxxxx1xxx BL to Intel® QPI Link 1
umask
[15:8]
Description
IMC_RETRY
• Title: Retry Events
• Category: IMC_MISC Events
• Event Code: 0x1E
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition:
IMC_WRITES
• Title: HA to iMC Full Line Writes Issued
• Category: IMC_WRITES Events
• Event Code: 0x1A
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the total number of full line writes issued from the HA into the memory control-
ler. This counts for all four channels. It can be filtered by full/partial and ISOCH/non-ISOCH.
Reference Number: 327043-001 53
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-47. Unit Masks for IMC_WRITES
Extension
FULLbxxxxxxx1 Full Line Non-ISOCH
PARTIALbxxxxxx1xPartial Non-ISOCH
FULL_ISOCHbxxxxx1xx ISOCH Full Line
PARTIAL_ISOCHbxxxx1xxxISOCH Partial
ALLb00001111 All Writes
umask
[15:8]
Description
REQUESTS
• Title: Read and Write Requests
• Category: REQUESTS Events
• Event Code: 0x01
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the total number of read requests made into the Home Agent. Reads include all
read opcodes (including RFO). Writes include all writes (streaming, evictions, HitM, etc).
Table 2-48. Unit Masks for REQUESTS
Extension
READSb00000011 Reads:
WRITESb00001100 Writes:
umask
[15:8]
Description
Incoming ead requests. This is a good proxy for LLC Read Misses
(including RFOs).
Incoming write requests.
RPQ_CYCLES_NO_REG_CREDITS
• Title: iMC RPQ Credits Empty - Regular
• Category: RPQ_CREDITS Events
• Event Code: 0x15
• Max. Inc/Cyc: 4, Register Restrictions: 0-3
• Definition: Counts the number of cycles when there are no "regular" credits available for posting
reads from the HA into the iMC. In order to send reads into the memory controller, the HA must
first acquire a credit for the iMC's RPQ (read pending queue). This queue is broken into regular
credits/buffers that are used by general reads, and "special" requests such as ISOCH reads. This
count only tracks the regular credits Common high banwidth wo rkloads should be able to make use
of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular
and special buffers at the same time. One can filter based on the memory controller channel. One
or more channels can be tracked at a given time.
Table 2-49. Unit Masks for RPQ_CYCLES_NO_REG_CREDITS
Extension
CHN0bxxxxxxx1Channel 0:
CHN1bxxxxxx1xChannel 1:
CHN2bxxxxx1xxChannel 2:
CHN3bxxxx1xxxChannel 3:
umask
[15:8]
Description
Filter for memory controller channel 0 only.
Filter for memory controller channel 1 only.
Filter for memory controller channel 2 only.
Filter for memory controller channel 3 only.
54Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
TAD_REQUESTS_G0
• Title: HA Requests to a TAD Region - Group 0
• Category: TAD Events
• Event Code: 0x1B
• Max. Inc/Cyc: 2, Register Restrictions: 0-3
• Definition: Counts the number of HA requests to a given TAD region. There are up to 11 TAD (tar-
get address decode) regions in each home agent. All requests destined for the memory controller
must first be decoded to determine which TAD region they are in. This event is filtered based on
the TAD region ID, and covers regions 0 to 7. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly
useful for "Monroe" systems that use the TAD to enable individual channels to enter self-refresh to
save power.
Table 2-50. Unit Masks for TAD_REQUESTS_G0
Extension
REGION0bxxxxxxx1TAD Region 0:
REGION1bxxxxxx1xTAD Region 1:
REGION2bxxxxx1xxTAD Region 2:
REGION3bxxxx1xxxTAD Region 3:
REGION4bxxx1xxxxTAD Region 4:
REGION5bxx1xxxxxTAD Region 5:
REGION6bx1xxxxxxTAD Region 6:
REGION7b1xxxxxxxTAD Region 7:
umask
[15:8]
Description
Filters request made to TAD Region 0
Filters request made to TAD Region 1
Filters request made to TAD Region 2
Filters request made to TAD Region 3
Filters request made to TAD Region 4
Filters request made to TAD Region 5
Filters request made to TAD Region 6
Filters request made to TAD Region 7
TAD_REQUESTS_G1
• Title: HA Requests to a TAD Region - Group 1
• Category: TAD Events
• Event Code: 0x1C
• Max. Inc/Cyc: 2, Register Restrictions: 0-3
• Definition: Counts the number of HA requests to a given TAD region. There are up to 11 TAD (tar-
get address decode) regions in each home agent. All requests destined for the memory controller
must first be decoded to determine which TAD region they are in. This event is filtered based on
the TAD region ID, and covers regions 8 to 10. This event is useful for understanding how applications are using the memory that is spread across the different memory regions. It is particularly
useful for "Monroe" systems that use the TAD to enable individual channels to enter self-refresh to
save power.
Table 2-51. Unit Masks for TAD_REQUESTS_G1 (Sheet 1 of 2)
Extension
REGION8bxxxxxxx1TAD Region 8:
REGION9bxxxxxx1xTAD Region 9:
Reference Number: 327043-001 55
umask
[15:8]
Description
Filters request made to TAD Region 8
Filters request made to TAD Region 9
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-51. Unit Masks for TAD_REQUESTS_G1 (Sheet 2 of 2)
Extension
REGION10bxxxxx1xxTAD Region 10:
REGION11bxxxx1xxxTAD Region 11:
umask
[15:8]
Filters request made to TAD Region 10
Filters request made to TAD Region 11
Description
TRACKER_INSERTS
• Title: Tracker Allocations
• Category: TRACKER Events
• Event Code: 0x06
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of allocations into the local HA tracker pool. This can be used in
conjunction with the occupancy accumulation event in order to calculate average latency. One cannot filter between reads and writes. HA trackers are allocated as soon as a request enters the HA
and is released after the snoop response and data return (or post in the case of a write) and the
response is returned on the ring.
Table 2-52. Unit Masks for TRACKER_INSERTS
Extension
ALLb00000011 All Requests:
umask
[15:8]
Description
Requests coming from both local and remote sockets.
TxR_AD
• Title: Outbound NDR Ring Transactions
• Category: OUTBOUND_TX Events
• Event Code: 0x0F
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of outbound transactions on the AD ring. This can be filtered by
the NDR and SNP message classes. See the filter descriptions for more details.
Table 2-53. Unit Masks for TxR_AD
Extension
NDRbxxxxxxx1Non-data Responses:
SNPbxxxxxx1xSnoops:
umask
[15:8]
Description
Filter for outbound NDR transactions sent on the AD ring. NDR
stands for "non-data response" and is generally used for completions
that do not include data. AD NDR is used for transactions to remote
sockets.
Filter for outbound SNP transactions sent on the ring. These
transactions are generally snoops being sent out to either remote or
local caching agents. This should be zero if Early Snoop is enabled.
TxR_AD_CYCLES_FULL
• Title: AD Egress Full
• Category: AD_EGRESS Events
• Event Code: 0x2A
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: AD Egress Full
56Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-54. Unit Masks for TxR_AD_CYCLES_FULL
Extension
SCHED0bxxxxxxx1Scheduler 0:
SCHED1bxxxxxx1xScheduler 1:
ALLbxxxxxx11All:
umask
[15:8]
Filter for cycles full from scheduler bank 0
Filter for cycles full from scheduler bank 1
Cycles full from both schedulers
TxR_AK_CYCLES_FULL
• Title: AK Egress Full
• Category: AK_EGRESS Events
• Event Code: 0x32
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: AK Egress Full
Table 2-55. Unit Masks for TxR_AK_CYCLES_FULL
Extension
SCHED0bxxxxxxx1Scheduler 0:
SCHED1bxxxxxx1xScheduler 1:
ALLbxxxxxx11All:
umask
[15:8]
Filter for cycles full from scheduler bank 0
Filter for cycles full from scheduler bank 1
Cycles full from both schedulers
Description
Description
TxR_AK_NDR
• Title: Outbound NDR Ring Transactions
• Category: OUTBOUND_TX Events
• Event Code: 0x0E
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of outbound NDR transactions sent on the AK ring. NDR stands for
"non-data response" and is generally used for completions that do not include data. AK NDR is
used for messages to the local socket.
TxR_BL
• Title: Outbound DRS Ring Transactions to Cache
• Category: OUTBOUND_TX Events
• Event Code: 0x10
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of DRS messages sent out on the BL ring. This can be filtered by
the destination.
Reference Number: 327043-001 57
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-56. Unit Masks for TxR_BL
Extension
DRS_CACHEbxxxxxxx1Data to Cache:
DRS_COREbxxxxxx1x Data to Core:
DRS_QPIbxxxxx1xxData to Intel® QPI:
umask
[15:8]
Filter for data being sent to the cache.
Filter for data being sent directly to the requesting core.
Filter for data being sent to a remote socket over Intel® QPI.
TxR_BL_CYCLES_FULL
• Title: BL Egress Full
• Category: BL_EGRESS Events
• Event Code: 0x36
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: BL Egress Full
Table 2-57. Unit Masks for TxR_BL_CYCLES_FULL
Extension
SCHED0bxxxxxxx1Scheduler 0:
SCHED1bxxxxxx1xScheduler 1:
ALLbxxxxxx11All:
umask
[15:8]
Filter for cycles full from scheduler bank 0
Filter for cycles full from scheduler bank 1
Cycles full from both schedulers
Description
Description
WPQ_CYCLES_NO_REG_CREDITS
• Title: HA iMC CHN0 WPQ Credits Empty - Regular
• Category: WPQ_CREDITS Events
• Event Code: 0x18
• Max. Inc/Cyc: 4, Register Restrictions: 0-3
• Definition: Counts the number of cycles when there are no "regular" credits available for posting
writes from the HA into the iMC. In order to send writes into the memory controller, the HA must
first acquire a credit for the iMC's WPQ (write pending queue). This queue is broken into regular
credits/buffers that are used by general writes, and "special" requests such as ISOCH writes. This
count only tracks the regular credits Common high banwidth wo rkloads should be able to make use
of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular
and special buffers at the same time. One can filter based on the memory controller channel. One
or more channels can be tracked at a given time.
Table 2-58. Unit Masks for WPQ_CYCLES_NO_REG_CREDITS
Extension
CHN0bxxxxxxx1Channel 0:
CHN1bxxxxxx1xChannel 1:
CHN2bxxxxx1xxChannel 2:
CHN3bxxxx1xxxChannel 3:
umask
[15:8]
Description
Filter for memory controller channel 0 only.
Filter for memory controller channel 1 only.
Filter for memory controller channel 2 only.
Filter for memory controller channel 3 only.
58Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.5Memory Controller (iMC) Performance Monitoring
2.5.1Overview of the iMC
The integrated Memory Controller provides the interface to DRAM and communicates to the rest of
the uncore through the Home Agent (i.e. the iMC does not connect to the Ring).
In conjunction with the HA, the memory controller also provides a variety of RAS features, such as
ECC, lockstep, memory access retry, memory scrubbing, thermal throttling, mirroring, and rank
sparing.
2.5.2Functional Overview
The memory controller is the interface between the home Home Agent (HA) and DRAM, translating
read and write commands into specific memory commands and schedules them with respect to
memory timing. The other main function of the memory controller is advanced ECC support.
Because of the data path affinity to the HA data path, the HA is paired with the memory controller.
The Intel Xeon Processor E5-2600 supports four channels of DDR3 or metaRAM. For DDR3, the
number of DIMMs per channel depends on the speed it is running and the package.
• Support for unbuffered DDR3 and registered DDR3
• Up to four independent DDR3 channels
• Eight independent banks per rank
• Support for DDR3 frequencies of 800,1067, 1333, 1600 GT/s. The speed achievable is
dependent on the number of DIMMs per channel.
• Up to three DIMMs per channel (depends on the speed)
• Support for x4, x8 and x16 data lines per native DDR3 device
• ECC support (correct any error within a x4 device)
• Lockstep support for x8 chipfail
• Open or closed page policy
• Channel Mirroring per socket
• Demand and Patrol Scrubbing support
• Memory Initialization
• Poisoning Support
• Support for LR-DIMMs (load reduced) for a buffered memor y solution dema nding higher capacity
memory subsytems.
• Support for low voltage DDR3 (LV-DDR3, 1.35V)
2.5.3iMC Performance Monitoring Overview
The iMC supports event monitoring through four 48-bit wide counters
(MC_CHy_PCI_PMON_CTR{3:0}) and one fixed counter (MC_CHy_PCI_PMON_FIXED_CTR) for each
DRAM channel (of which there are 4 in Intel Xeon Processor E5-2600 family) the MC is attached to.
Each of these counters can be programmed (MC_CHy_PCI_PMON_CTL{3:0}) to capture any MC
event. The MC counters will increment by a maximum of 8b per cycle.
Reference Number: 327043-001 59
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per-Socket
Performance Monitoring Control”.
2.5.4iMC Performance Monitors
Table 2-59. iMC Performance Monitoring MSRs
Register Name
PCICFG Base AddressDev:Func
MC Channel 0 PMON RegistersD16:F0
MC Channel 1 PMON RegistersD16:F1
MC Channel 2 PMON RegistersD16:F4
MC Channel 3 PMON RegistersD16:F5
Box-Level Control/Status
MC_CHy_PCI_PMON_BOX_CTLF432 MC Channel y PMON Box-Wide Control
Generic Counter Control
MC_CHy_PCI_PMON_FIXED_CTLF0 32MC Channel y PMON Control for Fixed Counter
MC_CHy_PCI_PMON_CTL3E4 32MC Channel y PMON Control for Counter 3
MC_CHy_PCI_PMON_CTL2E0 32MC Channel y PMON Control for Counter 2
MC_CHy_PCI_PMON_CTL1DC 32MC Channel y PMON Control for Counter 1
MC_CHy_PCI_PMON_CTL0D8 32MC Channel y PMON Control for Counter 0
Generic Counters
MC_CHy_PCI_PMON_FIXED_CTRD4+D0 32x2MC Channel y PMON Fixed Counter
MC_CHy_PCI_PMON_CTR3BC+B8 32x2 MC Channel y PMON Counter 3
MC_CHy_PCI_PMON_CTR2B4+B0 32x2MC Channel y PMON Counter 2
MC_CHy_PCI_PMON_CTR1AC+A8 32x2MC Channel y PMON Counter 1
MC_CHy_PCI_PMON_CTR0A4+A0 32x2MC Channel y PMON Counter 0
PCICFG
Address
Size
(bits)
Description
2.5.4.1MC Box Level PMON State
The following registers represent the state governing all box-level PMUs in the MC Boxes.
In the case of the MC, the MC_CHy_PCI_PMON_BOX_CTL register governs what happens when a
freeze signal is received (.frz_en). It also provides the ability to manually freeze the counters in the
box (.frz) .
Table 2-60. MC_CHy_PCI_PMON_BOX_CTL Register – Field Definitions (Sheet 1 of 2)
FieldBitsAttr
rsv31:18RV0 Reserved (?)
rsv17RV0 Reserved; SW must write to 0 else behavior is undefined.
frz_en16WO0 Freeze Enable.
60Reference Number: 327043-001
HW
Reset
Val
Description
If set to 1 and a freeze signal is received, the counters will be
stopped or ‘frozen’, else the freeze signal will be ignored.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-60. MC_CHy_PCI_PMON_BOX_CTL Register – Field Definitions (Sheet 2 of 2)
FieldBitsAttr
rsv15:9RV0 Reserved (?)
frz8WO0 Freeze.
rsv7:2RV0 Reserved (?)
rsv1:0RV0 Reserved; SW must write to 0 else behavior is undefined.
U
HW
Reset
Val
Description
If set to 1 and the .frz_en is 1, the counters in this box will be
frozen.
2.5.4.2MC PMON state - Counter/Control Pairs
The following table defines the layout of the MC performance monitor control registers. The main task
of these configuration registers is to select the event to be monitored by their respective data counter
(.ev_sel, .umask). Additional control bits are provided to shape the incoming events (e.g. .invert,
.edge_det, .thresh).
Table 2-61. MC_CHy_PCI_PMON_CTL{3-0} Register – Field Definitions
FieldBitsAttr
thresh31:24RW-V0 Threshold used in counter comparison.
invert23RW-V0 Invert comparison against Threshold.
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshold?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
en22RW-V0 Local Counter Enable.
rsv21:20RV0 Reserved. SW must write to 0 else behavior is undefined.
rsv19RV0 Reserved (?)
edge_det18RW-V0 When set to 1, rather than measuring the event in each cycle it
rsv17:16RV0 Reserved. SW must write to 0 else behavior is undefined.
umask15:8RW-V0 Select subevents to be counted within the selected event.
ev_sel7:0RW-V0 Select event to be counted.
is active, the corresponding counter will increment when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Reference Number: 327043-001 61
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
All MC performance monitor data registers are 48-bit wide. Should a counter overflow (a carry out
from bit 47), the counter will wrap and continue to collect events.
If accessible, software can continuously read the data registers without disabling event collection.
This is a counter that always tracks the number of DRAM clocks (dclks - half of DDR speed) in the iMC.
The dclk never changes frequency (on a given system), and therefore is a good measure of wall clock
(unlike the Uncore clock which can change frequency based on system load). This clock is gener ally a
bit slower than the uclk (~800MHz to ~1.066GHz) and therefore has less fidelity.
Table 2-62. MC_CHy_PCI_PMON_FIXED_CTL Register – Field Definitions
FieldBitsAttr
rsv31:24RV0 Reserved (?)
rsv23RV0 Reserved. SW must write to 0 else behavior is undefined.
en22RW-V0 Local Counter Enable.
rsv21:20RV0 Reserved. SW must write to 0 else behavior is undefined.
rst19WO0 When set to 1, the corresponding counter will be cleared to 0.
rsv18:0RV0 Reserved (?)
HW
Reset
Val
Description
Table 2-63. MC_CHy_PCI_PMON_CTR{FIXED,3-0} Register – Field Definitions
• Control of power consumption: Thermal Throttling by Rank, Time spent in CKE ON mode,
etc.
and many more.
Internal iMC Queues:
62Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
RPQ - Read Pending Queue. NOTE: HA also tracks some information related to the iMC’s RPQ.
WPQ - Write Pending Queue. NOTE: HA also tracks some information related to the iMC’s WPQ.
2.5.6iMC Box Events Ordered By Code
The following table summarizes the directly measured iMC Box events.
Table 2-64. Performance Monitor Events for iMC
Symbol Name
ACT_COUNT0x010-31DRAM Activate Count
PRE_COUNT0x020-31DRAM Precharge commands.
CAS_COUNT0x040-31DRAM RD _CAS and WR_CAS Commands.
DRAM_REFRESH0x050-31Number of DRAM Refreshes Issued
DRAM_PRE_ALL0x060-31DRAM Precharge All Commands
MAJOR_MODES0x070-31C ycles in a Major Mode
PREEMPTION0x080-31Read Preemption Count
ECC_CORRECTABLE_ERRORS0x090-31ECC Correctable Errors
RPQ_INSERTS0x100-31Read Pending Queue Allocations
RPQ_CYCLES_NE0x110-31Read Pending Queue Not Empty
RPQ_CYCLES_FULL0x120-31Read Pending Queue Full Cycles
WPQ_INSERTS0x200-31Write Pending Queue Allocations
WPQ_CYCLES_NE0x210-31Write Pending Queue Not Empty
WPQ_CYCLES_FULL0x220-31Write Pending Queue Full Cycles
WPQ_READ_HIT0x230-31Write Pending Queue CAM Match
WPQ_WRITE_HIT0x240-31Write Pending Queue CAM Match
POWER_THROTTLE_CYCLES0x410-31Throttle Cycles for Rank 0
POWER_SELF_REFRESH0x430-3Clock-Enabled Self-Refresh
RPQ_OCCUPANCY0x800-322Read Pending Queue Occupancy
WPQ_OCCUPANCY0x810-332Write Pending Queue Occupancy
POWER_CKE_CYCLES0x830-316CKE_ON_CYCLES by Rank
POWER_CHANNEL_DLLOFF0x840-31Channel DLLOFF Cycles
POWER_CHANNEL_PPD0x850-34Channel PPD Cycles
POWER_CRITICAL_THROTTLE_CYCLES0x860-31Critical Throttle Cycles
Event
Code
Ctrs
Max
Inc/
Cyc
Description
2.5.7iMC Box Common Metrics (Derived Events)
The following table summarizes metrics commonly calculcated from iMC Box events.
Reference Number: 327043-001 63
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-65. Metrics Derived from iMC Events
Symbol Name:
Definition
MEM_BW_READS:
Memory bandwidth consumed by reads.
Expressed in bytes.
MEM_BW_TOTAL:
Total memory bandwidth. Expressed in
bytes.
MEM_BW_WRITES:
Memory bandwidth consumed by writes
Expressed in bytes.
PCT_CYCLES_CRITICAL_THROTTLE:
The percentage of cycles all DRAM ranks in
critical thermal throttling
PCT_CYCLES_DLOFF:
The percentage of cycles all DRAM ranks in
CKE slow (DLOFF) mode
PCT_CYCLES_DRAM_RANKx_IN_CKE:
The percentage of cycles DRAM rank (x)
spent in CKE ON mode.
PCT_CYCLES_DRAM_RANKx_IN_THR:
The percentage of cycles DRAM rank (x)
spent in thermal throttling.
PCT_CYCLES_PPD:
The percentage of cycles all DRAM ranks in
PPD mode
PCT_CYCLES_SELF_REFRESH:
The percentage of cycles Memory is in self
refresh power mode
PCT_RD_REQUESTS:
Percentage of read requests from total
requests.
PCT_REQUESTS_PAGE_EMPTY:
Percentage of memory requests that
resulted in Page Empty
PCT_REQUESTS_PAGE_HIT:
Percentage of memory requests that
resulted in Page Hits
PCT_REQUESTS_PAGE_MISS:
Percentage of memory requests that
resulted in Page Misses
PCT_WR_REQUESTS:
Percentage of write requests from total
requests.
The section enumerates the performance monitoring events for the iMC Box.
ACT_COUNT
• Title: DRAM Activate Count
• Category: ACT Events
• Event Code: 0x01
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
64Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
• Definition: Counts the number of DRAM Activate commands sent on this channel. Activate com-
mands are issued to open up a page on the DRAM devices so that it can be read or written to with a
CAS. One can calculate the number of Page Misses by subtracting the number of Page Miss precharges from the number of Activates.
CAS_COUNT
• Title: DRAM RD_CAS and WR_CAS Commands.
• Category: CAS Events
• Event Code: 0x04
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: DRAM RD_CAS and WR_CAS Commands
Table 2-66. Unit Masks for CAS_COUNT
Extension
RD_REGbxxxxxxx1All DRAM RD_CAS (w/ and w/out auto-pre):
RD_UNDERFILLbxxxxxx1xUnderfill Read Issued:
RDb00000011 All DRAM Reads (RD_CAS + Underfills):
WR_WMMbxxxxx1xxDRAM WR_CAS (w/ and w/out auto-pre) in Write Major Mode:
WR_RMMbxxxx1xxxDRAM WR_CAS (w/ and w/out auto-pre) in Read Major Mode:
WRb00001100 All DRAM WR_CAS (both Modes):
ALLb00001111 All DRAM W R_CAS (w/ and w/out auto-pre):
umask
[15:8]
Description
Counts the total number or DRAM Read CAS commands issued on
this channel. This includes both regular RD CAS commands as well
as those with implicit Precharge. AutoPre is only used in systems
that are using closed page policy. We do not filter based on major
mode, as RD_CAS is not issued during WMM (with the exception of
underfills).
Counts the number of underfill reads that are issued by the memory
controller. This will generally be about the same as the number of
partial writes, but may be slightly less because of partials hitting in
the WPQ. While it is possible for underfills to be issed in both WMM
and RMM, this event counts both.
Counts the total number of DRAM Read CAS commands issued on
this channel (including underfills).
Counts the total number or DRAM Write CAS commands issued on
this channel while in Write-Maj or-Mode.
Counts the total number of Opportunistic" DRAM Write CAS
commands issued on this channel while in Read-Major-Mode.
Counts the total number of DRAM Write CAS commands issued on
this channel.
Counts the total number of DRAM CAS commands issued on this
channel.
DRAM_PRE_ALL
• Title: DRAM Precharge All Commands
• Category: DRAM_PRE_ALL Events
• Event Code: 0x06
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times that the precharge all command was sent.
DRAM_REFRESH
• Title: Number of DRAM Refreshes Issued
• Category: DRAM_REFRESH Events
• Event Code: 0x05
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of refreshes issued.
Reference Number: 327043-001 65
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-67. Unit Masks for DRAM_REFRESH
Extension
PANICbxxxxxx1x
HIGHbxxxxx1xx
umask
[15:8]
Description
ECC_CORRECTABLE_ERRORS
• Title: ECC Correctable Errors
• Category: ECC Events
• Event Code: 0x09
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of ECC errors detected and corrected by the iMC on this channel.
This counter is only useful with ECC DRAM devices. This count will increment one time for each correction regardless of the number of bits corrected. The iMC can correct up to 4 bit errors in independent channel mode and 8 bit erros in lockstep mode.
MAJOR_MODES
• Title: Cycles in a Major Mode
• Category: MAJOR_MODES Events
• Event Code: 0x07
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the total number of cycles spent in a major mode (selected by a filter) on the
given channel. Major modea are channel-wide, and not a per-rank (or dimm or bank) mode.
Table 2-68. Unit Masks for MAJOR_MODES
Extension
READbxxxxxxx1Read Major Mode:
WRITEbxxxxxx1xWrite Major Mode:
PARTIALbxxxxx1xxPartial Major Mode:
ISOCHbxxxx1xxxIsoch Major Mode:
umask
[15:8]
Description
Read Major Mode is the default mode for the iMC, as reads are
generally more critical to forward progress than writes.
This mode is triggered when the WPQ hits high occupancy and causes
writes to be higher priority than reads. This can cause blips in the
available read bandwidth in the sys tem and temporarily increase read
latencies in order to achieve better bus utilizations and higher
bandwidth.
This major mode is used to drain starved underfill reads. Regular
reads and writes are blocked and only underfill reads will be
processed.
We group these two modes togethe r so that we can use four cou nters
to track each of the major modes at one time. These major modes
are used whenever there is an ISOCH txn in the memory controller.
In these mode, only ISOCH transactions are processed.
POWER_CHANNEL_DLLOFF
• Title: Channel DLLOFF Cycles
• Category: POWER Events
• Event Code: 0x84
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles when all the ranks in the channel are in CKE Slow (DLLOFF) mode.
• NOTE: IBT = Input Buffer Termination = Off
66Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
POWER_CHANNEL_PPD
• Title: Channel PPD Cycles
• Category: POWER Events
• Event Code: 0x85
• Max. Inc/Cyc: 4, Register Restrictions: 0-3
• Definition: Number of cycles when all the ranks in the channel are in PPD mode. If IBT=off is
enabled, then this can be used to count those cycles. If it is not enabled, then this can count the
number of cycles when that could have been taken advantage of.
• NOTE: IBT = Input Buffer Termination = On
POWER_CKE_CYCLES
• Title: CKE_ON_CYCLES by Rank
• Category: POWER Events
• Event Code: 0x83
• Max. Inc/Cyc: 16, Register Restrictions: 0-3
• Definition: Number of cycles spent in CKE ON mode. The filter allows you to select a rank to mon-
itor. If multiple ranks are in CKE ON mode at one time, the counter will ONLY increment by one
rather than doing accumulation. Multiple counters will need to be used to track multiple ranks
simultaneously. There is no distinction between the different CKE modes (APD, PPDS, PPDF). This
can be determined based on the system programming. These events should commonly be used
with Invert to get the number of cycles in power saving mode. Edge Detect is also useful here.
Make sure that you do NOT use Invert with Edge Detect (this just confuses the system and is not
necessary).
Table 2-69. Unit Masks for POWER_CKE_CYCLES
Extension
RANK0bxxxxxxx1 DIMM ID
RANK1bxxxxxx1x DIMM ID
RANK2bxxxxx1xx DIMM ID
RANK3bxxxx1xxx DIMM ID
RANK4bxxx1xxxx DIMM ID
RANK5bxx1xxxxx DIMM ID
RANK6bx1xxxxxx DIMM ID
RANK7b1xxxxxxx DIMM ID
umask
[15:8]
Description
POWER_CRITICAL_THROTTLE_CYCLES
• Title: Critical Throttle Cycles
• Category: POWER Events
• Event Code: 0x86
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the iMC is in critical thermal throttling. When this
happens, all traffic is blocked. This should be rare unless something bad is going on in the platform.
There is no filtering by rank for this event.
POWER_SELF_REFRESH
• Title: Clock-Enabled Self-Refresh
• Category: POWER Events
• Event Code: 0x43
• Max. Inc/Cyc: , Register Restrictions: 0-3
Reference Number: 327043-001 67
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
• Definition: Counts the number of cycles when the iMC is in self-refresh and the iMC still has a
clock. This happens in some package C-states. For example, the PCU may ask the iMC to enter
self-refresh even though some of the cores are still processing. One use of this is for Monroe technology. Self-refresh is required during package C3 and C6, but there is no clock in the iMC at this
time, so it is not possible to count these cases.
POWER_THROTTLE_CYCLES
• Title: Throttle Cycles for Rank 0
• Category: POWER Events
• Event Code: 0x41
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles while the iMC is being throttled by either thermal con-
straints or by the PCU throttling. It is not possible to distinguish between the two. This can be filtered by rank. If multiple ranks are selected and are being throttled at the same time, the counter
will only increment by 1.
Table 2-70. Unit Masks for POWER_THROTTLE_CYCLES
Extension
RANK0bxxxxxxx1 DIMM ID:
RANK1bxxxxxx1x DIMM ID
RANK2bxxxxx1xx DIMM ID
RANK3bxxxx1xxx DIMM ID
RANK4bxxx1xxxx DIMM ID
RANK5bxx1xxxxx DIMM ID
RANK6bx1xxxxxx DIMM ID
RANK7b1xxxxxxx DIMM ID
umask
[15:8]
Thermal throttling is performed per DIMM. We support 3 DIMMs per
channel. This ID allows us to filter by ID.
Description
PREEMPTION
• Title: Read Preemption Count
• Category: PREEMPTION Events
• Event Code: 0x08
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times a read in the iMC preempts another read or write. Gener-
ally reads to an open page are issued ahead of requests to closed pages. This improves the page
hit rate of the system. However, high priority requests can cause pages of active requests to be
closed in order to get them out. This will reduce the latency of the high-priority request at the
expense of lower bandwidth and increased overall average latency.
Table 2-71. Unit Masks for PREEMPTION
Extension
RD_PREEMPT_RDbxxxxxxx1Read over Read Preemption:
RD_PREEMPT_WRbxxxxxx1xRead over Write Preemption:
68Reference Number: 327043-001
umask
[15:8]
Description
Filter for when a read preempts another read.
Filter for when a read preempts a write.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
PRE_COUNT
• Title: DRAM Precharge commands.
• Category: PRE Events
• Event Code: 0x02
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of DRAM Precharge commands sent on this channel.
Table 2-72. Unit Masks for PRE_COUNT
Extension
PAGE_MISSbxxxxxxx1Precharges due to page miss:
PAGE_CLOSEbxxxxxx1x Precharge due to timer expiration:
umask
[15:8]
Description
Counts the number of DRAM Precharge commands sent on this
channel as a result of page misses. This does not include explicit
precharge commands sent with CAS commands in Auto-Precharge
mode. This does not include PRE commands sent as a result of the
page close counter expiration.
Counts the number of DRAM Precharge commands sent on this
channel as a result of the page close counter expir ing. Th is does no t
include implicit precharge commands sent in auto-precharge mode.
RPQ_CYCLES_FULL
• Title: Read Pending Queue Full Cycles
• Category: RPQ Events
• Event Code: 0x12
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the Read Pending Queue is full. When the RPQ is
full, the HA will not be able to issue any additional read requests into the iMC. This count should be
similar count in the HA which tracks the number of cycles that the HA has no RPQ credits, just
somewhat smaller to account for the credit return overhead. We generally do not expect to see
RPQ become full except for potentially during Write Major Mode or while running with slow DRAM.
This event only tracks non-ISOC queue entries.
RPQ_CYCLES_NE
• Title: Read Pending Queue Not Empty
• Category: RPQ Events
• Event Code: 0x11
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles that the Read P ending Queue is not empt y. This can then
be used to calculate the average occupancy (in conjunction with the Read Pending Queue Occupancy count). The RPQ is used to schedule reads out to the memory controller and to track the
requests. Requests allocate into the RPQ soon after they enter the memory controller, and need
credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after
the CAS command has been issued to memory. This filter is to be used in conjunction with the
occupancy filter so that one can correctly track the average occupancies for schedulable entries and
scheduled requests.
RPQ_INSERTS
• Title: Read Pending Queue Allocations
• Category: RPQ Events
• Event Code: 0x10
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of allocations into the Read Pending Queue. This queue is used to
schedule reads out to the memory controller and to track the requests. Requests allocate into the
RPQ soon after they enter the memory controller, and need credits for an entry in this buffer before
Reference Number: 327043-001 69
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
being sent from the HA to the iMC. They deallocate after the CAS command has been issued to
memory. This includes both ISOCH and non-ISOCH requests.
RPQ_OCCUPANCY
• Title: Read Pending Queue Occupancy
• Category: RPQ Events
• Event Code: 0x80
• Max. Inc/Cyc: 22, Register Restrictions: 0-3
• Definition: Accumulates the occupancies of the Read Pending Queue each cycle. This can then be
used to calculate both the average occupancy (in conjunction with the number of cycles not empty)
and the average latency (in conjunction with the number of allocations). The RPQ is used to schedule reads out to the memory controller and to track the requests. Requests allocate into the RPQ
soon after they enter the memory controller, and need credits for an entry in this buffer before
being sent from the HA to the iMC. They deallocate after the CAS command has been issued to
memory.
WPQ_CYCLES_FULL
• Title: Write Pending Queue Full Cycles
• Category: WPQ Events
• Event Code: 0x22
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the Write Pending Queue is full. When the WPQ is
full, the HA will not be able to issue any additional read requests into the iMC. This count should be
similar count in the HA which tracks the number of cycles that the HA has no WPQ credits, just
somewhat smaller to account for the credit return overhead.
WPQ_CYCLES_NE
• Title: Write Pending Queue Not Empty
• Category: WPQ Events
• Event Code: 0x21
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles that the Write Pending Queue is not empty. This can then
be used to calculate the average queue occupancy (in conjunction with the WPQ Occupancy Accumulation count). The WPQ is used to schedule write out to the memory controller and to track the
writes. Requests allocate into the WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after being
issued to DRAM. Write requests themselves are able to complete (from the perspective of the rest
of the system) as soon they have "posted" to the iMC. This is not to be confused with actually performing the write to DRAM. Therefore, the average latency for this queue is actually not useful for
deconstruction intermediate write latencies.
WPQ_INSERTS
• Title: Write Pending Queue Allocations
• Category: WPQ Events
• Event Code: 0x20
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of allocations into the Write Pending Queue. This can then be used
to calculate the average queuing latency (in conjunction with the WPQ occupancy count). The WPQ
is used to schedule write out to the memory controller and to track the writes. Requests allocate
into the WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the HA to the iMC. They deallocate after being issued to DRAM. Write
requests themselves are able to complete (from the perspective of the rest of the system) as soon
they have "posted" to the iMC.
70Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
WPQ_OCCUPANCY
• Title: Write Pending Queue Occupancy
• Category: WPQ Events
• Event Code: 0x81
• Max. Inc/Cyc: 32, Register Restrictions: 0-3
• Definition: Accumulates the occupancies of the Write Pending Queue each cycle. This can then be
used to calculate both the average queue occupancy (in conjunction with the number of cycles not
empty) and the average latency (in conjunction with the number of allocations). The WPQ is used
to schedule write out to the memory controller and to track the writes. Requests allocate into the
WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before
being sent from the HA to the iMC. They deallocate after being issued to DRAM. Write requests
themselves are able to complete (from the perspective of the rest of the system) as soon they have
"posted" to the iMC. This is not to be confused with actually performing the write to DRAM. Therefore, the average latency for this queue is actually not useful for deconstruction intermediate write
latencies. So, we provide filtering based on if the request has posted or not. By using the "not
posted" filter, we can track how long writes spent in the iMC before completions were sent to the
HA. The "posted" filter, on the other hand, provides information about how much queueing is actually happenning in the iMC for writes before they are actually issued to memory. High average
occupancies will generally coincide with high write major mode counts.
WPQ_READ_HIT
• Title: Write Pending Queue CAM Match
• Category: WPQ Events
• Event Code: 0x23
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times a request hits in the WPQ (write-pending queue). The iMC
allows writes and reads to pass up other writes to different addresses. Before a read or a write is
issued, it will first CAM the WPQ to see if there is a write pending to that address. When reads hit,
they are able to directly pull their data from the WPQ instead of going to memory. Writes that hit
will overwrite the existing data. Partial writes that hit will not need to do underfill reads and will
simply update their relevant sections.
WPQ_WRITE_HIT
• Title: Write Pending Queue CAM Match
• Category: WPQ Events
• Event Code: 0x24
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times a request hits in the WPQ (write-pending queue). The iMC
allows writes and reads to pass up other writes to different addresses. Before a read or a write is
issued, it will first CAM the WPQ to see if there is a write pending to that address. When reads hit,
they are able to directly pull their data from the WPQ instead of going to memory. Writes that hit
will overwrite the existing data. Partial writes that hit will not need to do underfill reads and will
simply update their relevant sections.
Reference Number: 327043-001 71
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.6Power Control (PCU) Performance Monitoring
2.6.1Overview of the PCU
The PCU is the primary Power Controller.
The uncore implements a power control unit acting as a core/uncore power and thermal manager. It
runs its firmware on an internal micro-controller and coordinates the socket’s power states.
The PCU algorithmically governs the P-state of the processor, C-state of the core and the package C-
state of the socket. It also enables the core to go to a higher performance state (“turbo mode”) when
the proper set of conditions are met. Conversely, the PCU will throttle the processor to a lower
performance state when a thermal violation occurs.
Through specific events, the OS and the PCU will either promote or demote the C-State of each core
by altering the voltage and frequency. The system power state (S-state) of all the sockets in the
system is managed by the server legacy bridge in coordination with all socket PCUs.
The PCU communicates to all the other units through multiple PMLink interfaces on-die and Message
Channel to access their registers. The OS and BIOS communicates to the PCU thru standardized MSR
registers and ACPI.
The PCU also acts as the interface to external management controllers via PECI and voltage
regulators (NPTM). The DMI interface is the communication path from the southbridge for system
power management.
Note:Many power saving features are tracked as events in their respective units. For
example, Intel® QPI Link Power saving states and Memory CKE statistics are captured
in the Intel® QPI Perfmon and iMC Perfmon respectively.
2.6.2PCU Performance Monitoring Overview
The uncore PCU supports event monitoring through four 48-bit wide counters
(PCU_MSR_PMON_CTR{3:0}). Each of these counters can be programmed
(PCU_MSR_PMON_CTL{3:0}) to monitor any PCU event. The PCU counters can increment by a
maximum of 4b (?) per cycle.
Two extra 64-bit counters are also provided in the PCU to track C-State Residency. Although
documented in this manual for reference, these counters exist outside of the PMON infrastructure.
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per-Socket
Performance Monitoring Control”
.
2.6.3PCU Performance Monitors
Table 2-73. PCU Performance Monitoring MSRs (Sheet 1 of 2)
PCU_MSR_PMON_CTL30x0C3332PCU PMON Control for Counter 3
PCU_MSR_PMON_CTL20x0C3232PCU PMON Control for Counter 2
PCU_MSR_PMON_CTL10x0C3132PCU PMON Control for Counter 1
PCU_MSR_PMON_CTL00x0C3032PCU PMON Control for Counter 0
Box-Level Control/Status
PCU_MSR_PMON_BOX_CTL0x0C2432 PCU PMON Box-Wide Control
The following registers represent the state governing all box-level PMUs in the PCU.
In the case of the PCU, the PCU_MSR_PMON_BOX_CTL register governs what happens when a freeze
signal is received (.frz_en). It also provides the ability to manually freeze the counters in the box
(.frz) and reset the generic state (.rst_ctrs and .rst_ctrl).
The PCU provides two extra MSRs that provide additional static performance information to software
but exist outside of the PMON infrastructure (e.g. they can’t be frozen or reset). They are included for
the convenience of software developers need to efficiently access this data.
Table 2-74. PCU_MSR_PMON_BOX_CTL Register – Field Definitions
FieldBitsAttr
rsv31:18RV0 Reserved (?)
rsv17RV0 Reserved; SW must write to 0 else behavior is undefined.
frz_en16WO0 Freeze Enable.
If set to 1 and a freeze signal is received, the counters will be
stopped or ‘frozen’, else the freeze signal will be ignored.
If set to 1 and the .frz_en is 1, the counters in this box will be
frozen.
When set to 1, the Counter Registers will be reset to 0.
When set to 1, the Counter Control Registers will be reset to 0.
Reference Number: 327043-001 73
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
U
2.6.3.2PCU PMON state - Counter/Control Pairs
The following table defines the layout of the PCU performance monitor control registers. The main
task of these configuration registers is to select the event to be monitored by their respective data
counter (.ev_sel, .umask). Additional control bits are provided to shape the incoming events (e.g.
.invert, .edge_det, .thresh) as well as provide additional functionality for monitoring software (.rst).
Due to the fact that much of the PCU’s functionality is provided by an embedded microcontroller,
many of the available events are generated by the microcontroller and handed off to the hardware for
capture by the PMON registers. Among the events generated by the microcontroller are occupancy
events allowing a user to measure the number of cores in a given C-state per-cycle. Given this
unique situation, extra control bits are provided to filter the ouput of the these special occupancy
events.
- .occ_invert - Changes the .thresh test condition to ‘<‘ for the occupancy events (when .ev_sel[7] is
set to 1)
- .occ_edge_det - Rather than accumulating the raw count each cycle (for events that can increment
by 1 per cycle), the register can capture transitions from no event to an event incoming for the PCU’ s
occupancy events (when .ev_sel[7] is set to 1).
Table 2-75. PCU_MSR_PMON_CTL{3-0} Register – Field Definitions (Sheet 1 of 2)
FieldBitsAttr
occ_edge_det31RW-V0 Enables edge detect for occupancy events (.ev_sel[7] is 1)
occ_invert30RW-V0 Invert comparison against Threshold for the PCU Occupancy
rsv29RV0 Reserved. SW must write to 0 for proper operation.
thresh28:24RW-V0 Threshold used in counter comparison.
HW
Reset
Val
Description
When set to 1, rather than measuring the event in each cycle it
is active, the corresponding counter will incr ement when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
events (.ev_sel[7] is 1)
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshol d?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
74Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-75. PCU_MSR_PMON_CTL{3-0} Register – Field Definitions (Sheet 2 of 2)
FieldBitsAttr
invert23RW-V0 Invert comparison against Threshold.
en22RW-V0 Local Counter Enable.
rsv21:20RV0 Reserved. SW must write to 0 for proper operation.
rsv19RV0 Reserved (?)
edge_det18RW-V0 When set to 1, rather than measuring the event in each cycle it
rst17WO0 When set to 1, the corresponding counter will be cleared to 0.
rsv16RV0 Reserved (?)
occ_sel15:14RW-V0 Select which of three occupancy counters to use.
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshold?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
is active, the corresponding counter will increment when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
01 - Cores in C0
10 - Cores in C3
11 - Cores in C6
rsv13:8RV0 Reserved (?)
ev_sel7:0RW-V0 Select event to be counted.
NOTE: Bit 7 denotes whether the event requires the use of an
occupancy subcounter.
The PCU performance monitor data registers are 48-bit wide. Should a counter overflow (a carry out
from bit 47), the counter will wrap and continue to collect events.
If accessible, software can continuously read the data registers without disabling event collection.
Table 2-76. PCU_MSR_PMON_CTR{3-0} Register – Field Definitions
Context sensitive filtering is provided for through the PCU_MSR_PMON_BOX_FILTER register.
Reference Number: 327043-001 75
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
• For frequency/voltage band filters, the multipler is at 100MHz granularity. So, a value of 32
(0x20) would represent a frequency of 3.2GHz.
• Support for limited Frequency/Voltage Band histogramming. Each of the four bands provided for
in the filter may be simultaneous tracked by the corresonding event
Note:Since use of the register as a filter is heavily overloaded, simultaneous application of
this filter to additional events in the same run is severely limited
Table 2-77. PCU_MSR_PMON_BOX_FILTER Register – Field Definitions
FieldBitsAttr
rsv63:48RV0 Reserved (?)
filt31_2431:24RW-V0 Band 3 - For Voltage/Frequency Band Event
filt23_1623:16RW-V0 Band 2 - For Voltage/Frequency Band Event
filt15_815:8RW-V0 Band 1 - For Voltage/Frequency Band Event
filt7_07:0RW-V0 Band 0 - For Voltage/Frequency Band Event
HW
Reset
Val
Description
2.6.3.3Intel® PCU Extra Registers - Companions to PMON HW
The PCU includes two extra MSRs that track the number of cycles a core (any core) is in either the C3
or C6 state. As mentioned before, these counters are not part of the PMON infrastructure so they
can’t be frozen or reset with the otherwise controlled by the PCU PMON control registers.
Note:To be clear, these counters track the number of cycles some core is in C3/6 state. It
Table 2-78. PCU_MSR_CORE_C6_CTR Register – Field Definitions
does not track the total number of cores in the C3/6 state in any cycle. F or that, a user
should refer to the regular PCU event list.
The PCU provides the ability to capture information covering a wide range of the PCU’s functionality
including:
• Number of cores in a given C-state per-cycle
76Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
• Core State Transitions - there are a larger number of events provided to track when cores
transition C-state, when the enter/exit specific C-states, when they receive a C-state demotion,
etc.
• Frequency/Voltage Banding - ability to measure the number of cycles the uncore was operating
within a frequency or voltage ‘band’ that can be specified in a seperate filter register.
Note:Given the nature of many of the PCU events, a great deal of additional information can
be measured by setting the .edge_det bit. By doing so, an event such as “Cycles
Changing Frequency” becomes “Number of Frequency Transitions.
On Occupancy Events:
Because it is not possible to "sync" the PCU occupancy counters by employing tricks such as bus lock
before the events start incrementing, the PCU has provided fixed occupancy counters to track the
major queues.
1. Cores in C0 (4 bits)
2. Cores in C3 (4 bits)
3. Cores in C6 (4 bits)
Some Examples for Unlocking More Advanced Features:
The PCU perfmon implementation/progr amming is more complicated than many of the other units. As
such, it is best to describe how to use them with a couple examples.
• Case 1: Voltage Transtion Cycles (Simple Event)
• Case 2: Cores in C0 (Occupancy Accumulation)
• Case 3: Cycles w/ more than 4 cores in C0 (Occupancy Threshholding)
• Case 4: Transitions into more than 4 cores in C0 (Threshholding + Edge Detect)
• Case 5: Voltage Transition Cycles w/ > 4 Cores in C0
• Case 6: Cycles w/ <4 Cores in C0 and Freq < 2.0GHz
Table 2-80. PCU Configuration Examples
Case
Config123456
EventSelect0x030x000x000x000x030x0B
UseOccupancy0x00x10x10x10x10x1
OccSelect0x000x010x010x010 x010x01
Threshhold0x00x00x50x50x50x4
Invert0x00x00x00x00x00x1
Edge Detect0x00x00x00x00x00x0
OccInvert0x00x00x00x00x00x1
OccEdgeDetect0x00x00x00x10x00x0
Filter0x000x000x000x000x000x14
Reference Number: 327043-001 77
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.6.5PCU Box Events Ordered By Code
The following table summarizes the directly measured PCU Box events.
Table 2-81. Performance Monitor Events for PCU (Sheet 1 of 2)
Symbol Name
CLOCKTICKS0x0000-31pclk Cycles
VOLT_TRANS_CYCLES_INCREASE0x0100-31Cycles Increasing Voltage
VOLT_TRANS_CYCLES_DECREASE0x0200-31Cycles Decreasing Voltage
VOLT_TRANS_CYCLES_CHANGE0x0300-31Cycles Changing Voltage
FREQ_MAX_LIMIT_THERMAL_CYCLES0x0400-31Thermal Strongest Upper Limit
PROCHOT_INTERNAL_CYCLES0x0900-31Internal Prochot
PROCHOT_EXTERNAL_CYCLES0x0A00-31External Prochot
FREQ_BAND0_CYCLES0x0B00-31Frequency Residency
FREQ_BAND1_CYCLES0x0C00-31Frequency Residency
FREQ_BAND2_CYCLES0x0D00-31Frequency Residency
FREQ_BAND3_CYCLES0x0E00-31Frequency Residency
DEMOTIONS_CORE00x1E00-31Core C State Demotions
DEMOTIONS_CORE10x1F00-31Core C State Demotions
DEMOTIONS_CORE20x2000-31Core C State Demotions
DEMOTIONS_CORE30x2100-31Core C State Demotions
DEMOTIONS_CORE40x2200-31Core C State Demotions
DEMOTIONS_CORE50x2300-31Core C State Demotions
DEMOTIONS_CORE60x2400-31Core C State Demotions
DEMOTIONS_CORE70x2500-31Core C State Demotions
MEMORY_PHASE_SHEDDING_CYCLES0x2F00-31Memory Phase Shedding Cycles
Event
Code
Extra
Select
Bit
Ctrs
Max
Inc/
Cyc
Description
Cycles
Cycles
VR_HOT_CYCLES0x3200-31VR Hot
POWER_STATE_OCCUPANCY0x8000-38Number of cores in C0
FREQ_TRANS_CYCLES0x0010-31Cycles spent changing Frequency
FREQ_MIN_IO_P_CYCLES0x0110-31IO P Limit Strongest Lower Limit
FREQ_MIN_PERF_P_CYCLES0x0210-31Perf P Limit Strongest Lower Limit
CORE0_TRANSITION_CYCLES0x0310-31Core C State Transition Cycles
CORE1_TRANSITION_CYCLES0x0410-31Core C State Transition Cycles
CORE2_TRANSITION_CYCLES0x0510-31Core C State Transition Cycles
CORE3_TRANSITION_CYCLES0x0610-31Core C State Transition Cycles
CORE4_TRANSITION_CYCLES0x0710-31Core C State Transition Cycles
CORE5_TRANSITION_CYCLES0x0810-31Core C State Transition Cycles
CORE6_TRANSITION_CYCLES0x0910-31Core C State Transition Cycles
78Reference Number: 327043-001
Cycles
Cycles
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-81. Performance Monitor Events for PCU (Sheet 2 of 2)
Symbol Name
CORE7_TRANSITION_CYCLES0x0A10-31Core C State Transition Cycles
TOTAL_TRANSITION_CYCLES0x0B10-31Total Core C State Transition Cycles
Event
Code
Extra
Select
Bit
Ctrs
Max
Inc/
Cyc
2.6.6PCU Box Common Metrics (Derived Events)
The following table summarizes metrics commonly calculated from PCU Box events.
Table 2-82. Metrics Derived from PCU Events
Symbol Name:
Definition
CYC_FREQ_CURRENT_LTD:
Cycles the Max Frequency is limited by
current
CYC_FREQ_OS_LTD:
Cycles the Max Frequency is limited by the
OS
CYC_FREQ_POWER_LTD:
Cycles the Max Frequency is limited by
power
CYC_FREQ_THERMAL_LTD:
Cycles the Max Frequency is limited by
thermal issues
FREQ_MAX_CURRENT_CYCLES / CLOCKTICKS
FREQ_MAX_OS_CYCLES / CLOCKTICKS
FREQ_MAX_POWER_CYCLES / CLOCKTICKS
FREQ_MAX_CURRENT_CYCLES / CLOCKTICKS
Equation
Description
2.6.7PCU Box Performance Monitor Event List
The section enumerates the performance monitoring events for the PCU Box.
CLOCKTICKS
• Title: pclk Cycles
• Category: PCLK Events
• Event Code: 0x00
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: The PCU runs off a fixed 800 MHz clock. This event counts the number of pclk cycles
measured while the counter was enabled. The pclk, like the Memory Controller's dclk, counts at a
constant rate making it a good measure of actual wall time.
CORE0_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x03
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
• NOTE: This only tracks the hardware portion in the RCFSM (CFCFSM). This portion is just doing
the core C state transition. It does not include any necessary frequency/voltage transitions.
Reference Number: 327043-001 79
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
CORE1_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x04
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
CORE2_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x05
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
CORE3_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x06
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
CORE4_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x07
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
CORE5_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x08
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
80Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
CORE6_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x09
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
CORE7_TRANSITION_CYCLES
• Title: Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x0A
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions. There is one event per
core.
DEMOTIONS_CORE0
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x1E
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE1
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x1F
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE2
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x20
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE3
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x21
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
Reference Number: 327043-001 81
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
DEMOTIONS_CORE4
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x22
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE5
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x23
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE6
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x24
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
DEMOTIONS_CORE7
• Title: Core C State Demotions
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x25
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of times when a configurable cores had a C-state demotion
FREQ_BAND0_CYCLES
• Title: Frequency Residency
• Category: FREQ_RESIDENCY Events
• Event Code: 0x0B
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[7:0]
• Definition: Counts the number of cycles that the uncore was running at a frequency greater than
or equal to the frequency that is configured in the filter. One can use all four counters with this
event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction
with this event to track the number of times that we transitioned into a frequency greater than or
equal to the configurable frequency. One can also use inversion to track cycles when we were less
than the configured frequency.
• NOTE: The PMON control registers in the PCU only update on a frequency transition. Changing
the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner
case here: we set this code on the GV transition. So, if we never GV we will never call this code.
This event does not include transition times. It is handled on fast path.
82Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
FREQ_BAND1_CYCLES
• Title: Frequency Residency
• Category: FREQ_RESIDENCY Events
• Event Code: 0x0C
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[15:8]
• Definition: Counts the number of cycles that the uncore was running at a frequency greater than
or equal to the frequency that is configured in the filter. One can use all four counters with this
event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction
with this event to track the number of times that we transitioned into a frequency greater than or
equal to the configurable frequency. One can also use inversion to track cycles when we were less
than the configured frequency.
• NOTE: The PMON control registers in the PCU only update on a frequency transition. Changing
the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner
case here: we set this code on the GV transition. So, if we never GV we will never call this code.
This event does not include transition times. It is handled on fast path.
FREQ_BAND2_CYCLES
• Title: Frequency Residency
• Category: FREQ_RESIDENCY Events
• Event Code: 0x0D
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[23:16]
• Definition: Counts the number of cycles that the uncore was running at a frequency greater than
or equal to the frequency that is configured in the filter. One can use all four counters with this
event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction
with this event to track the number of times that we transitioned into a frequency greater than or
equal to the configurable frequency. One can also use inversion to track cycles when we were less
than the configured frequency.
• NOTE: The PMON control registers in the PCU only update on a frequency transition. Changing
the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner
case here: we set this code on the GV transition. So, if we never GV we will never call this code.
This event does not include transition times. It is handled on fast path.
FREQ_BAND3_CYCLES
• Title: Frequency Residency
• Category: FREQ_RESIDENCY Events
• Event Code: 0x0E
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Filter Dependency: PCUFilter[31:24]
• Definition: Counts the number of cycles that the uncore was running at a frequency greater than
or equal to the frequency that is configured in the filter. One can use all four counters with this
event, so it is possible to track up to 4 configurable bands. One can use edge detect in conjunction
with this event to track the number of times that we transitioned into a frequency greater than or
equal to the configurable frequency. One can also use inversion to track cycles when we were less
than the configured frequency.
• NOTE: The PMON control registers in the PCU only update on a frequency transition. Changing
the measuring threshold during a sample interval may introduce errors in the counts. This is especially true when running at a constant frequency for an extended period of time. There is a corner
case here: we set this code on the GV transition. So, if we never GV we will never call this code.
This event does not include transition times. It is handled on fast path.
Reference Number: 327043-001 83
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
FREQ_MAX_CURRENT_CYCLES
• Title: Current Strongest Upper Limit Cycles
• Category: FREQ_MAX_LIMIT Events
• Event Code: 0x07
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when current is the upper limit on frequency.
• NOTE: This is fast path, will clear our other limits when it happens. The slow loop portion, which
covers the other limits, can double count EDP. Clearing should fix this up in the next fast path
event, but this will happen. Add up all the cycles and it wontmakesense,butthegeneraldistributionistrue.'
FREQ_MAX_LIMIT_THERMAL_CYCLES
• Title: Thermal Strongest Upper Limit Cycles
• Category: FREQ_MAX_LIMIT Events
• Event Code: 0x04
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when thermal conditions are the upper limit on frequency .
This is related to the THERMAL_THROTTLE CYCLES_ABOVE_TEMP event, which always counts cycles
when we are above the thermal temperature. This event (STRONGEST_UPPER_LIMIT) is sampled
at the output of the algorithm that determines the actual frequency, while THERMAL_THROTTLE
looks at the input.
FREQ_MAX_OS_CYCLES
• Title: OS Strongest Upper Limit Cycles
• Category: FREQ_MAX_LIMIT Events
• Event Code: 0x06
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the OS is the upper limit on frequency.
• NOTE: Essentially, this event says the OS is getting the frequency it requested.
FREQ_MAX_POWER_CYCLES
• Title: Power Strongest Upper Limit Cycles
• Category: FREQ_MAX_LIMIT Events
• Event Code: 0x05
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when power is the upper limit on frequency.
FREQ_MIN_IO_P_CYCLES
• Title: IO P Limit Strongest Lower Limit Cycles
• Category: FREQ_MIN_LIMIT Events
• Event Code: 0x01
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when IO P Limit is preventing us from dropping the fre-
quency lower. This algorithm monitors the needs to the IO subsystem on both local and remote
sockets and will maintain a frequency high enough to maintain good IO BW. This is necessary for
when all the IA cores on a socket are idle but a user still would like to maintain high IO Bandwidth.
84Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
FREQ_MIN_PERF_P_CYCLES
• Title: Perf P Limit Strongest Lower Limit Cycles
• Category: FREQ_MIN_LIMIT Events
• Event Code: 0x02
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when Perf P Limit is preventing us from dropping the fre-
quency lower. Perf P Limit is an algorithm that takes input from remote sockets when determining
if a socket should drop it's frequency down. This is largely to minimize increases in snoop and
remote read latencies.
FREQ_TRANS_CYCLES
• Title: Cycles spent changing Frequency
• Category: FREQ_TRANS Events
• Event Code: 0x00
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the system is changing frequency. This can not be
filtered by thread ID. One can also use it with the occupancy counter that monitors number of
threads in C0 to estimate the performance impact that frequency transitions had on the system.
MEMORY_PHASE_SHEDDING_CYCLES
• Title: Memory Phase Shedding Cycles
• Category: MEMORY_PHASE_SHEDDING Events
• Event Code: 0x2F
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles that the PCU has triggered memory phase shedding. This
is a mode that can be run in the iMC physicals that saves power at the expense of additional
latency.
• NOTE: Is this the package C one? Yes
POWER_STATE_OCCUPANCY
• Title: Number of cores in C0
• Category: POWER_STATE_OCC Events
• Event Code: 0x80
• Max. Inc/Cyc: 8, Register Restrictions: 0-3
• Definition: This is an occupancy event that tracks the number of cores that are in C0. It can be
used by itself to get the average number of cores in C0, with threshholding to generate histograms,
or with other PCU events and occupancy triggering to capture other details.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
PROCHOT_EXTERNAL_CYCLES
• Title: External Prochot
• Category: PROCHOT Events
• Event Code: 0x0A
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles that we are in external PROCHOT mode. This mode is
triggered when a sensor off the die determines that something off-die (like DRAM) is too hot and
must throttle to avoid damaging the chip.
PROCHOT_INTERNAL_CYCLES
• Title: Internal Prochot
• Category: PROCHOT Events
• Event Code: 0x09
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles that we are in Interal PROCHOT mode. This mode is trig-
gered when a sensor on the die determines that we are too hot and must throttle to avoid damaging
the chip.
TOTAL_TRANSITION_CYCLES
• Title: Total Core C State Transition Cycles
• Category: CORE_C_STATE_TRANSITION Events
• Event Code: 0x0B
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of cycles spent performing core C state transitions across all cores.
VOLT_TRANS_CYCLES_CHANGE
• Title: Cycles Changing Voltage
• Category: VOLT_TRANS Events
• Event Code: 0x03
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the system is changing voltage. There is no filtering
supported with this event. One can use it as a simple event, or use it conjunction with the occupancy events to monitor the number of cores or threads that were impacted by the transition. This
event is calculated by or'ing together the increasing and decreasing events.
VOLT_TRANS_CYCLES_DECREASE
• Title: Cycles Decreasing Voltage
• Category: VOLT_TRANS Events
• Event Code: 0x02
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of cycles when the system is decreasing voltage. There is no filter-
ing supported with this event. One can use it as a simple event, or use it conjunction with the occupancy events to monitor the number of cores or threads that were impacted by the transition.
VOLT_TRANS_CYCLES_INCREASE
• Title: Cycles Increasing Voltage
• Category: VOLT_TRANS Events
• Event Code: 0x01
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
86Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
• Definition: Counts the number of cycles when the system is increasing voltage. There is no filter-
ing supported with this event. One can use it as a simple event, or use it conjunction with the occupancy events to monitor the number of cores or threads that were impacted by the transition.
VR_HOT_CYCLES
• Title: VR Hot
• Category: VR_HOT Events
• Event Code: 0x32
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition:
2.7Intel® QPI Link Layer Performance Monitoring
2.7.1Overview of the Intel® QPI Box
The Intel® QPI Link Layer is responsible for packetizing requests from the caching agent on the way
out to the system interface. As such, it shares responsibility with the CBo(s) as the Intel QPI caching
agent(s). It is responsible for converting CBo requests to Intel QPI messages (i.e. snoop generation
and data response messages from the snoop response) as well as converting/forwarding ring
messages to Intel QPI packets and vice versa.
The Intel® QPI is split into two separate layers. The Intel® QPI LL (link layer) is responsible for
generating, transmitting, and receiving packets with the Intel® QPI link.
R3QPI (Section 2.9, “R3QPI Performance Monitoring”) provides the interface to the Ring for the Link
Layer. It is also the point where VNA/VN0 link credits are acquired.
In each Intel Xeon processor E5-2600, there are two Intel® QPI agents that share a single ring stop.
These links can be connected to a single destination (such as in DP), but also can be connected to two
separate destinations (4s Ring or sDP). Therefore, it will be necessary to count Intel® QPI statistics
for each agent seperately.
The Intel® QPI Link Layer processes two flits per cycle in each direction. In order to accommodate
this, many of the events in the Link Layer can increment by 0, 1, or 2 in each cycle. It is not possible
to monitor Rx (received) and Tx (transmitted) flit information at the same time on the same counter.
2.7.2Intel® QPI Performance Monitoring Overview
Each Intel® QPI Port in the uncore supports event monitoring through four 48b wide counters
(Q_Py_PCI_PMON_CTR/CTL{3:0}). Each of these four counters can be programmed to count any
Intel® QPI event. The Intel® QPI counters can increment by a maximum of 6b per cycle (???).
Each Intel® QPI Port also includes a mask/match register that allows a user to match packets,
according to various standard packet fields such as message class, opcode, etc, as they leave the
Intel® QPI Port.
For information on how to setup a monitoring session, refer to Section 2.1, “Uncore Per- Sock et
Performance Monitoring Control”
.
Reference Number: 327043-001 87
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
PCICFG Base AddressDev:Func
QPI Port 0 PMON RegistersD8:F2
QPI Port 1 PMON RegistersD9:F2
Box-Level Control/Status
Q_Py_PCI_PMON_BOX_CTLF432QPI Port y PMON Box-Wide Control
Generic Counter Control
Q_Py_PCI_PMON_CTL3E432QPI Port y PMON Control for Counter 3
Q_Py_PCI_PMON_CTL2E032QPI Port y PMON Control for Counter 2
Q_Py_PCI_PMON_CTL1DC32QPI Port y PMON Control for Counter 1
Q_Py_PCI_PMON_CTL0D832QPI Port y PMON Control for Counter 0
Generic Counters
Q_Py_PCI_PMON_CTR3BC+B832x2 QPI Port y PMON Counter 3
Q_Py_PCI_PMON_CTR2B4+B0 32x2 QPI Port y PMON Counter 2
Q_Py_PCI_PMON_CTR1AC+A8 32x2 QPI Port y PMON Counter 1
Q_Py_PCI_PMON_CTR0A4+A0 32x2 QPI Port y PMON Counter 0
QPI Mask/Match Port 0 PMON RegistersD 8:F6
QPI Mask/Match Port 1 PMON RegistersD 9:F6
PCICFG
Address
Size
(bits)
Description
Box-Level Filters
Q_Py_PCI_PMON_PKT_MASK123C32QPI Port y PMON Packet Filter Mask 1
Q_Py_PCI_PMON_PKT_MASK023832QPI Port y PMON Packet Filter Mask 0
Q_Py_PCI_PMON_PKT_MATCH122C32QPI Port y PMON Packet Filter Match 1
Q_Py_PCI_PMON_PKT_MATCH022832QPI Port y PMON Packet Filter Mask 0
QPI Misc Register Port 0D8:F0
QPI Misc Register Port 1D9:F1
Misc (Non-PMON) Counters
QPI_RATE_STATUS0xD432QPI Rate Status
2.7.3.1Intel® QPI Box Level PMON State
The following registers represent the state governing all box-level PMUs in each P ort of the Intel® QPI
Box.
In the case of the Intel® QPI Ports, the Q_Py_PCI_PMON_BOX_CTL register governs what happens
when a freeze signal is received (.frz_en). It also provides the ability to manually freeze the counters
in the box (.frz) and reset the generic state (.rst_ctrs and .rst_ctrl).
88Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-85. Q_Py_PCI_PMON_BOX_CTL Register – Field Definitions
FieldBitsAttr
rsv31:18RV0 Reserved (?)
rsv17RV0 Reserved; SW must write to 0 else behavior is undefined.
frz_en16WO0 Freeze Enable.
If set to 1 and a freeze signal is received, the counters will be
stopped or ‘frozen’, else the freeze signal will be ignored.
If set to 1 and the .frz_en is 1, the counters in this box will be
frozen.
When set to 1, the Counter Registers will be reset to 0.
When set to 1, the Counter Control Registers will be reset to 0.
2.7.3.2Intel® QPI PMON state - Counter/Control Pairs
The following table defines the layout of the Intel® QPI performance monitor control registers. The
main task of these configuration registers is to select the event to be monitored by their respective
data counter (.ev_sel, .umask, .ev_sel_ext). Additional control bits are provided to shape the
incoming events (e.g. .invert, .edge_det, .thresh) as well as provide additional functionality for
monitoring software (.rst).
Table 2-86. Q_Py_PCI_PMON_CTL{3-0} Register – Field Definitions (Sheet 1 of 2)
FieldBitsAttr
thresh31:24RW-V0 Threshold used in counter comparison.
invert23RW-V0 Invert comparison against Threshold.
en22RW-V0 Local Counter Enable.
ev_sel_ext21RW-V0 Extentsion bit to the Event Select field.
rsv20RV0 Reserved. SW must write to 0 for proper operation.
rsv19RV0 Reserved (?)
Reference Number: 327043-001 89
HW
Reset
Val
Description
0 - comparison will be ‘is event increment >= threshold?’.
1 - comparison is inverted - ‘is event increment < threshold?’
NOTE: .invert is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
Also, if .edge_det is set to 1, the counter will increment when a 1
to 0 transition (i.e. falling edge) is detected.
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-86. Q_Py_PCI_PMON_CTL{3-0} Register – Field Definitions (Sheet 2 of 2)
FieldBitsAttr
edge_det18RW-V0 When set to 1, rather than measuring the event in each cycle it
rst17WO0 When set to 1, the corresponding counter will be cleared to 0.
rsv16RV0 Reserved. SW must write to 0 else behavior is undefined.
umask15:8RW-V0 Select subevents to be counted within the selected event.
ev_sel7:0RW-V0 Select event to be counted.
HW
Reset
Val
Description
is active, the corresponding counter will incr ement when a 0 to 1
transition (i.e. rising edge) is detected.
When 0, the counter will increment in each cycle that the event
is asserted.
NOTE: .edge_det is in series following .thresh, Due to this, the
.thresh field must be set to a non-0 value. For events that
increment by no more than 1 per cycle, set .thresh to 0x1.
The Intel® QPI performance monitor data registers are 48b wide.Should a counter overflow (a carry
out from bit 47), the counter will wrap and continue to collect events.
If accessible, software can continuously read the data registers without disabling event collection.
Table 2-87. Q_Py_PCI_PMON_CTR{3-0} Register – Field Definitions
2.7.3.3Intel® QPI Registers for Packet Mask/Match Facility
In addition to generic event counting, each port of the Intel® QPI Link Layer provides two pairs of
MAT CH/MASK registers that allow a user to filter packet traffic serviced (crossing from an input port to
an output port) by the Intel® QPI Link Layer. Filtering can be performed according to the packet
Opcode, Message Class, Response, HNID and Physical Address. Program the selected Intel® QPI LL
counter to capture CTO_COUNT in order to capture the filter match as an event.
To use the match/mask facility :
a) Program the match/mask regs (see Table 2-88, “Q_Py_PCI_PMON_PKT_MATCH1 Registers”
through T able 2-91, “Q_Py_PCI_PMON_PKT_MASK0 Registers”).
b) Set the counter’s control register event select to 0x38 (CTO_COUNT) to capture the mask/match
as a performance event.
The following table contains the packet traffic that can be monitored if one of the mask/match
registers was chosen to select the event.
90Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-88. Q_Py_PCI_PMON_PKT_MATCH1 Registers
FieldBits
---31:200x0Reserved; Must write to 0 else behavior is undefined.
RDS19:160x0Response Data State (valid when MC == DRS and Opcode == 0x0-
---15:40x0Reserved; Must write to 0 else behavior is undefined.
RNID_3_03:00x0Remote Node ID(3:0 - Leat Significant Bits)
RNID_4310x0Remote Node ID(Bit 4 - Most Significant Bit)
---30:180x0Reserved; Must write to 0 else behavior is undefined.
DNID17:130x0Destination Node ID
MC12:90x0Message Class
OPC8:50x0Opcode
HW
Reset
Val
Description
Description
See Section 2.10, “Packet Matching Reference” for a listing of
opcodes that may be filtered per message class.
VNW4:30x0Virtual Network
---2:00x0Reserved; Must write to 0 else behavior is undefined.
2.7.3.3.1Events Derived from Packet Filters
Following is a selection of common events that may be derived by using the Intel® QPI packet
matching facility . The Match/Mask columns correspond to the Match0/Mask0 registers. For the cases
where additional fields need to be specified, they will be noted.
92Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-92. Message Events Derived from the Match/Mask filters (Sheet 1 of 2)
Field
DRS.AnyDataC0x1C000x1F80Any Data Response message containing a cache line in
DRS.DataC_M0x1C00
DRS.DataC_E0x1C00
DRS.DataC_F0x1C00
DRS.DataC_E_Cmp0x1C40
DRS.DataC_F_Cmp0x1C40
DRS.DataC_E_FrcAc
kCnflt
DRS.DataC_F_FrcAc
kCnflt
DRS.WbIData0x1C800x1FE0Data Response message for Wr ite Back data where cacheline is
DRS.WbSData0x1CA00x1FE0Data Response message for Write Back data where cacheline is
DRS.WbEData0x1CC00x1FE0Data R esponse message for Write Back data where cacheline is
DRS.AnyResp0x1C000x1E00Any Data Response message . A DRS message can be either 9
DRS.AnyResp9flits0x1C000x1F00Any Data Response message that is 11 flits in length. An 11
DRS.AnyResp11flits0x1D000x1F00Any Non Data Response completion message. A NDR message
response to a core request. The AnyDataC mes sages are only
sent to an S-Box. The metric DRS.AnyResp - DRS.AnyDataC
will compute the number of DRS writeback and non snoop
write messages.
Data Response message of a cache line in M state that is
response to a core request. The DRS.DataC_M messages are
only sent to Intel® QPI.
Data Response message of a cache line in E state that is
response to a core request. The DRS.DataC_E messages are
only sent to Intel® QPI.
Data Response message of a cache line in F state that is
response to a core request. The DRS.DataC_F messages are
only sent to Intel® QPI.
Complete Data Response message of a cache line in E state
that is response to a core request. The DRS.DataC_E
messages are only sent to Intel® QPI.
Complete Data Response message of a cache line in F state
that is response to a core request. The DRS.DataC_F
messages are only sent to Intel® QPI.
Force Acknowledge Data Response message of a cache line in
E state that is response to a core request. The DRS.DataC_E
messages are only sent to Intel® QPI.
Force Acknowledge Data Response message of a cache line in
F state that is response to a core request. The DRS.DataC_F
messages are only sent to Intel® QPI.
set to the I state.
set to the S state.
set to the E state.
flits for a full cache line or 11 flits for partial data.
flit DRS message contains partial data. Each 8 byte chunk
contains an enable field that specifies if the data is valid.
is 1 on flit.
Reference Number: 327043-001 93
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-92. Message Events Derived from the Match/Mask filters (Sheet 2 of 2)
Field
NCB.AnyMsg9flits0x18000x1F00Any Non-Coherent Bypass message that is 9 flits in length. A
NCB.AnyMsg11flits0x19000x1F00Any Non-Coherent Bypass message that is 11 flits in length.
9 flit NCB message contains a full 64 byte cache line.
An 11 flit NCB message contains either partial data or an
interrupt. For NCB 11 flit data messages, each 8 byte chunk
contains an enable field that specifies if the data is valid.
messages are 11 flits in length.
2.7.3.4Intel® QPI Extra Registers - Companions to PMON HW
The uncore’s Intel® QPI box includes an extra MSR that provides the current Intel® QPI transfer r ate.
Table 2-93. QPI_RATE_STATUS Register – Field Definitions
FieldBitsAttr
rsv31:5RV0 Reserved. SW must write to 0 for proper operation.
slow_mode4RO-V0 Slow Mode
rsv3RV0 Reserved. SW must write to 0 for proper operation.
qpi_rate2:0RO-V11b QPI Rate
HW
Reset
Val
Description
Reflects the current slow mode status being driven to the PLL
This will be set out of reset to bring Intel® QPI in slow mode.
And is only expected to be set when QPI_rate is set to 6.4 GT/s.
This reflects the current QPI rte setting into the PLL
010 - 5.6 GT/s
011 - 6.4 GT/s
100 - 7.2 GT/s
101 - 8 GT/s
110 - 8.8 GT/s
111 - 9.6 GT/s
other - Reserved
2.7.4Intel® QPI LL Performance Monitoring Events
2.7.4.1An Overview
The Intel® QPI Link Layer provides events to gather information on topics such as:
• The Link Layer’s power consumption as expressed by the time spent in the Link power states L0p
(half of lanes are disabled).
• A variety of static events such as Direct2Core statistics and when output credit is unavailable.
• Of particular interest, total link utilization may be calculated by capturing and subtracting
transmitted/received idle flits from Intel® QPI clocks.
Many of these events can be further broken down by message class, including link utilization.
Note:In order to measure several of the available events in the Intel® QPI Link Layer, an
extra bit (b16) must be set. These cases will be documented in the full Event List.
94Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
2.7.4.2Acronyms frequently used in Intel® QPI Events:
RxL (aka IGR) - “Receive from Link” referring to Ingress (requests from the Ring) queues.
TxL (aka EGR) - “Transmit to Link” referring to Egress (requests headed for the Ring) queues.
2.7.5Intel® QPI LL Box Events Ordered By Code
The following table summarizes the directly measured Intel QPI LL Box events.
Table 2-94. Performance Monitor Events for Intel® QPI LL (Sheet 1 of 2)
Symbol Name
TxL_FLITS_G00x0000-32Flits Transferred - Group 0
RxL_FLITS_G00x0100-32Flits Received - Group 0
TxL_INSERTS0x0400-31Tx Flit Buffer Allocations
TxL_BYPASSED0x0500-31Tx Flit Buffer Bypassed
TxL_CYCLES_NE0x0600-31Tx Flit Buffer Cycles not Empty
TxL_OCCUPANCY0x0700-31Tx Flit Buffer Occupancy
RxL_INSERTS0x0800-31Rx Flit Buffer Allocations
RxL_BYPASSED0x0900-31Rx Flit Buffer Bypassed
RxL_CYCLES_NE0x0A00-31RxQ Cycles Not Empty
RxL_OCCUPANCY0x0B00-3128RxQ Occupancy - All Packets
TxL0_POWER_CYCLES0x0C00-31Cycles in L0
TxL0P_POWER_CYCLES0x0D00-31Cycles in L0p
RxL0_POWER_CYCLES0x0F00-31Cycles in L0
RxL0P_POWER_CYCLES0x1000-31Cycles in L0p
L1_POWER_CYCLES0x1200-31Cycles in L1
DIRECT2CORE0x1300-31Direct 2 Core Spawning
CLOCKTICKS0x1400-31Number of qfclks
TxL_FLITS_G10x0010-32Flits Transferred - Group 1
TxL_FLITS_G20x0110-32Flits Transferred - Group 2
RxL_FLITS_G10x0210-32Flits Received - Group 1
RxL_FLITS_G20x0310-32Flits Received - Group 2
RxL_INSERTS_DRS0x0910-31Rx Flit Buffer Allocations - DRS
RxL_INSERTS_NCB0x0A10-31Rx Flit Buffer Allocations - NCB
RxL_INSERTS_NCS0x0B10-31Rx Flit Buffer Allocations - NCS
RxL_INSERTS_HOM0x0C10-31Rx Flit Buffer Allocations - HOM
RxL_INSERTS_SNP0x0D10-31Rx Flit Buffer Allocations - SNP
RxL_INSERTS_NDR0x0E10-31Rx Flit Buffer Allocations - NDR
RxL_OCCUPANCY_DRS0x1510-3128RxQ Occupancy - DRS
RxL_OCCUPANCY_NCB0x1610-3128RxQ Occupancy - NCB
RxL_OCCUPANCY_NCS0x1710-3128RxQ Occupancy - NCS
RxL_OCCUPANCY_HOM0x1810-3128RxQ Occupancy - HOM
RxL_OCCUPANCY_SNP0x1910-3128RxQ Occupancy - SNP
RxL_OCCUPANCY_NDR0x1A10-3128RxQ Occupancy - NDR
Event
Code
Extra
Select
Bit
Ctrs
Max
Inc/
Cyc
Description
Reference Number: 327043-001 95
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-94. Performance Monitor Events for Intel® QPI LL (Sheet 2 of 2)
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
Table 2-95. Metrics Derived from Intel QPI LL Events (Sheet 2 of 3)
Symbol Name:
Definition
DRS_F_OR_E_FROM_QPI:
DRS response in F or E states received from
QPI in bytes. To calculate the total data
response for each cache line state, it's
necessary to add the contribution from three
flavors {DataC, DataC_FrcAckCnflt,
DataC_Cmp} of data response packets for
each cache line st ate.
DRS_M_FROM_QPI:
DRS response in M state received from QPI
in bytes
DRS_PTL_CACHELINE_MSGS_FROM_QPI:
DRS Partial Cacheline Data Messges From
QPI in bytes
DRS_WB_FROM_QPI:
DRS writeback packets received from QPI in
bytes. This is the sum of Wb{I,S,E} DRS
packets
DRS_WRITE_FROM_QPI_TO_NODEx:
DRS Data packets (Any - DataC) received
from QPI sent to Node ID 'x'. Expressed in
bytes
DRS_WbE_FROM_QPI:
DRS writeback 'change to E state' packets
received from QPI in bytes
DRS_WbI_FROM_QPI:
DRS writeback 'change to I state' packets
received from QPI in bytes
DRS_WbS_FROM_QPI:
DRS writeback 'change to S state' packets
received from QPI in bytes
NCB_DATA_FROM_QPI_TO_NODEx:
NCB Data packets (Any - Interrupts)
received from QPI sent to Node ID 'x'.
Expressed in bytes
NCB_DATA_MSGS_FROM_QPI:
NCB Data Messages From QPI in bytes
PCT_LINK_CRC_RETRY_CYCLES:
Percent of Cycles the QPI link layer is in
retry mode due to CRC errors
2.7.7Intel® QPI LL Box Performance Monitor Event List
The section enumerates the performance monitoring events for the Intel® QPI LL Box.
CLOCKTICKS
• Title: Number of qfclks
• Category: CFCLK Events
• Event Code: 0x14
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of clocks in the Intel® QPI LL. This clock runs at 1/8th the "GT/s"
speed of the Intel® QPI link. For example, a 8GT/s link will have qfclk or 1GHz. JKT does not support dynamic link speeds, so this frequency is fixed.
CTO_COUNT
• Title: Count of CTO Events
• Category: CTO Events
• Event Code: 0x38
• Extra Select Bit: Y
• Max. Inc/Cyc: 2, Register Restrictions: 0-3
• Definition: Counts the number of CTO (cluster trigger outs) events that were asserted across the
two slots. If both slots trigger in a given cycle, the event will increment by 2. You can use edge
detect to count the number of cases when both events triggered.
DIRECT2CORE
• Title: Direct 2 Core Spawning
• Category: DIRECT2CORE Events
• Event Code: 0x13
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of DRS packets that we attempted to do direct2core on. There are
4 mutually exlusive filters. Filter [0] can be used to get successful spawns, while [1:3] provide the
different failure cases. Note that this does not count packets that are not candidates for
Direct2Core. The only candidates for Direct2Core are DRS packets destined for Cbos.
98Reference Number: 327043-001
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
FAILURE_CREDITS_RBTbxxxx1xxxSpawn Failure - Egress and RBT:
umask
[15:8]
Description
The spawn was successful. There were sufficient credits, and the
message was marked to spawn direct2core.
The spawn failed because there were not enough Egress credits. Had
there been enough credits, the spawn would have work ed as the RB T
bit was set.
The spawn failed because the route-back table (RBT) specified that
the transaction should not trigger a direct2core tranaction. This is
common for IO transactions. There were enough Egress credits.
The spawn failed because there were not enough E gress cre dit s AND
the RBT bit was not set.
L1_POWER_CYCLES
• Title: Cycles in L1
• Category: POWER Events
• Event Code: 0x12
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of Intel® QPI qfclk cycles spent in L1 power mode. L1 is a mode that totally
shuts down a Intel® QPI link. Use edge detect to count the number of instances when the Intel®
QPI link entered L1. Link power states are per link and per direction, so for example the Tx direction could be in one state while Rx was in another. Because L1 totally shuts down the link, it takes a
good amount of time to exit this mode.
RxL0P_POWER_CYCLES
• Title: Cycles in L0p
• Category: POWER_RX Events
• Event Code: 0x10
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of Intel® QPI qfclk cycles spent in L0p power mode. L0p is a mode where we
disable 1/2 of the Intel® QPI lanes, decreasing our bandwidth in order to save power. It increases
snoop and data transfer latencies and decreases overall bandwidth. This mode can be very useful
in NUMA optimized workloads that largely only utilize Intel® QPI for snoops and their responses.
Use edge detect to count the number of instances when the Intel® QPI link entered L0p. Link
power states are per link and per direction, so for example the Tx direction could be in one state
while Rx was in another.
• NOTE: Using .edge_det to count transitions does not function if L1_POWER_CYCLES
RxL0_POWER_CYCLES
• Title: Cycles in L0
• Category: POWER_RX Events
• Event Code: 0x0F
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Number of Intel® QPI qfclk cycles spent in L0 power mode in the Link Layer. L0 is the
default mode which provides the highest performance with the most power. Use edge detect to
count the number of instances that the link entered L0. Link power states are per link and per
direction, so for example the Tx direction could be in one state while Rx was in another. The phy
layer sometimes leaves L0 for training, which will not be captured by this event.
Reference Number: 327043-001 99
Intel® Xeon® Processor E5-2600 Product Family Uncore Performance Monitoring
RxL_BYPASSED
• Title: Rx Flit Buffer Bypassed
• Category: RXQ Events
• Event Code: 0x09
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times that an incoming flit was able to bypass the flit buffer and
pass directly across the BGF and into the Egress. This is a latency optimization, and should generally be the common case. If this value is less than the number of flits transfered, it implies that
there was queueing getting onto the ring, and thus the transactions saw higher latency.
RxL_CREDITS_CONSUMED_VN0
• Title: VN0 Credit Consumed
• Category: RX_CREDITS_CONSUMED Events
• Event Code: 0x1E
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses
a VN0 credit for the Rx Buffer). This includes packets that went through the RxQ and those that
were bypasssed.
Table 2-97. Unit Masks for RxL_CREDITS_CONSUMED_VN0
Extension
DRSbxxxxxxx1DRS:
NCBbxxxxxx1xNCB:
NCSbxxxxx1xxNCS:
HOMbxxxx1xxxHOM:
SNPbxxx1xxxxSNP:
NDRbxx1xxxxxNDR:
umask
[15:8]
VN0 credit for the DRS message class.
VN0 credit for the NCB message class.
VN0 credit for the NCS message class.
VN0 credit for the HOM message class.
VN0 credit for the SNP message class.
VN0 credit for the NDR message class.
Description
RxL_CREDITS_CONSUMED_VNA
• Title: VNA Credit Consumed
• Category: RX_CREDITS_CONSUMED Events
• Event Code: 0x1D
• Extra Select Bit: Y
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
• Definition: Counts the number of times that an RxQ VNA credit was consumed (i.e. message uses
a VNA credit for the Rx Buffer). This includes packets that went through the RxQ and those that
were bypasssed.
RxL_CYCLES_NE
• Title: RxQ Cycles Not Empty
• Category: RXQ Events
• Event Code: 0x0A
• Max. Inc/Cyc: 1, Register Restrictions: 0-3
100Reference Number: 327043-001
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.