4 ms·
> 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 do
by zeroxfe 10y ago
> 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.)