Commit 49f8fc34 authored by Kemeng Shi's avatar Kemeng Shi Committed by liubo
Browse files

hugepage: add sysctl for hugepage alloc and mig

euleros inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7RO5Q
CVE: NA
Reference: https://gitee.com/openeuler/kernel/commit/80ed6b3203c960b286e1fd5d8db1b39a19cdc40c



-------------------------------------------------

Add /proc/sys/kernel/hugepage_pmem_allocall switch. Set 1 to allowed all
memory in pmem could alloc for hugepage. Set 0(default) hugepage alloc is
limited by zone watermark as usual.
Add /proc/sys/kernel/hugepage_mig_noalloc switch. Set 1 to forbid new
hugepage alloc in hugepage migration when hugepage in dest node runs
out. Set 0(default) to allow hugepage alloc in hugepage migration as
usual.

Signed-off-by: default avatarKemeng Shi <shikemeng@huawei.com>
Reviewed-by: default avatarlouhongxiang <louhongxiang@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent cc4309cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment