Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The speed of reading DMA buf's data is too slow #133

Open
stone-sjj opened this issue Mar 23, 2021 · 3 comments
Open

The speed of reading DMA buf's data is too slow #133

stone-sjj opened this issue Mar 23, 2021 · 3 comments

Comments

@stone-sjj
Copy link

stone-sjj commented Mar 23, 2021

I find that when DMA rx data end, and I use send(fd, recv_buf, len, 0) to send data to net, the speed is too slow,why?

My platform is zynq-7000 and the interface is HP, do anyone konw how to solve the problem? Thanks!

@stone-sjj stone-sjj changed the title read DMA buf's data is too slow The speed of reading DMA buf's data is too slow Mar 23, 2021
@stone-sjj
Copy link
Author

Now I guess this phenomenon is relevant to cache of DMA, but I don't konw how to solve it .

@ccasas777
Copy link

ccasas777 commented Oct 25, 2022

I have the same issue with zynq-7000. Do you know how to solve it?
It seems to be relevant to a cache issue as you said
What I did:

  1. add dma-coherent: it led to some errors in the data.
  2. try to use a zero-copy method moving dam buffer data directly used by the socket: I failed.
    However, even the idea succeed. The problem is still not solved, because Eventually, I need the data process in the user space before sending data out.

@Yjxslhz
Copy link

Yjxslhz commented Oct 23, 2024

how do you solve the problem?Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants