Comments (3)
from uadk.
Please also add versions of kernel, uadk, openssl-uadk. and hardware information like numa info
from uadk.
The root cause is poll thread using wd_rsa_poll_ctx trying to get any package,
which call driver->recv keep retying since -EAGAIN.
But recv fetch spin_lock, so send is impacted since competing spin_lock.
How to solve:
1, use semaphore, only calling wd_rsa_poll_ctx after send.
This already exists in openssl-uadk, but uadk test application does not have, which we do not consider now.
- Even after send, there is still some time required before receive.
Move spin_lock from rsa to qm, make it smaller.
commit fa9ef24
Author: Zhangfei Gao [email protected]
Date: Mon Apr 19 09:35:46 2021 +0000
wd_rsa: remove spin_lock since qm already has lock
In async mode, polling thread call wd_rsa_poll_ctx, which keeps
trying driver->recv, but always fail with -WD_EAGAIN, performance
may impacted if lock is hold at this time.
Signed-off-by: Haojian Zhuang <[email protected]>
Signed-off-by: Zhangfei Gao <[email protected]>
commit 48d8d16
Author: Haojian Zhuang [email protected]
Date: Thu Apr 1 15:12:52 2021 +0800
hisi: qm: fix the lock in receiving operation
The lock actually need to protect more resources. Since there's another
lock in algorithm for synchronization mode, these resources are always
protected by lock in algorithm. Now fix it.
Signed-off-by: Haojian Zhuang <[email protected]>
from uadk.
Related Issues (20)
- kernel integrate vsva patches for verifying vsva feature HOT 3
- uacce support docker HOT 1
- uadk v1 can not work HOT 1
- uadk cipher perfmance is much worse than warpdrive perfmance when using multi-queue by test. HOT 1
- kae on uadk v1 still has issue HOT 2
- zip_sva_perf run hw file decompress failed HOT 1
- digest stream mode not supported
- Potential error(e.g. deadlock, ill performance) due to the unreleased lock HOT 4
- UADK multi-queue scheduling problem HOT 2
- UADK multi-threaded performance issues HOT 2
- uadk can not support nginx since cipher and digest can not re-enter HOT 1
- Can you show the version number in the code? HOT 5
- io page fault
- remove fmin in wd_util.c HOT 1
- libcrypto_wd.so should be libcrypto.so? HOT 1
- apt-get install libnuma-dev has issue after numa source code make install HOT 1
- compilation failure with GCC 12 HOT 1
- 虚拟机跑SEC业务概率出错 HOT 2
- In guest system, init2 fails since wd_get_usable_list failed to get usable devices(-19)! HOT 2
- cipher modes supported by v1 not supported by UADK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uadk.