Upgrading the glibc Version
Purpose
The default glibc version is 2.17, which has poor performance in memory data copy on ARM servers and may cause performance differences in memory performance-sensitive scenarios. You can upgrade the version to 2.31 to improve the performance.
Procedure
- Download the latest glibc version (glibc 2.28 or later is recommended).
Go to https://sourceware.org/git/?p=glibc.git, find the required glibc version under tags, and click the corresponding .

The download link of the installation package is displayed.

- Perform compilation and installation.
1 2
./configure -prefix=/opt/glibc-2.31 make && make install
- When compiling the Nginx and ATS applications, specify the glibc version as 2.31.
1CFLAGS="-I/opt/glibc-2.31/include" LDFLAGS="-L/opt/glibc-2.31/lib/ -Wl,-rpath=/opt/glibc-2.31/lib/ -Wl,--dynamic-linker=/opt/glibc-2.31/lib/ld-2.31.so"
Parent topic: OS Tuning