提交 dcc3be6a 编写于 作者: A Alex Shi 提交者: Pekka Enberg

slub: Discard slab page when node partial > minimum partial number

Discarding slab should be done when node partial > min_partial.  Otherwise,
node partial slab may eat up all memory.
Signed-off-by: NAlex Shi <alex.shi@intel.com>
Acked-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 9f264904
...@@ -1953,7 +1953,7 @@ static void unfreeze_partials(struct kmem_cache *s) ...@@ -1953,7 +1953,7 @@ static void unfreeze_partials(struct kmem_cache *s)
new.frozen = 0; new.frozen = 0;
if (!new.inuse && (!n || n->nr_partial < s->min_partial)) if (!new.inuse && (!n || n->nr_partial > s->min_partial))
m = M_FREE; m = M_FREE;
else { else {
struct kmem_cache_node *n2 = get_node(s, struct kmem_cache_node *n2 = get_node(s,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册