Sampling Rate - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 40. OProfile
Processor
Itanium 2
TIMER_INT
ppc64/power4
ppc64/power5
ppc64/970
Table 40.3. Default Events
The number of events that can be monitored at one time is determined by the number of counters for
the processor. However, it is not a one-to-one correlation; on some processors, certain events must
be mapped to specific counters. To determine the number of counters available, execute the following
command:
cat /dev/oprofile/cpu_type
The events available vary depending on the processor type. To determine the events available for
profiling, execute the following command as root (the list is specific to the system's processor type):
op_help
The events for each counter can be configured via the command line or with a graphical interface. For
more information on the graphical interface, refer to
cannot be set to a specific event, an error message is displayed.
To set the event for each configurable counter via the command line, use opcontrol:
opcontrol --event=<event-name>:<sample-rate>
Replace <event-name> with the exact name of the event from op_help, and replace <sample-
rate> with the number of events between samples.

40.2.2.1. Sampling Rate

By default, a time-based event set is selected. It creates a sample every 100,000 clock cycles per
processor. If the timer interrupt is used, the timer is set to whatever the jiffy rate is and is not user-
settable. If the cpu_type is not timer, each event can have a sampling rate set for it. The sampling
rate is the number of events between each sample snapshot.
When setting the event for the counter, a sample rate can also be specified:
opcontrol --event=<event-name>:<sample-rate>
Replace <sample-rate> with the number of events to wait before sampling again. The smaller the
count, the more frequent the samples. For events that do not happen frequently, a lower count may be
needed to capture the event instances.
356
Default Event for Counter
CPU_CYCLES
(none)
CYCLES
CYCLES
CYCLES
Description
CPU Cycles
Sample for each timer interrupt
Processor Cycles
Processor Cycles
Processor Cycles
Section 40.8, "Graphical
Interface". If the counter

Advertisement

Table of Contents
loading

Table of Contents