Docker best practices about enabling memory and sw

2019-07-09 01:58发布

问题:

From Docker docs:

Enabling memory and swap accounting does induce both a memory overhead and a performance degradation even when Docker is not in use. The memory overhead is about 1% of the total available memory. The performance degradation is roughly 10%.

What is the best practices here?

  • always enable this kernel feature
  • enable only on hosts with multiple containers running
  • may be something smart else
标签: docker