面向基于PMem的块设备的I/O过渡缓存
I/O Transit Caching for PMem-based Block Device
AI总结:
针对基于PMem的块设备中BTT因缺设备内缓存性能不佳、传统DRAM I/O暂存缓存易满引发停顿的问题,提出采用I/O过渡缓存的Caiti算法,通过多核主动回写、满缓存条件旁路缓解停顿,最高将BTT性能提升3.6倍且保留块级写入原子性。
摘要:
位于内存总线上的字节可寻址非易失性存储器(NVM)被用于在通用计算系统和嵌入式系统中构建持久内存(PMem)以实现数据存储。研究人员开发了诸如块转换表(BTT)之类的软件驱动程序,以在PMem上构建块设备,这样程序员既可以继续使用成熟可靠的传统存储栈,又能通过利用高速PMem获得高性能。然而,我们的定量研究表明,由于缺少必要的设备内缓存,BTT未能充分利用PMem的性能,表现出较差的运行效果。我们为BTT添加了由DRAM空间构成的传统I/O暂存缓存。由于DRAM和PMem的访问延迟相近,I/O暂存缓存随时间推移很可能被完全填满。持续的缓存淘汰和fsync操作会引发按需刷新,带来严重的停顿,因此I/O暂存缓存对于基于PMem的块设备而言实际吸引力很低。据此我们提出了名为Caiti的算法,它采用新颖的I/O过渡缓存机制。Caiti通过CPU的多核主动将缓存中的数据淘汰写入PMem,同时在缓存已满时有条件地绕过缓存,直接将数据写入PMem,以进一步缓解I/O停顿。实验证实,Caiti可将BTT的性能最高提升3.6倍,且不会损失块级写入原子性。
英文摘要:
Byte-addressable non-volatile memory (NVM) sitting on the memory bus is employed to make persistent memory (PMem) in general-purpose computing systems and embedded systems for data storage. Researchers develop software drivers such as the block translation table (BTT) to build block devices on PMem, so programmers can keep using mature and reliable conventional storage stack while expecting high performance by exploiting fast PMem. However, our quantitative study shows that BTT underutilizes PMem and yields inferior performance, due to the absence of the imperative in-device cache. We add a conventional I/O staging cache made of DRAM space to BTT. As DRAM and PMem have comparable access latency, I/O staging cache is likely to be fully filled over time. Continual cache evictions and fsyncs thus cause on-demand flushes with severe stalls, such that the I/O staging cache is concretely unappealing for PMem-based block devices. We accordingly propose an algorithm named Caiti with novel I/O transit caching. Caiti eagerly evicts buffered data to PMem through CPU's multi-cores. It also conditionally bypasses a full cache and directly writes data into PMem to further alleviate I/O stalls. Experiments confirm that Caiti significantly boosts the performance with BTT by up to 3.6x, without loss of block-level write atomicity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。