You can enable the CPU high-performance mode, Transparent Huge Pages (THP), and jemalloc optimization to improve performance. The three modes are independent of each other. You can enable one or more of them.
[object Object]
Run the following commands on the bare-metal server (BMS) to enable high-performance CPU mode and THP to improve performance.
Enabling high-performance CPU mode increases TPS by approximately 3% while maintaining the same latency constraint.
[object Object]If transparent huge page is enabled, the throughput is more stable after multiple tests.
[object Object][object Object]
[object Object]
[object Object]
To optimize jemalloc, you need to compile the jemalloc dynamic link library and import the compiled dynamic link library to the script. The procedure is as follows:
Click to download the jemalloc source code, and compile and install the jemalloc by referring to the
[object Object]file.Before starting the service, import the jemalloc dynamic link library to the environment by running the following command:
[object Object]Where
[object Object]is the path to[object Object].