Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

Use the hotspot function analysis and lock and wait analysis functions of the System Profiler to sample and analyze multi-thread applications in the target environment, locate performance bottlenecks, and tune the application performance based on the analysis result.

Networking Environment

This practice uses openEuler 20.03 LTS as an example. Perform similar operations for other OSs on the Kunpeng platform.

Table 1 Networking environment

Item

Description

CPU

Kunpeng 920

OS

openEuler 20.03 LTS

GCC

7.3.0

Application

Application that runs multiple threads accumulation

Tool

Kunpeng DevKit

Practice demo

Link 1

Link 2

NOTE:

Generally, it takes 20 seconds to run the program. The program data cannot be collected once the program ends. You can modify the count parameter in the source code to increase the running duration or start the collection task immediately after the program starts.

Tuning Strategy

  1. Before tuning, use the System Profiler to sample and analyze the multithreaded application in the target environment.
  2. Analyze the hotspot functions in the application and tune the application through related functions.
  3. Perform hotspot function analysis and lock and wait analysis on the optimized application to verify the tuning effect.