arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.02630cs.DCcs.AIcs.OS
收藏

为现成服务器进行的细粒度计算卸载(只需几十行代码)

Fine-Grained Computation Offload for Off-the-Shelf Servers in Tens of Lines

Pine AI

Bojie Li

AI总结:

研究硬件加速器处于在线服务关键路径时细粒度卸载问题,利用服务器已有并发机制,将卸载视为路由问题,通过特定方法在多服务器上实现高效卸载并给出性能提升数据。

摘要:

硬件加速器现处于在线服务的关键路径。对于细粒度卸载(微秒到几毫秒),经典应对停滞的方法均失败。重叠卸载与其他请求是解决办法,而并发已存在,重叠是路由问题。在十种现成服务器上此方法最多添加22 - 138行代码,最多修改一行,在真实硬件上恢复1.2 - 5.4倍性能。

英文摘要:

Hardware accelerators now sit on the critical path of online serving. GPUs, FPGAs, and increasingly remote services such as hardware security modules, post-quantum KEMs, and inference servers. For fine-grained offloads (microseconds to a few milliseconds) the classic responses to the resulting stall both fail: a context switch costs as much as the offload, and a busy-wait burns the core. Overlapping the offload with other requests is the fix, and prior systems obtain it by adding concurrency: an async-framework rewrite, a new runtime or dataplane OS, or a hand-tuned point integration. We observe that the concurrency already exists: serving concurrent requests is suspending and resuming them, so every server ships the machinery overlap needs. Overlap is then a routing problem, not a rewrite problem: submit the offload to an executor, suspend the request with the server's own deferred-response primitive, resume it on completion. Across ten off-the-shelf servers spanning every production concurrency model, this recipe takes 22-138 lines added, at most one modified, and recovers 1.2-5.4x on real hardware; the server's concurrency model and the offload's weight predict both numbers in advance, and the win is bounded by device throughput and the server's own overlap capacity. At the limit, an LD_PRELOAD fiber runtime injects the reroute into an unmodified thread-per-connection binary (17.3x) within a characterized envelope. Rerouting suspends run-to-completion atomicity; a measured taxonomy confines the hazard to unlocked shared aggregates, and a transparent page-protection detector guards exactly those, validated on stock Redis.

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

↑