欢迎访问中国科学院大学学报,今天是

中国科学院大学学报 ›› 2021, Vol. 38 ›› Issue (3): 423-432.DOI: 10.7523/j.issn.2095-6134.2021.03.017

• 计算机科学 • 上一篇    

一种计算机系统内存扩展方案

郝晓冉, 陈岚, 倪茂, 潘磊   

  1. 中国科学院微电子研究所 EDA中心, 北京 100029
  • 收稿日期:2019-09-26 修回日期:2019-11-19 发布日期:2021-05-17
  • 通讯作者: 陈岚
  • 基金资助:
    Supported by National Internet of Things and Smart City Key Project Docking (Z181100003518002), Beijing Science and Technology Project(Z171100001117147), and Beijing Natural Science Foundation(4184106)

A method to extend available main memory for computer systems

HAO Xiaoran, CHEN Lan, NI Mao, PAN Lei   

  1. EDA Center of Chinese Academy of Sciences, Institute of Microelectronics, Chinese Academy of Sciences, Beijing 100029, China
  • Received:2019-09-26 Revised:2019-11-19 Published:2021-05-17
  • Supported by:
    Supported by National Internet of Things and Smart City Key Project Docking (Z181100003518002), Beijing Science and Technology Project(Z171100001117147), and Beijing Natural Science Foundation(4184106)

摘要: 在计算机系统中,当DRAM内存空间即将用尽时,操作系统将启动内存交换机制将内存中不常用的数据换出至底层存储设备(如硬盘)中,当此数据再次被访问时需将其重新换入至内存中。内存数据的换入换出通常以页(4 KB)为单位进行,当被换出的内存页中包含其他热点数据时,会造成频繁的内存数据换入换出,带来冗余的系统I/O操作,影响系统性能。针对这一问题,利用SSD扩展DRAM内存空间,提出一种以对象为粒度的内存管理方案,在选择被换出内存数据时可以对象为单位,降低热点数据被换出内存的可能性,从而减少不必要的系统I/O操作。与Linux内存交换机制相比,本文提出的内存管理方案可以提升最高73.3%的系统性能。

关键词: 内存扩展, 固态硬盘, 访存密集型应用, 混合内存

Abstract: In operating systems, swapping mechanism provides extended main memory space for memory-intensive applications. However, page-granularity swapping causes extra system I/O when objects are smaller than a page. This paper uses NAND flash-based SSD to extend DRAM main memory, and proposes an object-granularity hybrid main memory management scheme to reduce extra system I/O by caching as many hot objects as possible in DRAM. Compared to Linux-swap system, the proposed memory management scheme improves system performance by up to 47.5% for microbenchmarks and 73.3% for real-world memory-intensive workloads.

Key words: memory extension, flash-based SSD, memory-intensive application, hybrid memory

中图分类号: