跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2508.12485 (cs)
[提交于 2025年8月17日]

标题:Cold-RL: Learning Cache Eviction with Offline Reinforcement Learning for NGINX

作者:Aayush Gupta, Arpit Bhayani
查看论文《Cold-RL: Learning Cache Eviction with Offline Reinforcement Learning for NGINX》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Web proxies such as NGINX commonly rely on least-recently-used (LRU) eviction, which is size agnostic and can thrash under periodic bursts and mixed object sizes. We introduce Cold-RL, a learned eviction policy for NGINX that replaces LRU's forced-expire path with a dueling Deep Q-Network served by an ONNX sidecar within a strict microsecond budget. On each eviction, Cold-RL samples the K least-recently-used objects, extracts six lightweight features (age, size, hit count, inter-arrival time, remaining TTL, and last origin RTT), and requests a bitmask of victims; a hard timeout of 500 microseconds triggers immediate fallback to native LRU. Policies are trained offline by replaying NGINX access logs through a cache simulator with a simple reward: a retained object earns one point if it is hit again before TTL expiry. We compare against LRU, LFU, size-based, adaptive LRU, and a hybrid baseline on two adversarial workloads. With a 25 MB cache, Cold-RL raises hit ratio from 0.1436 to 0.3538, a 146 percent improvement over the best classical baseline; at 100 MB, from 0.7530 to 0.8675, a 15 percent gain; and at 400 MB it matches classical methods (about 0.918). Inference adds less than 2 percent CPU overhead and keeps 95th percentile eviction latency within budget. To our knowledge, this is the first reinforcement learning eviction policy integrated into NGINX with strict SLOs.
评论: 8 pages, 4 figures (system architecture, eviction path, training pipeline, and DQN algorithm), 2 tables. Code available at https://github.com/ayushgupta4897/DRL-Cache
主题: 机器学习 (cs.LG); 人工智能 (cs.AI); 数据库 (cs.DB); 网络与互联网体系结构 (cs.NI)
引用方式: arXiv:2508.12485 [cs.LG]
  (或者 arXiv:2508.12485v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2508.12485

提交历史

来自:Aayush Gupta
[v1] 2025年8月17日 星期日 20:01:12 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-08
切换浏览方式为:
cs
cs.AI
cs.DB
cs.NI

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站