面向多租户内存系统的自适应迁移决策
Adaptive Migration Decision for Multi-Tenant Memory Systems
AI总结:
针对分层内存中页面迁移可能因检测与迁移开销而无益的问题,提出基于乒乓页和访问模式变化的按进程自适应迁移控制框架,并在商用 CXL 系统上验证其有效性。
摘要:
由快速小容量内存和慢速大容量内存组成的分层内存系统,旨在以具有成本效益的方式提供大容量内存。分层内存系统的有效性取决于有多少内存访问能够通过页面迁移被快速的一级内存吸收。近期研究提出了多种检测热页并高效迁移这些页面的方法。然而,我们的调查表明,页面迁移并不总是有益的,因为它伴随着检测和迁移热页的相关成本。当应用程序对迁移不友好时,通常最好完全不迁移页面。基于对迁移友好性的观察,本文提出了一种用于多租户分层内存系统的迁移控制框架。首先,该框架利用逐页乒乓状态提出了一种迁移友好性检测机制。在短时间内被反复提升和降级的乒乓页面能够反映迁移的有效性。根据这些页面的变化行为,框架停止或继续迁移。在页面迁移停止后,第二种机制以低成本方式检测内存访问模式的变化,以确定是否需要恢复迁移。最后,由于每个应用程序具有不同的行为,我们的框架提供按进程的迁移控制,根据应用程序特征有选择地停止和启动迁移。我们在 Linux 内核中实现了该框架。基于商用 CXL 分层内存系统的评估表明,该框架在单租户和多租户环境中均能有效控制迁移。
英文摘要:
Tiered memory systems consisting of fast small memory and slow large memory have emerged to provide high capacity memory in a cost-effective way. The effectiveness of tiered memory systems relies on how many memory accesses can be absorbed by the fast first-tier memory by page migration. The recent studies proposed several different ways of detecting hot pages and migrating them efficiently. However, our investigation shows that page migration is not always beneficial as it has the associated cost of detecting and migrating hot pages. When an application is unfriendly to migration, it is often better not to migrate pages at all. Based on the observation on migration friendliness, this paper proposes a migration control framework for multi-tenant tiered memory systems. First, it proposes a detection mechanism for migration friendliness, using per-page ping-pong status. Ping-pong pages which are promoted and demoted repeatedly in a short period of time tells migration effectiveness. Based on their change behaviors, migration is stopped or continued. After the page migration is stopped, the second mechanism detects changes of memory access patterns in a low cost way to determine whether migration needs to be resumed. Finally, as each application has a different behavior, our framework provides per-process migration control to selectively stop and start migration depending on application characteristics. We implement the framework in the Linux kernel. The evaluation with a commercial CXL-based tiered memory system shows that it effectively controls migration in single and multi-tenant environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。