4 ms·
You have to pick either kernel or user space, not both. Either implement it purely in the kernel or purely in user space. In reality pure user space is faster
by darren0 12y ago
You have to pick either kernel or user space, not both. Either implement it purely in the kernel or purely in user space. In reality pure user space is faster, just look at Snabb switch https://github.com/SnabbCo/snabbswitch/wiki https://github.com/SnabbCo/snabbswitch/wiki
- wmf 12y agoSnabb and DPDK aren't magic though. Because they poll you have to dedicate a whole core to the vSwitch. Containers are a different case than VMs because the packets start in the kernel TCP/IP stack; to get into a userspace vSwitch they'd have to exit the kernel.
- CMCDragonkai 12y agoSo which would you prefer? Userspace or Kernel?
- wmf 12y agoThe kernel has a lot of accumulated network functionality that has already been optimized for performance (under certain assumptions). Let's use it.