Tuning Guidelines
Performance tuning is a complex process involving multiple aspects. You need to carefully consider the hardware and OS, subsystem design, and algorithms. Follow certain principles to obtain an optimal tuning result.
The system performance varies depending on the hardware, OS, and basic software in use. It is also affected by the design of each subsystem, algorithms used, and compiler settings.
Follow the guidelines down below to obtain an optimal tuning result:
- During the performance analysis, analyze the resource bottleneck of the system from multiple aspects. If the system performance is poor in one aspect, it may not be caused by the system but other factors. For example, 100% usage of CPU may be caused by insufficient memory capacity or busy memory scheduling.
- Adjust only one parameter of a specific aspect that affects the performance at a time. It is difficult to determine the parameter that causes the impact on performance when multiple parameters are adjusted at the same time.
- During the system performance analysis, the performance analysis tool also consumes certain CPU and memory resources, which may worsen the resource bottleneck of the system.
- Ensure that the program runs properly after performance tuning.
- The performance tuning is a continuous process. The result of each tuning should be fed to the subsequent version development.
- Performance tuning cannot compromise code readability and maintainability.
Parent topic: Overview