Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Watch
Unwatch
Watching
Releases Only
Ignoring
456
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
986
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【OLK-5.10】hugetlb_vmemmap特性增强
Done
#I5GVFO
Task
刘世鑫
Opened this issue
2022-07-13 14:35
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 回合hugetlb_vmemmap特性后续的几个增强: 1. Patch series "Free the 2nd vmemmap page associated with each HugeTLB page", v7. 进一步优化内存节省,对于2M大页,只需要保留一个页的struct page。 2. Enable HUGETLB_PAGE_FREE_VMEMMAP for arm64 支持在arm64上使能hugetlb_vmemmap特性 3. cleanup hugetlb_vmemmap 重新整理了hugetlb_vmemmap的代码 4. add hugetlb_optimize_vmemmap sysctl 支持通过sysctl控制开关hugetlb_vmemmap特性 5. 交换hugtlb_vmemmap和dynamic hugetlb的优先级 当开启dynamic hugetlb特性时(默认关闭),会关闭hugetlb vmemmap特性。 测试记录: 1. 测试了接口有效性 2. 测试了大页优化效果 3. 测试了selftest中关于大页的测试用例 ``` ----------------------- disable hugetlb vmemmap ----------------------- [PASS] ---------------------- enable hugetlb vmemmap ---------------------- [PASS] --------------------------- test 2M optimization effect --------------------------- enable free=26419320, disabled free=26275368 [PASS] --------------------------- test 1G optimization effect --------------------------- enable free=20092104, disabled free=19930088 [PASS] --------------------- running hugepage-mmap --------------------- Returned address is 0x7fa0f3400000 First hex is 0 First hex is 3020100 [PASS] -------------------- running hugepage-shm -------------------- shmid: 0x0 shmaddr: 0x7fd4bf400000 Starting the writes: Starting the Check...Done. [PASS] ------------------- running map_hugetlb ------------------- Default size hugepages Mapping 256 Mbytes Returned address is 0x7fca8e400000 First hex is 0 First hex is 3020100 [PASS] ------------------------ running hugepage-vmemmap ------------------------ Returned address is 0x7f9f04200000 whose pfn is 107a00 [PASS] --------------------------- running userfaultfd_hugetlb --------------------------- nr_pages: 64, nr_pages_per_cpu: 1 testing UFFDIO_ZEROPAGE: done. testing signal delivery: done. testing events (fork, remap, remove): userfaults: 64 missing (64), 0 wp (0) [PASS] ```
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 回合hugetlb_vmemmap特性后续的几个增强: 1. Patch series "Free the 2nd vmemmap page associated with each HugeTLB page", v7. 进一步优化内存节省,对于2M大页,只需要保留一个页的struct page。 2. Enable HUGETLB_PAGE_FREE_VMEMMAP for arm64 支持在arm64上使能hugetlb_vmemmap特性 3. cleanup hugetlb_vmemmap 重新整理了hugetlb_vmemmap的代码 4. add hugetlb_optimize_vmemmap sysctl 支持通过sysctl控制开关hugetlb_vmemmap特性 5. 交换hugtlb_vmemmap和dynamic hugetlb的优先级 当开启dynamic hugetlb特性时(默认关闭),会关闭hugetlb vmemmap特性。 测试记录: 1. 测试了接口有效性 2. 测试了大页优化效果 3. 测试了selftest中关于大页的测试用例 ``` ----------------------- disable hugetlb vmemmap ----------------------- [PASS] ---------------------- enable hugetlb vmemmap ---------------------- [PASS] --------------------------- test 2M optimization effect --------------------------- enable free=26419320, disabled free=26275368 [PASS] --------------------------- test 1G optimization effect --------------------------- enable free=20092104, disabled free=19930088 [PASS] --------------------- running hugepage-mmap --------------------- Returned address is 0x7fa0f3400000 First hex is 0 First hex is 3020100 [PASS] -------------------- running hugepage-shm -------------------- shmid: 0x0 shmaddr: 0x7fd4bf400000 Starting the writes: Starting the Check...Done. [PASS] ------------------- running map_hugetlb ------------------- Default size hugepages Mapping 256 Mbytes Returned address is 0x7fca8e400000 First hex is 0 First hex is 3020100 [PASS] ------------------------ running hugepage-vmemmap ------------------------ Returned address is 0x7f9f04200000 whose pfn is 107a00 [PASS] --------------------------- running userfaultfd_hugetlb --------------------------- nr_pages: 64, nr_pages_per_cpu: 1 testing UFFDIO_ZEROPAGE: done. testing signal delivery: done. testing events (fork, remap, remove): userfaults: 64 missing (64), 0 wp (0) [PASS] ```
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register