一句话:提出应用透明的 Thermostat 机制,在混合两级主存中感知 4KB/2MB 页并动态放置冷热页。
新型高密度低成本内存推动了两级主存研究,但已有工作多假设 4KB 页;对内存足迹大的云应用,2MB 大页很关键,虚拟化嵌套分页更放大了 4KB 页管理开销。Thermostat 是一种应用透明、大页感知的页面放置机制,在双技术混合内存中兼顾两级主存的成本优势与大页性能。它通过在线页面分类判定 4KB 与 2MB 页的冷热且几乎无观测开销。作者在 Linux 4.5 中实现,并在 KVM 下用代表性云负载评估:最多迁移 50% 应用足迹到慢速内存,性能下降限制在 3%,内存成本最多降低 30%。
The advent of new memory technologies that are denser and cheaper than commodity DRAM has renewed interest in two-tiered main memory schemes. Infrequently accessed application data can be stored in such memories to achieve significant memory cost savings. Past research on two-tiered main memory has assumed a 4KB page size. However, 2MB huge pages are performance critical in cloud applications with large memory footprints, especially in virtualized cloud environments, where nested paging drastically increases the cost of 4KB page management. We present Thermostat, an application-transparent huge-page-aware mechanism to place pages in a dual-technology hybrid memory system while achieving both the cost advantages of two-tiered memory and performance advantages of transparent huge pages. We present an online page classification mechanism that accurately classifies both 4KB and 2MB pages as hot or cold while incurring no observable performance overhead across several representative cloud applications. We implement Thermostat in Linux kernel version 4.5 and evaluate its effectiveness on representative cloud computing workloads running under KVM virtualization. We emulate slow memory with performance characteristics approximating near-future high-density memory technology and show that Thermostat migrates up to 50% of application footprint to slow memory while limiting performance degradation to 3%, thereby reducing memory cost up to 30%.