NVSwap: Latency-Aware Paging using Non-Volatile Main Memory

Yekang Wu, Xuechen Zhang
{"title":"NVSwap: Latency-Aware Paging using Non-Volatile Main Memory","authors":"Yekang Wu, Xuechen Zhang","doi":"10.1109/nas51552.2021.9605418","DOIUrl":null,"url":null,"abstract":"Page relocation (paging) from DRAM to swap devices is an important task of a virtual memory system in operating systems. Existing Linux paging mechanisms have two main deficiencies: (1) they may incur a high I/O latency due to write interference on solid-state disks and aggressive memory page reclaiming rate under high memory pressure and (2) they do not provide predictable latency bound for latency-sensitive applications because they cannot control the allocation of system resources among concurrent processes sharing swap devices.In this paper, we present the design and implementation of a latency-aware paging mechanism called NVSwap. It supports a hybrid swap space using both regular secondary storage devices (e.g., solid-state disks) and non-volatile main memory (NVMM). The design is more cost-effective than using only NVMM as swap spaces. Furthermore, NVSwap uses NVMM as a persistent paging buffer to serve the page-out requests and hide the latency of paging between the regular swap device and DRAM. It supports in-situ paging for pages in the persistent paging buffer avoiding the slow I/O path. Finally, NVSwap allows users to specify latency bounds for individual processes or a group of related processes and enforces the bounds by dynamically controlling the resource allocation of NVMM and page reclaiming rate in memory among scheduling units. We have implemented a prototype of NVSwap in the Linux kernel-4.4.241 based on Intel Optane DIMMs. Our results demonstrate that NVSwap reduces paging latency by up to 99% and provides performance guarantee and isolation among concurrent applications sharing swap devices.","PeriodicalId":135930,"journal":{"name":"2021 IEEE International Conference on Networking, Architecture and Storage (NAS)","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2021-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE International Conference on Networking, Architecture and Storage (NAS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/nas51552.2021.9605418","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Page relocation (paging) from DRAM to swap devices is an important task of a virtual memory system in operating systems. Existing Linux paging mechanisms have two main deficiencies: (1) they may incur a high I/O latency due to write interference on solid-state disks and aggressive memory page reclaiming rate under high memory pressure and (2) they do not provide predictable latency bound for latency-sensitive applications because they cannot control the allocation of system resources among concurrent processes sharing swap devices.In this paper, we present the design and implementation of a latency-aware paging mechanism called NVSwap. It supports a hybrid swap space using both regular secondary storage devices (e.g., solid-state disks) and non-volatile main memory (NVMM). The design is more cost-effective than using only NVMM as swap spaces. Furthermore, NVSwap uses NVMM as a persistent paging buffer to serve the page-out requests and hide the latency of paging between the regular swap device and DRAM. It supports in-situ paging for pages in the persistent paging buffer avoiding the slow I/O path. Finally, NVSwap allows users to specify latency bounds for individual processes or a group of related processes and enforces the bounds by dynamically controlling the resource allocation of NVMM and page reclaiming rate in memory among scheduling units. We have implemented a prototype of NVSwap in the Linux kernel-4.4.241 based on Intel Optane DIMMs. Our results demonstrate that NVSwap reduces paging latency by up to 99% and provides performance guarantee and isolation among concurrent applications sharing swap devices.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
NVSwap:使用非易失性主存的延迟感知分页
从DRAM到交换设备的页面重定位(分页)是操作系统中虚拟内存系统的一项重要任务。现有的Linux分页机制有两个主要缺陷:(1)由于固态磁盘上的写干扰和高内存压力下的内存页面回收率,它们可能导致较高的I/O延迟;(2)它们不能为对延迟敏感的应用程序提供可预测的延迟绑定,因为它们不能控制共享交换设备的并发进程之间的系统资源分配。在本文中,我们介绍了一种称为NVSwap的延迟感知分页机制的设计和实现。它支持使用常规辅助存储设备(例如,固态磁盘)和非易失性主存储器(NVMM)的混合交换空间。这种设计比仅使用NVMM作为交换空间更具成本效益。此外,NVSwap使用NVMM作为持久的分页缓冲区来处理出页请求,并隐藏常规交换设备和DRAM之间的分页延迟。它支持对持久分页缓冲区中的页面进行原位分页,避免了缓慢的I/O路径。最后,NVSwap允许用户为单个进程或一组相关进程指定延迟界限,并通过动态控制NVMM的资源分配和调度单元之间内存中的页面回收率来强制执行该界限。我们在基于Intel Optane dimm的Linux内核4.4.241中实现了NVSwap的原型。我们的结果表明,NVSwap将分页延迟减少了99%,并在共享交换设备的并发应用程序之间提供了性能保证和隔离。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
NVSwap: Latency-Aware Paging using Non-Volatile Main Memory Deflection-Aware Routing Algorithm in Network on Chip against Soft Errors and Crosstalk Faults PLMC: A Predictable Tail Latency Mode Coordinator for Shared NVMe SSD with Multiple Hosts Efficient NVM Crash Consistency by Mitigating Resource Contention Characterizing AI Model Inference Applications Running in the SGX Environment
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1