Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

In the Kunpeng processor, the CRC32 instruction optimization feature uses Kunpeng CRC32 hardware instructions to replace the CRC32 software algorithm, lowering the CRC32 calculation overhead. This document uses MySQL as an example to describe how to use the CRC32 instruction optimization feature on a Kunpeng server running the openEuler OS. For other databases, you can refer to this document to perform adaptation and optimization.

The Linux kernel contains the C language implementation of the CRC32 algorithm, but the performance is low and may become a system performance bottleneck. This problem is more obvious when the proportion of CRC32 function calls in kernel space is high. To solve this problem, you can use Kunpeng CRC32 hardware instructions to replace the software implementation of the CRC32 algorithm, thereby improving system performance. This feature improves the MySQL sysbench write performance by 5%.

Compatibility

The CRC32 instruction optimization feature is compatible with other features. For details about the compatibility between MySQL features, see Compatibility Between Features.