Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing the KSAL zstd Algorithm Package

Install KSAL zstd on all nodes in the cluster. After you complete the following steps, an RPM package is generated, which can be used to install KSAL zstd.

Procedure

  1. Create a directory and go to the directory.
    1
    2
    mkdir /home/ksal_zstd
    cd /home/ksal_zstd
    
  2. Obtain BoostKit-boostsds-ksal-1.11.0.zip and save it to the /home/ksal_zstd directory.
  3. Decompress BoostKit-boostsds-ksal-1.11.0.zip in the /home/ksal_zstd directory.
    1
    unzip BoostKit-boostsds-ksal-1.11.0.zip
    
  4. Download zstd-1.5.6.tar.gz and save it to the /home/ksal_zstd directory.
  5. Click here to obtain the files required for compilation, including Makefile, ksal-zstd.patch, ksal_zstd.spec, and libksal_zstd_so_create.sh, and save them to the /home/ksal_zstd directory.
  6. Generate the RPM installation package of the KSAL zstd compression algorithm.
    1. Install rpmbuild.
      1
      2
      yum install rpmdevtools -y
      rpmdev-setuptree
      
    2. Move the rpmbuild directory to the /home/ksal_zstd directory.
      1. After running the rpmbuild installation command, modify the .rpmmacros file. Change %_topdir to /home/ksal_zstd/rpmbuild, as shown in the following figure.
        1
        vi /root/.rpmmacros
        

      2. Run the rpmbuild installation command again.
        1
        rpmdev-setuptree
        
    3. Build an RPM package.

      Run the following command in the /home/ksal_zstd directory to generate the RPM package for KSAL zstd installation and deployment:

      1
      sh libksal_zstd_so_create.sh
      

      The generated RPM package is stored in /home/ksal_zstd/rpmbuild/RPMS/aarch64/.

  7. Install the generated RPM package.
    1
    2
    cd /home/ksal_zstd/rpmbuild/RPMS/aarch64
    rpm -ivh boostsds-libksal-release-1.11.0.oe2203.aarch64.rpm
    
  8. Run the following command to check the RPM installation status:
    1
    rpm -qi boostsds-libksal-1.11.0-oe2203.aarch64
    
    Information similar to the following is displayed:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    Name        : boostsds-libksal
    Version     : 1.11.0
    Release     : oe2203
    Architecture: aarch64
    Install Date: Mon 16 Dec 2024 03:50:00 PM CST
    Group       : Unspecified
    Size        : 1378916
    License     : GPL
    Signature   : (none)
    Source RPM  : boostsds-libksal-1.11.0-oe2203.src.rpm
    Build Date  : Thu 18 Dec 2025 02:50:00 PM CST
    Build Host  : buildhost
    Summary     : Kunpeng Storage Acceleration Library
    Description :
    Kunpeng Storage Acceleration Library
    Product Name:           Kunpeng BoostKit
    Product Version:        25.2.T7
    Component Name:         BoostKit-KSAL
    Component Version:      1.11.0
    Component AppendInfo:   kunpeng
    
  9. Confirm the installation path.

    Run the following command to view the file list in the /usr/ksal_zstd/ directory and check whether the KSAL zstd dynamic library file and KSAL zstd header file are stored in this directory:

    1
    ll /usr/ksal_zstd
    

  10. After the KSAL zstd algorithm package is installed:
    • To enable the KSAL zstd algorithm in Ceph, deploy a Ceph cluster and enable the algorithm using the ceph-ksal-zstd-plugin.patch file.
    • To directly invoke KSAL to optimize system performance, you can skip Compiling and Deploying Ceph and refer to KSAL Development Reference.