我要评分
获取效率
正确性
完整性
易理解

Asynchronous Test

After installing the KAELz4 library, perform operations described in this section to test its asynchronous functions and performance using test scripts in /KAE/KAELz4/test/kzip.

  1. Install KAELz4. For details, see Installation Using Source Code.
  2. Test the functions of asynchronous interfaces of the KAELz4 library.
    1
    2
    cd KAE/KAELz4/test/kzip
    sh runFunc.sh
    
  3. Enable the fast mode of the driver and set a specific valid compression window length to achieve the maximum performance.
    1
    2
    3
    4
    rmmod hisi_zip  
    modprobe hisi_zip perf_mode=1 uacce_mode=2 pf_q_num=256
    export KAE_LZ4_WINTYPE=8 
    export KAE_LZ4_COMP_TYPE=8
    
  4. Test the performance of asynchronous interfaces of the KAELz4 library.
    1. 8 KB block
      1
      2
      cd KAE/KAELz4/test/kzip
      sh runPerf.sh -A kaelz4async_block -m 1 -n 270000 -s 8
      

      Command output:

      1
      2
      3
      4
      kzip perf parameter: algorithm: kaelz4async_block, multi process 1, threadNum 1, stream length: 1024(KB), loop times: 270000, window_bits : 15, level : 6, chunk: 8
      compress filename : ../../../scripts/compressTestDataset/calgary
      kaelz4async_block compress perf result when loop 270000 times: file:../../../scripts/compressTestDataset/calgary. chunk 8 kb. time used: 58649811 us, speed = 13.941 GB/s iops = 1827.627k, compress latency avg = 0.547us, latency avg per io = 35.018us
      compress_size is 495878498755B = 472906.594MB, compress_rate is 1.770
      
    2. 8 KB frame
      1
      2
      cd KAE/KAELz4/test/kzip
      sh runPerf.sh -A kaelz4async_frame -m 1 -n 270000 -s 8
      

      Command output:

      1
      2
      3
      4
      kzip perf parameter: algorithm: kaelz4async_frame, multi process 1, threadNum 1, stream length: 1024(KB), loop times: 270000, window_bits : 15, level : 6, chunk: 8
      compress filename : ../../../scripts/compressTestDataset/calgary
      kaelz4async_frame compress perf result when loop 270000 times: file:../../../scripts/compressTestDataset/calgary. chunk 8 kb. time used: 58952173 us, speed = 13.869 GB/s iops = 1818.254k, compress latency avg = 0.550us, latency avg per io = 35.199us
      compress_size is 497489513676B = 474442.969MB, compress_rate is 1.765