4 ms·
Important note, DPDK and VPP are not faster by the virtue of being based in userspace. It is best to say that they just provide fastest way in between interrupt
by baybal2 8y ago
Important note, DPDK and VPP are not faster by the virtue of being based in userspace. It is best to say that they just provide fastest way in between interrupt handler, and the piece of userspace code. The application will then have to reimplement most of the network stack functions that run in kernel in itself. The speedup is there because the application author can freely slim down the network stack to minimal. Secondly to that DPDK took some deliberation on better driver buffer management, ensuring zero copy path, interrupt and syscall efficiency.
- monocasa 8y agoAFAIK, you don't even run interrupts off the NIC if you're doing DPDK; the overhead is too high. You poll instead, and just dedicate a core.
- baybal2 8y agoI'm unsure. What I'm imagining is that NICs for which DPDK is made have option to do interrupts like "hey, we have just run out of 50% of buffer! Driver, go offload packets to RAM in bulk now"
- blattimwind 8y ago> It is best to say that they just provide fastest way in between interrupt handler I thought DPDK and friends don't use interrupts and instead map the buffer areas (for ring buffers etc.) used by the NIC into their process address space, directly polling those structures.
- baybal2 8y agoI have to check myself. I can't quite remember, but them simply polling dma buffers is also a possibility. What confuses me is that deep in my memory something tells that DPDK had some kind of "deterministic mode" with guaranteed "zero drop at below n packets per n nanoseconds" that is driven by ring buffer "rollover sense" interrupts. Or may be it just uses those to set the poll rate.
- shaklee3 8y agoRight, but vpp tries to solve, at least part of this, by implementing many of the user space protocols. The only concern I have is I don't know how Cisco plans to monetize it, or why they're paying people to work on it. It seems very anti-cisco.
- wmf 8y agoVPP is ~15 years old and Cisco already monetized it in their own products.