On Sat, Oct 8, 2016, 00:15 ravi prasad l r <raviprasa...@gmail.com> wrote:
> Matthias, how are disabling swap for the containers ? > We disabled and removed all swap on the nodes, and changed new installs not to include any. Kubelet seems to set MemorySwap (libcontainer config) to -1 by default here: > > https://github.com/kubernetes/kubernetes/blob/v1.4.0/pkg/kubelet/dockertools/docker_manager.go#L662 > > which means /sys/fs/cgroup/memory.memsw.limit_in_bytes is set to > unlimited (mem + swap) inside the container. > Ah, that would explain why it's behaving different from our older container system. > Vish, isn't the Memory+swap should also be set to container.Resources. > Limits.Memory().Value() above. Are am i missing something. > That would match my expectation in the absence of a separate swap limit. /MR > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.