我要评分
获取效率
正确性
完整性
易理解

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

  1. 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 tag.

    The download link of the installation package is displayed.

  2. Perform compilation and installation.
    1
    2
    ./configure -prefix=/opt/glibc-2.31
    make && make install
    
  3. When compiling the Nginx and ATS applications, specify the glibc version as 2.31.
    1
    CFLAGS="-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"