Running the KAE
- Test the RSA2048 algorithm performance.
- Test the synchronization performance.
- Soft algorithm (without calling the KAE library): The value of sign/s is 771.1.
1openssl speed -elapsed rsa2048
- Hard algorithm (specifying the KAE to call KAE library): The value of sign/s is 3202.5.
1openssl speed -elapsed -engine kae rsa2048
- Soft algorithm (without calling the KAE library): The value of sign/s is 771.1.
- Test the asynchronous performance.
- Soft algorithm (without calling the KAE library): The value of sign/s is 770.7.
1openssl speed -elapsed -async_jobs 36 rsa2048
- Hard algorithm (specifying the KAE to call KAE library): The value of sign/s is 53689.2.
1openssl speed -engine kae -elapsed -async_jobs 36 rsa2048
- Soft algorithm (without calling the KAE library): The value of sign/s is 770.7.
- Test the synchronization performance.
- 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:
1watch -d cat /sys/class/uacce/hisi_hpre-*/attrs/available_instances
- Method 2:
1cat /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.- Open the hisi_hpre.conf configuration file.
1vi /etc/modprobe.d/hisi_hpre.conf - 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.
- Restart the OS.
1reboot
- 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

- Method 1:
Parent topic: Feature Guide