<p>Sorry for my poor english.</p>

<p>I'm tuning java vm that work in k8s pod.</p>

<p>Normally java vm shouldn't use all memory. Some memory should used by kernel for cache, buffer, resource management and so on.
I knew container share host os kernel. 
The question is Does resource limit of pods include kernel memory such as file cache.</p>

<p>Thanks.</p>

<p>As the question you asked, I assumed you have searched about how to setup limitation for Memory in K8S ->  <code>https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#how-pods-with-resource-limits-are-run</code></p>

<p>In this section you will know the limitation you set would be convert to docker command(if you use docker in k8s), <code>spec.containers[].resources.limits.memory</code> -> <code>--memory=""</code></p>

<p>and if you check the official document about kernel memory in docker -> <code>https://docs.docker.com/config/containers/resource_constraints/#--kernel-memory-details</code> which hasnt mentioned in k8s document. So I assume the value should be the default value for different type of linux system.</p>
