Software-Based Flat Nested Page Table in Sunway Architecture
-
摘要: 嵌套页表是一种硬件辅助的内存虚拟化模型,当前国产申威处理器上未能提供该模型所需的硬件支持.然而申威架构特有的特权程序可编程接口可以通过软件构建必要的底层硬件支持.该接口运行在申威硬件模式上,具有最高CPU特权级.基于这一特性,在申威平台上实现了软件平滑嵌套页表模型swFNPT,通过软件设计优化弥补了硬件支持上的不足.特别地,使用平滑(1级)嵌套页表代替4级嵌套页表来提升页表查询效率.使用多组测试程序测试该设计的性能.在申威1621服务器上的实验结果表明:swFNPT整体性能良好.SPEC CPU 2006的平均内存虚拟化开销约为3%,SPEC CPU 2017中大工作集程序的平均开销约为4%,STREAM内存带宽测试结果显示swFNPT的带宽损失低于3%.这一工作可以为申威架构的硬件辅助虚拟化发展提供有价值的参考.Abstract: The nested page table (NPT) model is an effective, hardware-assisted memory virtualization solution. However, the current Sunway processor lacks hardware support of NPT. However, the privileged programmable interface of Sunway architecture can be used to emulate the necessary hardware support with software. Hardware mode is the CPU privilege level unique to Sunway. This interface runs on the Sunway hardware mode with the highest CPU privileged level. In this paper, we propose the software-based flat nested page table (swFNPT) model for Sunway. In the programmable interface, we software-implement the hardware functions required by the nested page table model, such as nested page table walking. The new design makes up for the deficiency in hardware support through software optimization. In particular, the flat (one-level) nested page table is used to improve the efficiency of page walk. We use multiple benchmarks to test the performance of swFNPT. The experiments on a Sunway 1621 server show the promising performance of swFNPT. The average memory virtualization overhead of SPEC CPU 2006 is about 3% and the average overhead for SPEC CPU 2017 benchmarks with large working set is about 4%. The STREAM result shows that the memory bandwidth loss of swFNPT is less than 3%. Therefore, this paper provides a valuable reference for future development of hardware-assisted virtualization of Sunway server.
-
-
期刊类型引用(7)
1. Ke SHANG,Weizhen HE,Shuai ZHANG. Review on Security Defense Technology Research in Edge Computing Environment. Chinese Journal of Electronics. 2024(01): 1-18 . 必应学术
2. 郑嘉诚,何亨,陈月佳,肖天哲. 边缘计算中基于区块链的轻量级密文访问控制方案. 计算机系统应用. 2024(04): 69-81 . 百度学术
3. 叶文慧,王金花,张文政,周宇,刘妍妍. 移动边缘计算场景下基于身份的安全认证密钥协商协议. 通信技术. 2024(04): 400-408 . 百度学术
4. 孙剑明,赵梦鑫. 边缘计算下差分隐私的应用研究综述. 计算机科学. 2024(S1): 896-904 . 百度学术
5. 常敬超,汤红波,游伟. 基于信誉反馈的边缘设备信任评估算法. 信息工程大学学报. 2024(04): 485-491 . 百度学术
6. 陈珍珠,周纯毅,苏铓,高艳松,付安民. 面向机器学习的安全外包计算研究进展. 计算机研究与发展. 2023(07): 1450-1466 . 本站查看
7. 何勇,张航宇,郭智鸿,苏桐桐,李虎,王凯乐. 基于区块链的分布式无人机数据安全模型. 计算机测量与控制. 2023(10): 153-159 . 百度学术
其他类型引用(21)
计量
- 文章访问数: 406
- HTML全文浏览量: 4
- PDF下载量: 147
- 被引次数: 28