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

LearnedCache: 一种基于eBPF集成的感知器的Linux页面缓存驱逐策略

LearnedCache: eBPF-Integrated Perceptron-Based Eviction Policies for the Linux Page Cache

Linux Page Cache(Linux页面缓存)

Zejia Qi

AI总结:

提出LearnedCache,一种基于eBPF和单层感知器的Linux页面缓存驱逐策略,通过真实内核数据训练模型,在代表性工作负载下实现高达10%的插入率提升。

摘要:

Linux是数字时代的基础,占据了云和移动操作系统市场的大部分份额。任何运行Linux的设备都使用Linux页面缓存,这是操作系统和应用程序性能的核心支柱,旨在减少不必要的磁盘访问。许多页面缓存驱逐策略已被开发,但仍受限于启发式方法的僵化。近年来,AI驱动工具的兴起,加上Linux设备工作负载的日益多样化,为机器学习驱动的缓存驱逐策略奠定了基础。该领域已有有前景的研究,但仅限于CDN等用户空间应用。我们开发了LearnedCache,一种基于eBPF集成的单层感知器的Linux页面缓存驱逐策略,使用来自多样化工作负载的真实内核数据进行训练。我们展示了多个线性模型在建模页面重用时间上的中位AUC接近80%,然后进一步将这些模型嵌入Linux内核以进行实时性能评估。通过对每个工作负载与FIFO基线进行50次配对试验的统计测试,LearnedCache表明,在代表性经验工作负载下,机器学习驱动的缓存驱逐策略在Linux内核中是可行的,并且能够在特定工作负载下以统计显著的优势超越传统FIFO,插入率(缓存命中率的频率调整派生指标)提升高达10%,同时开销极小。

英文摘要:

Any device that runs Linux uses the Linux page cache, a central pillar in OS and application performance, serving to reduce extraneous disk access. Many page cache eviction policies have been developed but remain bound by the rigidity of heuristics. Promising research has been done on neural cache eviction policies, but only in the field of user-space applications such as CDNs. We present LearnedCache, a set of machine-learning-based page cache eviction policies that run live inside the Linux kernel through the cache_ext eBPF framework. LearnedCache trains a lightweight perceptron per workload on kernel trace data collected using eBPF to predict whether eviction candidates will be reused within a bounded horizon and deploys it through two eBPF policies. The resulting policies consistently compete with and outperform both external heuristic policies and the kernel's own, improving application throughput by up to 44% versus standard kernel policies.

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

↑