Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

In this practice, the Kunpeng Performance Boundary Analyzer is used to quickly identify the problem scope. It is initially determined that the hotspot functions are frequently invoked by the system and exhibit performance bottlenecks. Subsequently, the System Profiler is used to further analyze these hotspot functions, including examining the call stack through flame graphs. The analysis reveals that the high proportion of I/O system calls is due to the significant overhead of 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.