News for hackers. Stuff that matters.
Re:The CPU Cost of Networking on a Linux Host by sleepydog on Friday May 15, 2020 @03:28PM (#23196350)
It's not as bad as it sounds as a few of those transitions can be implemented via zero-copy APIs, so you're really just passing around pointers to shared memory.
Re:The CPU Cost of Networking on a Linux Host by dahfizz on Friday May 15, 2020 @03:40PM (#23196485)
The transitions happen efficiently, but the packet still has to spend cpu time traversing the network stack at all 6 hops. So the packet moves all the way through the routing / natting tables of the host, and then very quickly ends up in the VM. Then has to traverse the whole routing / natting tables of the VM.....
Re:The CPU Cost of Networking on a Linux Host by toast0 on Friday May 15, 2020 @04:44PM (#23197175)
If there's NAT involved (as was posited in the start of the thread), then you can't just copy, you also need to modify.