3 ms·
> With how cheap ram is these days, sharing a kernel is pointless I don't think ram use is the reason to share the kernel - the main advantages are startup tim
by piinbinary 7y ago
> With how cheap ram is these days, sharing a kernel is pointless
I don't think ram use is the reason to share the kernel - the main advantages are startup time and IO performance.
- nullwasamistake 7y agoIO is actually better in VM these days due to PCI support for device sharing. IO sharing in containers uses virtualized software networks that generally don't perform as well as hardware that supports SR-IOV Startup time is definitely a consideration but you could lower this to container levels in many cases by keeping a couple VM's "warm" but not running
- ecnahc515 7y agoContainers access disks and devices the same as anything on the host. For networking there's just as many options as with VMs. You can directly pass a specific NIC to the container without any overhead, and you can also use other options that have no more overhead than a regular network interface on the host. There's no way virtualized access to IO should be better than the host, so the containers should be no worse than that.
- nullwasamistake 7y agoThere's more software overhead for container networking because the host needs to maintain NAT between the containers and host network. With SR-IOV on VM's each gets it's own network stack and it's handled in hardware by the NIC. VM networking is as fast as the host. Container networking is not