Re:Why we use the Linux kernel's TCP stack
by zeroxfe on Monday July 11, 2016 @11:26AM
(#12071682)
> If you're doing the same thing the kernel would be doing, the userspace process should be strictly slower due to context switches.
Actually, you would cut down on context switches as you ship packets between kernel and user-space. This allows you to do all kinds of intelligent filtering and other header processing that can vastly improve latency in gateway systems (proxies, routers, VM hosts, etc.)
Actually, you would cut down on context switches as you ship packets between kernel and user-space. This allows you to do all kinds of intelligent filtering and other header processing that can vastly improve latency in gateway systems (proxies, routers, VM hosts, etc.)