In the near future the SCM is predicted to modify the form of new programs, the access form to storage, and the way that storage devices themselves are built. Therefore, a combination between the SCM and a designated Memory Allocation Manager (MAM) that will allow the programmer to manually control the different memories in the memory hierarchy will be likely to achieve a new level of performance for memory-aware data structures. Although the manual MAM seems to be the optimal approach for multi-level memory hierarchy management, this technique is still very far from being realistic, and the chances that it would be implemented in current codes using High Performance Computing (HPC) platforms is quite low. This premise means that the most reasonable way to introduce the SCM into any usable and popular memory system would be by implementing an automated version of the MAM using the fundamentals of paging algorithms, as used for two-level memory hierarchy. Our hypothesis is that achieving appropriate transferability between memory levels may be possible using ideas of algorithms employed in current virtual memory systems, and that the adaptation of those algorithms from a two-level memory hierarchy to an N-level memory hierarchy is possible. In order to reach the conclusion that our hypothesis is correct, we investigated various paging algorithms, and found the ones that could be adapted successfully from two-level memory hierarchy to an N-level memory hierarchy. We discovered that using an adaptation of the Aging paging algorithm to an N-level memory hierarchy results in the best performances in terms of Hit/Miss ratio. In order to verify our hypothesis we build a simulator called "DeMemory simulator" for analyzing our algorithms as well as for other algorithms that will be devised in the future.
Page Table Management for Heterogeneous Memory Systems
现代企业服务器越来越多地采用分层存储器系统,该系统结合了低延迟DRAM和大容量但高延迟的非易失性主存储器(NVMM),例如英特尔的Optane DC PMM。先前的工作集中在分层存储器系统上的数据的有效放置和迁移上,但是没有研究页表的最佳放置。页表的显式和有效放置对于具有高TLB未命中率的大内存占用应用程序至关重要,因为当页表页放置在NVMM中时,它们会导致显着更高的页遍历延迟。我们表明,(i)页表页可以结束在NVMM上,即使有足够的DRAM内存可用,以及(ii)页表页溢出到NVMM由于DRAM内存压力不迁移回来后,当内存在DRAM中可用。我们研究了分层存储器系统中页表放置的性能影响,并提出了一种高效透明的页表管理技术,该技术(i)对数据和页表页应用不同的放置策略,(ii)通过将页表的小但关键的部分放置在DRAM中来引入页表页的区分策略,以及(iii)通过在DRAM和NVMM之间透明地迁移页表页来动态地和明智地管理页表的其余部分。我们在一个配备了运行Linux的英特尔Optane NVMM的真实系统上的实现将页表遍历周期平均减少了12%,总周期平均减少了20%。与各种默认的Linux内核技术相比,对于一组合成的和真实世界的大内存占用应用程序,这将运行时平均提高了20%。