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

Running the KAE

  1. Test the RSA2048 algorithm performance.
    1. Test the synchronization performance.
      • Soft algorithm (without calling the KAE library): The value of sign/s is 771.1.
        1
        openssl speed -elapsed rsa2048
        
      • Hard algorithm (specifying the KAE to call KAE library): The value of sign/s is 3202.5.
        1
        openssl speed -elapsed -engine kae rsa2048
        
    2. Test the asynchronous performance.
      • Soft algorithm (without calling the KAE library): The value of sign/s is 770.7.
        1
        openssl speed -elapsed -async_jobs 36 rsa2048
        
      • Hard algorithm (specifying the KAE to call KAE library): The value of sign/s is 53689.2.
        1
        openssl speed -engine kae -elapsed -async_jobs 36 rsa2048
        
  2. Check the KAE resource queue value (256 by default) during the hard algorithm performance test (calling the KAE library) in step 1. If the value decreases, the KAE library has taken effect.
    • Method 1:
      1
      watch -d cat /sys/class/uacce/hisi_hpre-*/attrs/available_instances
      
    • Method 2:
      1
      cat /sys/class/uacce/hisi_hpre-*/attrs/available_instances
      
    If the KAE resource queue value is reduced to 0 during the performance test, you can modify the KAE resource queue configuration.
    1. Open the hisi_hpre.conf configuration file.
      1
      vi /etc/modprobe.d/hisi_hpre.conf
      
    2. Modify the KAE resource queue.

      Increase the value of the KAE resource queue, that is, change the value of pf_q_num from 256 to 1024.

    3. Restart the OS.
      1
      reboot
      
    4. The KAE resource queue value is 1024.
      1
      2
      3
      cat /sys/class/uacce/hisi_hpre-*/attrs/available_instances
      Or
      watch -d cat /sys/class/uacce/hisi_hpre-*/attrs/available_instances