arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.20539cs.DBcs.DS
收藏

为美元缓存,而非命中率:云出口缓存的精确离线参考及决定何时值得的交叉点

Caching for Dollars, Not Hits: An Exact Offline Reference for Cloud-Egress Caching and the Crossover That Decides When It Pays

VaidhyaMegha Private Limited, India(印度 VaidhyaMegha 私人有限公司)

Madhulatha Mandarapu, Sandeep Kunkunuru

AI总结:

针对云存储出口费用而非延迟的缓存问题,提出多项式时间精确离线最优策略,发现LRU的美元后悔随成本分散度上升,而成本感知的GreedyDual可大幅降低,并给出决定何时需要成本感知缓存的闭合形式交叉点。

摘要:

当缓存未命中从云对象存储获取数据时,计费基于每次GET请求和每字节出口流量,而非延迟。经典缓存最小化未命中率,这是错误的目标:一个很少但昂贵获取的对象可能比一个频繁但廉价获取的对象花费数千倍。广义缓存理论界定了未命中成本目标,但尚无公开基准衡量实际部署的启发式策略在真实云价格下与美元最优离线策略的差距。我们提供了该参考。对于具有异构未命中成本的统一大小页面缓存,离线美元最优可通过积分区间线性规划在多项式时间内精确求解——经暴力验证;可变大小是NP难的,因此我们将基于流的离线界从命中率目标扩展到美元(成本-FOO),误差约4%。基于此参考我们发现:(i) 异质性遗憾定律——LRU的美元遗憾随未命中成本分散度上升(Spearman 0.87),而成本感知的GreedyDual将其降至约十分之一;(ii) 竞争边界——当预算恰好覆盖昂贵工作集时,GreedyDual的残余遗憾降至接近零,否则为开放区间;(iii) 闭合形式交叉点 s* = GET费用/出口费率(S3上约4 KB,GCS上约330 B),可预测哪些部署需要成本感知缓存。在真实Twitter轨迹上,仅价格向量即可使工作负载跨越s*,按预测改变状态。该工件是一个可复现的计费忠实基准;其构建的启发式策略和界为先前工作,已致谢。

英文摘要:

When a cache miss fetches from cloud object storage, the bill is per GET request and per byte of egress, not latency. Classic caching minimizes the miss rate, the wrong objective: a rarely but expensively fetched object can cost thousands of times more dollars than a frequently but cheaply fetched one. Generalized-caching theory bounds the miss-cost objective, but no reported benchmark measures how far deployed heuristics sit from the dollar-optimal offline policy on real cloud prices. We supply that reference. For uniform-size page caches with heterogeneous miss costs the offline dollar-optimum is exact in polynomial time via an integral interval linear program -- validated against brute force; variable sizes are NP-hard, so we extend the flow-based offline bound from the hit-ratio objective to dollars (cost-FOO), tight to about four percent. Against this reference we find: (i) a heterogeneity-regret law -- LRU's dollar-regret rises with miss-cost dispersion (Spearman 0.87) while cost-aware GreedyDual cuts it to roughly a tenth; (ii) a contention frontier -- GreedyDual's residual regret collapses to near zero exactly when the budget fits the expensive working set, and is the open slice otherwise; and (iii) a closed-form crossover s* = GET_fee/egress_rate (about 4 KB on S3, 330 B on GCS) that predicts which deployments need dollar-aware caching. On real memcache and CDN traces the price vector alone moves the workload across s*, shifting the regime as predicted. The artifact is a reproducible billing-faithful benchmark; heuristics and bounds it builds on are prior work, credited.

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

↑