51
General Software Discussion / Re: Are you familiar with kubernetes/containers?
« Last post by wraith808 on December 23, 2022, 11:23 PM »According to Youtube channel 'Dave's Garage' Docker containers can be up to 15% slower than running the same tool on bare metal. He also tried VMs on the same hardware and performance losses were between 1 and 3%.-Shades (December 23, 2022, 06:24 AM)
That really depends on how it's set up and have nothing to do with containerization. Containers run on Linux namespaces which are native to the Linux Kernel so are not inherently slower, and can be run on bare metal rather than using a hypervisor. A bare metal install of Linux runs in namespace 0. It's not inherently better performing than any other namespace. As a result, a container can perform the same as native hardware.
There are however some practical bottlenecks. Containers usually don't mount native disk volumes; they tend to map images from the parent namespace. Namespaces usually don't have direct network access. Namespaces usually aren't fully privileged.
You can mount native volumes to a namespace. You can attach network devices to a container. You can make a container privileged. You can even remove some of the barriers between namespaces.
Long story short: CPU and memory performance should pretty much always be the same as native, unless you constrain them. Disk and network performance will be reduced unless you specifically address those limitations.

Recent Posts




