News for hackers. Stuff that matters.
Re:The CPU Cost of Networking on a Linux Host by Matthias247 on Friday May 15, 2020 @04:42PM (#23197157)
Correct me if I'm wrong, but I don't think the container transition introduces any additional copies and hops. Containers are not VMs. They just use isolation that the kernel enforces. Whether you send a packet from inside or outside a container to the network should be exactly the same amount of work unless you opt-in to run some extra software-level NAT step.
Re:The CPU Cost of Networking on a Linux Host by shanemhansen on Friday May 15, 2020 @05:22PM (#23197597)
You're wrong and right, because "container" is ill-defined. If you run your container in the host network namespace, then there's zero overhead. It's more common to have your container's "nic" be one end of a veth pair. That's not free.

Finally many platforms like docker, in the past, will spin up userspace proxies (docker-proxy) which is even more expensive.

Re:The CPU Cost of Networking on a Linux Host by dahfizz on Friday May 15, 2020 @08:22PM (#23199123)
You are correct that containers can be implemented that way, but docker containers aren't. They use NATing / bridging / veth pairs, which is much more usable but also much slower.