计算机科学与探索 ›› 2016, Vol. 10 ›› Issue (6): 799-810.DOI: 10.3778/j.issn.1673-9418.1603007

• 数据库技术 • 上一篇    下一篇

PCM混合主存系统的写感知主存管理算法

何爱华1,2+,岳丽华2,吴章玲2,郭有强1   

  1. 1. 蚌埠学院 计算机科学与技术系,安徽 蚌埠 233030
    2. 中国科学技术大学 计算机科学与技术学院,合肥 230027
  • 出版日期:2016-06-01 发布日期:2016-06-07

Write-Aware Memory Management in PCM-Based Hybrid Memory Systems

HE Aihua1,2+, YUE Lihua2, WU Zhangling2, GUO Youqiang1   

  1. 1. Department of Computer Science and Technology, Bengbu University, Bengbu, Anhui 233030, China
    2. School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China
  • Online:2016-06-01 Published:2016-06-07

摘要: 相变存储器(phase change memory,PCM)凭借字节可寻址,读取速度快(纳秒级),高存储密度,低能耗等优点,在目前基于DRAM(dynamic random access memory)的主存扩展达到瓶颈的情形下,已经成为最具前途的主存存储介质之一,但是PCM有高写延迟,寿命有限等缺陷,因此出现了DRAM/PCM混合主存架构。提出了一种以减少PCM写和保持命中率为目标的混合主存管理算法——写感知的CLOCK算法(CLOCK with a write-aware strategy,CLOCKW)。已有研究主要基于写临近信息(recency of writes,RW)来预测页面写热度,CLOCKW引入内在写距离(inter-write-distance,IWD)概念,并结合写临近信息来预测页面写热度,从而把写密集页面放置在DRAM。此外,CLOCKW通过记录有限的历史写操作信息,将新置换进的页面放在合适的存储介质,避免不必要的页面迁移。最后,基于CLOCK算法的CLOCKW满足虚拟主存管理的低代价要求。实验显示,CLOCKW在保持命中率前提下,可以有效减少PCM写次数。

关键词: 相变存储器, 混合主存, 写感知, 主存管理

Abstract: Phase change memory (PCM) has been increasingly viewed as an attractive technology to incorporate into the memory hierarchy since the scalability of DRAM (dynamic random access memory) is approaching its limit. Although PCM has higher density and lower idle power consumption than DRAM while exhibiting byte-addressability and read latencies in the nanosecond range, it has poor write performance and limited endurance. Therefore, researchers have proposed hybrid memory systems involving both PCM and DRAM. This paper presents CLOCKW (CLOCK with a write-aware strategy), a novel hybrid memory management scheme that is designed to not only minimize writes to PCM, but also maintain a high hit ratio. The purpose of CLOCKW is trying to make write-intensive pages resident in DRAM. Particularly, differing from previous studies, which use RW (recency of writes) to estimate future access patterns, this paper introduces the concept of IWD (inter-write-distance), and combines it with RW to estimate hotness of future writes. In addition, by additionally keeping a record of a limited number of replaced pages’ write references and placing the newly reached page in an appropriate storage medium when page fault occurs, unnecessary migrations between DRAM and PCM can be avoided. More importantly, CLOCKW is based on the CLOCK scheme, and its running cost is affordable for virtual memory management. The evaluation shows that CLOCKW can efficiently reduce PCM writes without degrading the hit ratio.

Key words: phase change memory, hybrid memory, write-aware, buffer management