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/
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