Commit 0ef48d13 authored by Kefeng Wang's avatar Kefeng Wang Committed by Liu Shixin
Browse files

hugetlb: Add huge page allocation limit

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8TKCL


CVE: NA

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

The user wants to reserve a certain amount of memory for normal
non-huge page, that is, the hugetlb can't allowed to use all the
memory.

Add a new kernel parameters "hugepage_prohibit_sz=" to set size
for normal non-huge page reserved, and when alloc huge page,
let's fail if the new allocating exceeds the limit.

Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: default avatarLiu Shixin <liushixin2@huawei.com>
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent b71995b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment