Performance tuning
The simplest statement that can be made about the impact of Db2® native encryption is that it effectively reduces the physical I/O bandwidth on the Db2 system. How your workload reacts to this change determines the impact to its overall performance.
- The amount and speed of CPU available for encryption and decryption, or the existence of CPU hardware acceleration support.
- The amount of buffer pool page reuse by the workload or, how often the workload brings in new pages or forces old ones out.
- The volume of physical read or write operations in the buffer pool relative to the throughput efficiency of the background processes.
- The amount of non-buffer pool I/O such as LOBs.
- Shelter the workload from the physical I/O by reducing I/O wait through normal tuning actions where possible. For example, increase the buffer pool size to avoid having queries that are waiting on physical I/O.
- Introduce parallelism for any work that is doing the physical I/O.
Do a full performance tuning exercise on a newly encrypted system, as new and possibly different bottlenecks could be introduced from the reduced physical I/O volume. Follow the normal Db2 tuning exercises to ensure that I/O latency is reduced. If excess CPU capacity exists, revisit areas where physical I/O bottlenecks or latency exist to see whether parallelism can be increased in those areas. For more information, see Performance overview and Tuning and Monitoring Database System Performance.