OBASE:基于对象的地址空间工程以提高内存分层
OBASE: Object-Based Address-Space Engineering to Improve Memory Tiering
AI总结:
OBASE通过动态重新组织虚拟内存,使热点和冷对象分别聚类到均匀热点和冷页面,从而提高内存分层效率,减少内存占用。
摘要:
硬件和操作系统机制用于内存分层已经广泛部署,但数据中心仍然过度配置DRAM。根本原因是热点碎片化:分配器按对象大小而非访问模式放置对象,因此热点和冷对象会在同一页面中交错。一个热点对象会将其页面标记为活跃,将周围冷数据困在昂贵的DRAM中。我们对Google生产工作负载的分析表明,活跃页面中的97%的字节都是冷的且无法回收。我们提出地址空间工程:动态重新组织虚拟内存,使热点对象聚类到均匀热点页面,冷对象聚类到均匀冷页面。我们提出了OBASE,一个为未管理语言编写的编译器-运行时系统,作为具有页面意识的操作系统后端的面向对象前端。OBASE通过轻量级指针仪器化跟踪访问,并使用在并发下安全的锁自由协议在运行时迁移对象。通过重新组织地址空间,OBASE使未修改的后端(kswapd、TMO、TPP、Memtis)能够有效分层内存。在十个并发数据结构、六个后端和来自Meta和Twitter的生产跟踪中,OBASE将页面利用率提高了2-4倍,内存足迹减少了高达70%,仅以2-5%的开销为代价。
英文摘要:
Hardware and OS mechanisms for memory tiering are widely deployed, yet datacenters still overprovision DRAM. The root cause is hotness fragmentation: allocators place objects by size rather than access pattern, so hot and cold objects become interleaved within the same pages. A single hot object marks its page as active, trapping surrounding cold data in expensive DRAM. Our analysis of Google production workloads shows that up to 97% of the bytes in active pages are cold and unreclaimable. We propose address-space engineering: dynamically reorganizing virtual memory so that hot objects cluster into uniformly hot pages and cold objects into uniformly cold pages. We present OBASE, a compiler-runtime system for unmanaged languages that serves as an object-aware frontend for page-aware OS backends. OBASE tracks accesses via lightweight pointer instrumentation and migrates objects at runtime using a lock-free protocol that is safe under concurrency. By reorganizing the address space, OBASE enables unmodified backends (kswapd, TMO, TPP, Memtis) to tier memory effectively. Across ten concurrent data structures, six backends, and production traces from Meta and Twitter, OBASE improves page utilization by 2-4x and reduces memory footprint by up to 70%, with only 2-5% overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。