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.
mkdir /home/ksal_zstd cd /home/ksal_zstd
- Obtain BoostKit-KSAL_1.10.0.zip and save it to the /home/ksal_zstd directory.
- Decompress BoostKit-KSAL_1.10.0.zip in the /home/ksal_zstd directory.
unzip BoostKit-KSAL_1.10.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.
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.
vi /root/.rpmmacros

- Run the rpmbuild installation command again.
rpmdev-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:
sh libksal_zstd_so_create.sh
The generated RPM package is stored in /home/ksal_zstd/rpmbuild/RPMS/aarch64/.
- Install rpmbuild.
- Install the generated RPM package.
cd /home/ksal_zstd/rpmbuild/RPMS/aarch64 rpm -ivh ksal_zstd-1.0.0-openEuler.aarch64.rpm
- Run the following command to check the RPM installation status:
rpm -qi ksal_zstd-1.0.0-openEuler.aarch64
Information similar to the following is displayed:Name : ksal_zstd Version : 1.0.0 Release : openEuler Architecture: aarch64 Install Date: Mon Nov 11 09:19:08 2024 Group : Unspecified Size : 937262 License : Commercial Signature : (none) Source RPM : ksal_zstd-1.0.0-openEuler.src.rpm Build Date : Sat Nov 9 19:16:51 2024 Build Host : ceph2 Summary : ksal zstd compress
- 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:
ll /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: KSAL Developer Guide