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
- Create a directory and go to the directory.
1 2
mkdir /home/ksal_zstd cd /home/ksal_zstd
- Obtain BoostKit-boostsds-ksal-1.11.0.zip and save it to the /home/ksal_zstd directory.
- Decompress BoostKit-boostsds-ksal-1.11.0.zip in the /home/ksal_zstd directory.
1unzip BoostKit-boostsds-ksal-1.11.0.zip - Download zstd-1.5.6.tar.gz and save it to the /home/ksal_zstd directory.
- 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.
- Generate the RPM installation package of the KSAL zstd compression algorithm.
- Install rpmbuild.
1 2
yum install rpmdevtools -y rpmdev-setuptree
- Move the rpmbuild directory to the /home/ksal_zstd directory.
- After running the rpmbuild installation command, modify the .rpmmacros file. Change %_topdir to /home/ksal_zstd/rpmbuild, as shown in the following figure.
1vi /root/.rpmmacros
- Run the rpmbuild installation command again.
1rpmdev-setuptree
- After running the rpmbuild installation command, modify the .rpmmacros file. Change %_topdir to /home/ksal_zstd/rpmbuild, as shown in the following figure.
- 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:
1sh libksal_zstd_so_create.shThe generated RPM package is stored in /home/ksal_zstd/rpmbuild/RPMS/aarch64/.
- Install rpmbuild.
- 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
- Run the following command to check the RPM installation status:
1rpm -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
- 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:
1ll /usr/ksal_zstd
- 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.
Parent topic: Developer Guide