Commit 4bd64dfd authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/dynamic_pool: fill dpool with HugeTLB 1G pages

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


CVE: NA

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

This patch imlements the function of filling dpool with HugeTLB 1G pages.
The user should prepare <number> of 1G HugeTLB pages on node of <nid> and
then input the command in the corresponding memcg:
	`echo <nid> <number> > dhugetlb.nr_pages`

The pages is coming from HugeTLB 1G free pages and will be returned to
HugeTLB when destroy the dpool.

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