News for hackers. Stuff that matters.
Re:Kata Containers: Virtual Machines that feel and perform l... by hodgesrm on Monday July 17, 2023 @01:48PM (#36761492)
> The big problem with Katacontainers is not whether or not they are slightly faster or slower than containers, but the fixed memory allocation which means you must first know and then allocate the maximum amount of memory they might ever need up front.

Conversely the problem with containers is that memory allocation including the OS page cache is not guaranteed. That's bad for a lot of applications, especially databases. It seems Docker has some support for shared page cache but it's not in the Kubernetes pod spec as far as I can see. [0] You would probably need some kind of annotations and a specialized controller to make this work.

[0] https://github.com/kubernetes/kubernetes/issues/43916

Re:Kata Containers: Virtual Machines that feel and perform l... by dharmab on Monday July 17, 2023 @09:50PM (#36766764)
In Kubernetes 1.25+ page cache usage accounting is improved thanks to use of cgroupsv2. https://kubernetes.io/docs/concepts/architecture/cgroups/