forked from TencentOS/TencentOS-kernel
cgroup/memory: disable kmem limit by default
Disable kmem limit by default, and it can be enabled by kernel parameter.
This commit is contained in:
parent
a7777b0c29
commit
23e7bcb226
|
|
@ -85,7 +85,7 @@ struct mem_cgroup *root_mem_cgroup __read_mostly;
|
|||
static bool cgroup_memory_nosocket;
|
||||
|
||||
/* Kernel memory accounting disabled? */
|
||||
static bool cgroup_memory_nokmem;
|
||||
static bool cgroup_memory_nokmem = true;
|
||||
|
||||
/* Whether the swap controller is active */
|
||||
#ifdef CONFIG_MEMCG_SWAP
|
||||
|
|
@ -6230,8 +6230,8 @@ static int __init cgroup_memory(char *s)
|
|||
continue;
|
||||
if (!strcmp(token, "nosocket"))
|
||||
cgroup_memory_nosocket = true;
|
||||
if (!strcmp(token, "nokmem"))
|
||||
cgroup_memory_nokmem = true;
|
||||
if (!strcmp(token, "kmem"))
|
||||
cgroup_memory_nokmem = false;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue