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

eBPF-mm:基于eBPF的Linux用户空间引导内存管理

eBPF-mm: Userspace-guided memory management in Linux with eBPF

Konstantinos Mores, Stratos Psomadakis, Georgios Goumas

AI总结:

本研究提出eBPF-mm方案,通过在Linux缺页路径新增eBPF钩子、构建用户可配置的页面大小策略框架,实现用户空间引导的自定义内存管理,并用DAMON分析工作负载热内存区域完成评估。

摘要:

我们利用eBPF在Linux内存子系统中实现自定义策略。受CBMM(基于成本的内存管理)启发,我们构建了一种机制,可向内核提供关于将页面提升至特定大小的收益提示。我们在Linux缺页处理路径中为eBPF程序引入了新的钩子点,为其提供确定所需页面大小的必要上下文。随后我们开发了一个框架,允许用户为其应用定义配置文件并加载到内核中。配置文件包含感兴趣的内存区域,以及这些区域使用4KB、64KB和2MB页面支撑的预期收益。在评估中,我们使用DAMON对工作负载进行分析以识别热内存区域。

英文摘要:

We leverage eBPF in order to implement custom policies in the Linux memory subsystem. Inspired by CBMM, we create a mechanism that provides the kernel with hints regarding the benefit of promoting a page to a specific size. We introduce a new hook point in Linux page fault handling path for eBPF programs, providing them the necessary context to determine the page size to be used. We then develop a framework that allows users to define profiles for their applications and load them into the kernel. A profile consists of memory regions of interest and their expected benefit from being backed by 4KB, 64KB and 2MB pages. In our evaluation, we profiled our workloads to identify hot memory regions using DAMON.

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

↑