arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.13839cs.LGcs.DCstat.ML
收藏

RLCache:使用强化学习的自动缓存管理

RLCache: Automated Cache Management Using Reinforcement Learning

Girton College(格顿学院);University of Cambridge(剑桥大学)

Sami Alabed

摘要:

本研究探讨使用强化学习来指导通用缓存管理器的决策。高速缓存管理器直接影响计算机系统的整体性能。它们决定哪些对象应该被缓存,缓存的持续时间,以及在缓存已满时决定从缓存中驱逐哪些对象。这三个决定会影响缓存命中率和实现该缓存命中率所需的存储大小。一个最佳的缓存管理器将避免不必要的操作,最大限度地提高缓存命中率,从而减少到较慢的后端存储系统的往返次数,并最大限度地减少实现高命中率所需的存储大小。该项目通过为每个缓存管理器任务设计三个单独的代理,研究在缓存管理中使用强化学习。此外,该项目研究了两种先进的强化学习架构的多决策问题:一个单一的多任务代理和多代理。我们还介绍了一个框架,以简化计算机系统问题的建模作为一个强化学习任务。该框架抽象了计算机系统中的延迟经验观察和奖励分配,同时提供了一种灵活的方式来扩展到多个代理。基于已建立的数据库基准测试系统的仿真结果表明,强化学习代理可以实现更高的缓存命中率比启发式驱动的算法,同时最大限度地减少所需的空间。它们还能够适应不断变化的工作负载,并相应地动态调整其缓存策略。所提出的高速缓存管理器模型是通用的,并且适用于其他类型的高速缓存,例如文件系统高速缓存。据我们所知,这个项目是第一个将缓存管理器决策建模为多任务控制问题的项目。

英文摘要:

This study investigates the use of reinforcement learning to guide a general purpose cache manager decisions. Cache managers directly impact the overall performance of computer systems. They govern decisions about which objects should be cached, the duration they should be cached for, and decides on which objects to evict from the cache if it is full. These three decisions impact both the cache hit rate and size of the storage that is needed to achieve that cache hit rate. An optimal cache manager will avoid unnecessary operations, maximise the cache hit rate which results in fewer round trips to a slower backend storage system, and minimise the size of storage needed to achieve a high hit-rate. This project investigates using reinforcement learning in cache management by designing three separate agents for each of the cache manager tasks. Furthermore, the project investigates two advanced reinforcement learning architectures for multi-decision problems: a single multi-task agent and a multi-agent. We also introduce a framework to simplify the modelling of computer systems problems as a reinforcement learning task. The framework abstracts delayed experiences observations and reward assignment in computer systems while providing a flexible way to scale to multiple agents. Simulation results based on an established database benchmark system show that reinforcement learning agents can achieve a higher cache hit rate over heuristic driven algorithms while minimising the needed space. They are also able to adapt to a changing workload and dynamically adjust their caching strategy accordingly. The proposed cache manager model is generic and applicable to other types of caches, such as file system caches. This project is the first, to our knowledge, to model cache manager decisions as a multi-task control problem.

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

↑