cgroup
tem 2 opções para controle de memória:
memory.use_hierarchy = 1
: hierarquia de uso memory.use_hierarchy = 0
: use hierarquia plana, de acordo com esta resposta
Qual é a diferença entre os dois? Eu acho que hierarquia é hierarquia, o que "flat" significa aqui?
Eu li a documentação do cgroup aqui explicou o suporte hierárquico:
In the diagram above, with hierarchical accounting enabled, all memory usage of e, is accounted to its ancestors up until the root (i.e, c and root), that has memory.use_hierarchy enabled. If one of the ancestors goes over its limit, the reclaim algorithm reclaims from the tasks in the ancestor and the children of the ancestor.
accounted to its ancestors up until the root
? If one of the ancestors goes over its limit, the reclaim algorithm reclaims from the tasks in the ancestor and the children of the ancestor.