Rate This Document
Findability
Accuracy
Completeness
Readability

Installing and Uninstalling the Data Compression SDK

  • Build an algorithm project using Huawei-developed lossless compression algorithms. The project identifies features of raw data and dynamically matches the optimal compression algorithm model to improve the data reduction rate. In addition, instruction-level optimization is performed for Kunpeng processors to accelerate compression.
  • The Data Compression SDK contains kunpeng-dc and kunpeng-dc-devel. kunpeng-dc is used to run Kunpeng data compression applications, and kunpeng-dc-devel is used to develop Kunpeng data compression applications. Therefore, to run a Kunpeng data compression application, you only need to install kunpeng-dc. To develop a Kunpeng data compression application, you need to install both kunpeng-dc and kunpeng-dc-devel.

Prerequisites

  • Processor architecture: Kunpeng 920
  • Server: Kunpeng server
  • OS: openEuler 20.03 LTS SP1, openEuler 22.03 LTS SP1, or Kylin V10 SP1

Installation Directory Structure

Table 1 Structure of the kunpeng-dc installation directory

File Type

Installation Path

Description

.so file

/usr/lib64/libdas.so

/usr/lib64/libglz.so

/usr/lib64/libksal.so

.so file installation path.

Table 2 Structure of the kunpeng-dc-devel installation directory

File Type

Installation Path

Description

Header file

/usr/include/glz.h

/usr/include/ksal/das.h

/usr/include/ksal/ksal_crc.h

/usr/include/ksal/ksal_erasure_code.h

Installation paths of header files.

Installing and Uninstalling the Data Compression SDK

  1. Obtain the DC SDK installation packages.
  2. Decompress the installation packages.
    1
    2
    tar -zxvf kunpeng-dc-xxx.aarch64.tar.gz
    tar -zxvf kunpeng-dc-devel-xxx.aarch64.tar.gz
    
  3. Go to the decompressed directories and install the SDK packages.

    kunpeng-dc:

    1
    rpm -ivh kunpeng-dc-xxx.aarch64.rpm
    
    kunpeng-dc-devel:
    1
    rpm -ivh kunpeng-dc-devel-xxx.aarch64.rpm
    
  4. Uninstall the SDK.

    kunpeng-dc-devel:

    1
    rpm -e kunpeng-dc-devel
    
    kunpeng-dc
    1
    rpm -e kunpeng-dc
    
  • xxx indicates the version number.
  • Obtain the latest TAR.GZ installation packages from the URLs given above, decompress the packages, and install the software.
  • The kunpeng-dc-devel and kunpeng-dc software packages are dependent on each other. You must install the kunpeng-dc software package before installing the kunpeng-dc-devel software package. Before uninstalling the kunpeng-dc software package, ensure that the kunpeng-dc-devel software package has been uninstalled.
  • Ensure that kunpeng-dc and kunpeng-dc-devel software packages are of the same version.