Setting limits for the sampling facility buffer
Use the chcpumf command to set the minimum and maximum buffer size for the CPU-measurement sampling facility.
Before you begin
For each CPU, the CPU-measurement sampling facility has a buffer for writing sample data. The required buffer size depends on the sampling function and the sampling interval that is used by the perf tool. The sampling facility starts with an initial buffer size that depends on the expected requirements, your IBM Z® hardware, and the available hardware resources. During the sampling process, the sampling facility increases the buffer size if required.
The sampling facility is designed for autonomous buffer management, and you do not usually need
to intervene. You might want to change the minimum or maximum buffer size, for example, for one of
the following reasons:
- There are considerable resource constraints on your system that cause perf sampling to malfunction and sample data to be lost.
- As an expert user of perf and the sampling facility, you want to explore results with particular buffer settings.
Procedure
Use the chcpumf command to set the minimum and maximum buffer sizes.
Example
# chcpumf -V -m 500 -x 1000
Sampling buffer sizes:
Minimum: 500 sample-data-blocks
Maximum: 1000 sample-data-blocks