Code Monkey home page Code Monkey logo

Comments (5)

tbarbette avatar tbarbette commented on August 23, 2024

Hi,
I'm not familiar with moongen, could you give me the configuration to simply send and receive packets using 2 ports? And the one to forward using 2 ports?

What I saw with my x540 dual ports NIC is that packets cannot be received at line rate, 31 out of 40 is more or less what I found out, yes. Both with Netmap and DPDK. TX at 40G is not a problem though. What you're saying is that MoonGen can forward packets at 40G, with one or two cores per NIC?

If you use only one port per dual-port, you can achieve line rate. So I guessed the problem is with the dual port NICs and therefore concluded that was the limitation of the NICs as any tools, including DPDK's and Netmap's one couldn't achive more than ~33G of forwarding.
So your results surprise me. In your FastClick configuration with batching, the virtual call should not be the problem. I'd guess there could be a difference of DPDK configuration : offloadings activated in the NIC, cache, packet pool size, ... I'll check that with your MoonGen configure files and compare. I may have miss to activate/deactivate some fancy feature of the NIC allowing to RX at that rate. I don't support GRO in FastClick, if the packets are aggregated at RX, it could explain the difference.

By default the FromDPDKDevice elements will share all available threads (so here, 4 per FromDPDKDevice for 2 elements) and they will use one queue per thread automatically. I guess it craches because you have more queue than core and I didn't protect something. I suggest letting FromDPDKDevice handle the good number of queue, and just change the amount of threads. In that configuration one core per NIC should be enough, 2 at max. Having more queue will just slow down things. The amount of core is not the problem here.

Tom

from fastclick.

gkatsikas avatar gkatsikas commented on August 23, 2024

Hi,

I do not forwards traffic with MoonGen. Machine 01 above has 4 NICs and I start one Tx and one Rx thread per NIC (in two different cores) so each NIC is sending packets to Click and getting packets back from Click.
All 4 NICs operate at the same time, on the same CPU socket and they can Tx/Rx at line rate.
In Click, when 2 NICs kick in at the same time, throughput decreases from 14.88 to 11.7 Mpps.

I can send you my MoonGen script offline :)

Georgios

from fastclick.

tbarbette avatar tbarbette commented on August 23, 2024

You achieved 40G with some configuration or not? I'm not sure to understand.

from fastclick.

tbarbette avatar tbarbette commented on August 23, 2024

Any news on this? Can I close?

from fastclick.

gkatsikas avatar gkatsikas commented on August 23, 2024

You can close it for now. It has been quite some time since I did these experiments so I need to repeat them in order to confirm. My findings when using FastClick from my experiments match completely with the reported throughput in your paper though.

from fastclick.

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.