Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuration File

Updated on 2023-11-16 GMT+08:00

This section describes each configuration item in the static acceleration configuration file and dynamic acceleration configuration file.

Static Acceleration Configuration File

The following figure shows the default configuration of static acceleration. You can customize a configuration file to optimize applications.

Table 1 Configuration information

Module

Description

binary

Binary file attributes. For details about the binary parameters, see Table 2.

parameter

A collection of user-defined parameters. A parameter set is generated based on this collection of parameters. At least one parameter must be defined.

You can run the llvm-bolt -h command to view all parameters.

include

Parameters that must be contained in the collection of user-defined parameters. Multiple parameters are allowed. The logical relationship between parameters is AND.

The key of the configuration item is the parameter name, and the value is specified, for example, frame-opt=none.
NOTE:
  • If the value cannot be specified or does not need to be specified, end the key with an equal sign (=), for example, frame-opt=.
  • If include and exclude contain the same parameter, exclude precedes include.

exclude

Parameters that do not need to be contained in the collection of user-defined parameters. Multiple parameters are allowed. The logical relationship between parameters is AND.

NOTE:
  • If the value cannot be specified or does not need to be specified, end the key with an equal sign (=), for example, frame-opt=.
  • If include and exclude contain the same parameter, exclude precedes include.
Table 2 binary parameters

Item

Value Type

Default Value

Description

binary_out_path

String

"/data/hce-wae-auto"

Defines the path for saving the binary file that is automatically generated.

binary_file_suffix

String

"blot.auto"

Defines the suffix of the binary file name that is automatically generated.

Example Static Acceleration Configuration File

[binary]
binary_out_path = "/data/llvm_auto"
binary_num_threshold = 1000
binary_file_suffix = "blot.auto"

[parameter]
parameters =
    --align-blocks              # Parameter prefix -- can be added.
    frame-opt                   # If you do not need to specify the value of a parameter in the collection of user-defined parameters, you do not need to end the key with an equal sign (=).
    align-functions=1            # If the value of a parameter in the collection of user-defined parameters is specified, the value of the parameter is 1 in all parameter combinations in the generated parameter set.

[include]
align-blocks=                   # If the parameter value cannot be specified, the configuration item is still ended with an equal sign (=).
[exclude]
frame-opt=none                  # The parameter and its value are specified. Parameter combinations whose parameter is frame-opt and value is none are filtered out from the generated parameter set.
indirect-call-promotion=         # The parameter is specified and is of the enumeration type. All parameter combinations whose parameter is frame-opt are filtered out from the generated parameter set.

Dynamic Acceleration Configuration File

The following figure shows the default configuration of dynamic acceleration. You can customize a configuration file to optimize applications.

Table 3 Configuration information

Module

Description

[mission] Parameters to be configured for the application

log-type

Indicates the way to collect logs during runtime. Only the instrumentation is supported

hotpatch-type

Indicates the way to hotpatch the optimized segments. Only mode1 (ptrace) is supported.

snapshot-path

Indicates the path for storing the optimized binary snapshot file.

origin-exe

Indicates the location of the original application. This parameter must be specified when logs are collected using instrumentation.

[stop-strategy]: Policy for stopping application optimization. Select one of the configurations.

run-times

Specifies how many times the application is optimized. Optimization stops when the number is reached. Currently, an application can be optimized only once.

period

Specifies the optimization period, in seconds. Optimization stops when the period expires. The value ranges from 1 to 600.

condition

Specifies the optimization condition. Optimization stops when this condition is met. This parameter is reserved.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback