Rate This Document
Findability
Accuracy
Completeness
Readability

Installing KHSEL

KHSEL is a Hyperscan enhancement package used to improve the scan performance of Hyperscan.

  1. Obtain the KHSEL-related packages BoostKit-ksl_2.5.0.zip, khsel_enhanced.patch, and build.sh based on Software Requirements.
  2. Decompress BoostKit-ksl_2.5.0.zip to obtain the binary KSL RPM package.
  3. Install KSL.
    1
    rpm -ivh boostkit-ksl-xxxx.aarch64.rpm
    

    After the installation, the system automatically adds the path to the lib folder, that is, /usr/local/ksl/lib, to the environment variable LD_LIBRARY_PATH.

    In the preceding command, xxxx indicates the version number.

  4. Obtain the Hyperscan source package in ZIP.
    1
    wget https://gitee.com/kunpengcompute/hyperscan/archive/refs/tags/v5.4.2.aarch64.zip
    
  5. Decompress the source package, and place khsel_enhanced.patch and build.sh in the same directory as the source package.
    1
    unzip hyperscan-v5.4.2.aarch64.zip
    
  6. Run the build.sh script to integrate the patch file into the open source code of Hyperscan.
    1
    sh build.sh
    
  7. Compile Hyperscan based on instructions from step 2 in Compiling Hyperscan.