Data prefetch optimization for AIX systems on POWER architecture
You can use Data Stream Control Register (DSCR) to control the enablement, depth, and data prefetch settings for an AIX® system on the POWER® architecture.
When you activate data prefetch on an AIX system, the applications that contain predictable data access patterns might benefit from data prefetching. For such applications, you can set the operating system prefetch depth or use the setting that is most beneficial. If aggressive data prefetching is set, the performance might degrade for applications that contain unpredictable data access patterns.
You can view the current settings of the hardware stream mechanism and set a system-wide value for DSCR. You can set or unset the prefetch depth for an AIX system on the POWER architecture temporarily or permanently. Use the root user privileges to set or unset DSCR.
When you set or unset DSCR, consider the following points:
- Set DSCR only if the server maximizes the amount of information that it is able to access with minimum memory latency.
- Unset DSCR on a partition, only if the setting benefits all the applications that are running on the partition. You must consider the effect on application throughput and processor usage when you evaluate the performance.
Examples
- Example 1:
- To view the number of hardware streams, and default prefetch depth of the operating system, run
the dscrctl command with the following
parameters:
For more information about the dscrctl command, see the IBM® AIX documentation at https://www.ibm.com/docs/en/aix.dscrctl -q - Example 2:
- To disable data prefetch optimization for the current session,
run the dscrctl command with the following parameters:
dscrctl -n -s 1 - Example 3:
- To disable data prefetch optimization persistent across system
startup operation, run the dscrctl command with
the following parameters:
dscrctl -b -s 1 - Example 4:
- To set the operating system default for data prefetch optimization
for the current session, run the dscrctl command
with the following parameters:
dscrctl -n -s 0 - Example 5:
- To set the operating system default for data prefetch optimization
persistent across system startup operation, run the dscrctl command
with the following parameters:
dscrctl -b -s 0