Commit 0bc0d0d5 authored by Liu Shixin's avatar Liu Shixin Committed by Yongqiang Liu
Browse files

dhugetlb: backport dynamic hugetlb feature

hulk inclusion
category: feature
bugzilla: 46904, https://gitee.com/openeuler/kernel/issues/I6BDME


CVE: NA

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

This feature has already beed supported on x86_64 and this is the origin
description:

 Dynamic hugetlb which is based on Hugetlb, supports to be splited
 dynamically in a specified cgroup. We add a hugetlb_pool in a
 mem_cgroup to manage dynamic hugetlb for corresponding cgroup.
 After dynamic hugepages are allocated for a cgroup, these hugepages
 can be used as 1G/2M/4K pages by split/merge opreation.

It is now supported on arm64. This feature will be limited to depends on
ARM64_4K_PAGES and not support cont-bits hugepage. We merge the previous
patches into one patch which is patch[1]. While merge the code ,we found
some code can be isolated by config DYNAMIC_HUGETLB, so we add patch[2] to
re-isolated them. In patch[3], we restrict the feature on mentioned limit.
The patch[4] add skip of dissolve hugepage which may conflict with memory
hotplug and memory failure. The patch[5] set DYNAMIC_HUGETLB to y in
hulk_defconfig to enable by default.

This patch includes all previous patches and the patches list is recorded
in bugzilla.

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