Code Monkey home page Code Monkey logo

Comments (3)

gaozhangfei avatar gaozhangfei commented on July 22, 2024

b89d841

from uadk.

wangzhou avatar wangzhou commented on July 22, 2024

Please also add versions of kernel, uadk, openssl-uadk. and hardware information like numa info

from uadk.

gaozhangfei avatar gaozhangfei commented on July 22, 2024

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.

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.