arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.10682cs.AR
收藏

SkyByte:通过操作系统与硬件协同设计构建高效的内存语义CXL基SSD

SkyByte: Architecting an Efficient Memory-Semantic CXL-based SSD with OS and Hardware Co-design

Haoyang Zhang, Yuqi Xue, Yirui Eric Zhou, Shaobo Li, Jian Huang

AI总结:

针对CXL-SSD访问延迟高、粒度不匹配导致性能差的问题,提出SkyByte架构,通过OS与硬件协同设计优化上下文切换、缓存结构与页迁移,实现性能与I/O效率的大幅提升。

摘要:

基于CXL的固态硬盘(CXL-SSD)为低成本扩展主内存容量提供了一种颇具前景的途径。然而,CXL-SSD面临性能挑战:闪存访问延迟长,且SSD设备内部存在垃圾回收等不可预测事件,会导致主机处理器停顿并浪费计算周期。尽管CXL接口支持对SSD的字节粒度数据访问,但受物理特性限制,闪存芯片的访问仍以页为粒度。这种访问粒度不匹配的问题会给闪存芯片带来大量不必要的I/O流量,进一步恶化本就欠佳的端到端数据访问性能。\n本文提出SkyByte——一款高效的CXL基SSD,它采用整体化方案,通过协同设计主机操作系统(OS)与SSD控制器来解决上述挑战。为缓解访问CXL-SSD时出现的长时间内存停顿,SkyByte重新设计了OS上下文切换机制,在检测到长访问延迟时启用机会式上下文切换。为适配字节粒度的数据访问,SkyByte将SSD控制器的内部DRAM架构化为缓存行级写入日志和页级数据缓存,并在日志清理时启用数据合并功能,以减少流向闪存芯片的I/O流量。SkyByte还采用了多项优化技术,包括自适应页迁移——通过将CXL-SSD中的热页提升到主机端,来挖掘快速主机内存的性能优势。\n我们基于CXL-SSD模拟器实现了SkyByte,并使用多种数据密集型应用评估其效率。实验结果表明,SkyByte的性能比现有CXL基SSD高出6.11倍,平均减少23.08倍的闪存芯片I/O流量。SkyByte的性能还达到了假设主机拥有无限DRAM容量的理想场景的75%,提供了一种极具吸引力的高性价比解决方案。

英文摘要:

The CXL-based solid-state drive (CXL-SSD) provides a promising approach towards scaling the main memory capacity at low cost. However, the CXL-SSD faces performance challenges due to the long flash access latency and unpredictable events such as garbage collection in the SSD device, stalling the host processor and wasting compute cycles. Although the CXL interface enables the byte-granular data access to the SSD, accessing flash chips is still at page granularity due to physical limitations. The mismatch of access granularity causes significant unnecessary I/O traffic to flash chips, worsening the suboptimal end-to-end data access performance. In this paper, we present SkyByte, an efficient CXL-based SSD that employs a holistic approach to address the aforementioned challenges by co-designing the host operating system (OS) and SSD controller. To alleviate the long memory stall when accessing the CXL-SSD, SkyByte revisits the OS context switch mechanism and enables opportunistic context switches upon the detection of long access delays. To accommodate byte-granular data accesses, SkyByte architects the internal DRAM of the SSD controller into a cacheline-level write log and a page-level data cache, and enables data coalescing upon log cleaning to reduce the I/O traffic to flash chips. SkyByte also employs optimization techniques that include adaptive page migration for exploring the performance benefits of fast host memory by promoting hot pages in CXL-SSD to the host. We implement SkyByte with a CXL-SSD simulator and evaluate its efficiency with various data-intensive applications. Our experiments show that SkyByte outperforms current CXL-based SSD by 6.11X, and reduces the I/O traffic to flash chips by 23.08X on average. SkyByte also reaches 75% of the performance of the ideal case that assumes unlimited DRAM capacity in the host, which offers an attractive cost-effective solution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑