Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

In this practice, the Kunpeng Performance Boundary Analyzer is used to quickly identify performance issues. It is preliminarily identified that hotspot system functions are frequently invoked, indicating a performance bottleneck. Then, the System Profiler is used to analyze the hotspot functions, and a flame graph is used to examine the call stack. The analysis shows that I/O system calls account for a high proportion of execution time. Source code inspection further indicates that this issue is caused by high overhead from frequent read system calls. Next, the memory mapping (mmap) method is used to reduce data copies and system calls, optimizing the large-file read logic and thereby reducing I/O latency and improving program performance.

Networking Environment

This practice uses CentOS 7.6 as an example. Perform similar operations for other OSs on the Kunpeng platform.

Table 1 Networking environment

Item

Description

CPU

Kunpeng processor

OS

CentOS 7.6

Tool

Kunpeng Performance Boundary Analyzer and System Profiler

Practice demo

Link

Tuning Strategy

  1. Use the Kunpeng Performance Boundary Analyzer to demarcate and locate application issues.
  2. Then, use the System Profiler to analyze hotspot functions and identify that I/O system calls account for a large proportion of execution time. After detailed analysis, optimize the source code and verify the effectiveness of the optimization.