No Permission to Obtain Device Resources in KAE Decompression Performance Tests
Symptom
KAE is installed and deployed. During the KAE decompression performance test, a message is displayed, indicating that the character devices in the /dev directory cannot be opened. Error message: "open /dev/hisi_zip-5 failed, errno = 13!"

Key Process and Cause Analysis
Query the permissions on devices under /dev.
1 | ll | grep hisi |
As shown in the following figure, only the root user has the read and write permissions. When a common user runs the KAE performance test program, the system displays a message indicating lack of the permission for opening character devices in the /dev directory.

If KAE is installed by the root user and the service is executed by a common user, KAE may fail to be enabled because the common user does not have the permission to obtain related device resources. In this case, you need to grant required permissions on devices prefixed with hisi in /dev to the common user.
Conclusion and Solution
- Create a kaegroup user group, add device files to the user group, change device file permissions, and add the user who needs to use KAE to the user group.
1 2 3 4
groupadd kaegroup chown :kaegroup /dev/hisi_* chmod 660 /dev/hisi_* usermod -aG kaegroup KAE_user_name
- Query the permissions on devices under /dev.
1ll | grep hisi

- Run the performance test command again.
1./kaezip_perf -m 8 -l 10240 -n 1000
