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
Tips:
- You can specify both, the minimum and the maximum buffer size with a single command.
- Use the -V parameter to to display the minimum and maximum buffer settings that apply as a result of the command.
Example: To change the minimum buffer size to 500 times the size of a
sample-data-block and the maximum buffer size to 1000 times the size of a sample-data-block, issue:
# chcpumf -V -m 500 -x 1000
Sampling buffer sizes:
Minimum: 500 sample-data-blocks
Maximum: 1000 sample-data-blocks