Updated on 2024-09-14 GMT+08:00

Overview

Workload Accelerator is a tool provided by Huawei Cloud for application optimization.

It works in two ways:

  • Static acceleration
    Static acceleration collects the PMU monitoring information on the CPU when an application is running, and statically builds a new high-performance binary based on the collected information. It may require only adjustments to compiler parameters, without involving any other code modifications. There are two optimization methods in static acceleration.
  • Dynamic acceleration

    Dynamic acceleration directly accelerates the application process without interrupting services.

Table 1 Advantages and disadvantages of the optimization methods

Optimization Method

Pros

Cons

Static acceleration

Applications are optimized on the basis of binary executable files, and the program code does not need to be modified.

After the optimization, you need to restart the applications.

Dynamic acceleration

Application processes are optimized directly. Applications do not need to be restarted. Optimization results can be saved using application snapshots. In addition, binary file source tracing can be ensured, and application processes can be continuously optimized for iteration until the performance improvement reaches the bottleneck.

Data can only be collected using instrumentation, and optimization can be performed only once.

Constraints

  • Workload Accelerator can be used only with HCE 2.0 of the x86 architecture.
  • Only the root user can use Workload Accelerator.

Process for Using Workload Accelerator to Optimize Applications

  1. Install the Workload Accelerator.
  2. Optimize the application through static acceleration or dynamic acceleration.