arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11582cs.DCcs.PF
收藏

通过环境和邻居感知的线程管理降低尾部延迟

Reducing Tail Latencies Through Environment- and Neighbour-aware Thread Management

Andrew Jeffery, Chris Jensen, Richard Mortier

AI总结:

针对高负载下CPU过度订阅导致尾部延迟高的问题,提出邻居感知线程池friendlypool,动态避免过度订阅,降低最大延迟6.7倍,吞吐量最多降1.4倍。

摘要:

应用程序的尾部延迟是许多服务的关键指标,高延迟直接与收入损失相关。现代深度嵌套的微服务架构加剧了尾部延迟,增加了用户体验到高延迟的可能性。在这项工作中,我们展示了当应用程序处于高负载时,操作系统线程的CPU过度订阅如何导致高尾部延迟。CPU过度订阅可能源于两个操作因素:在CPU配额下错误地确定可用CPU数量,以及忽略邻居应用程序及其CPU使用情况。我们讨论了不同语言获取可用CPU的解决方案,评估了其影响,并探讨了为获取可用CPU数量提供更统一的、与语言无关的接口的机会。然后,我们评估了邻居使用对尾部延迟的影响,并引入了一种新的邻居感知线程池——friendlypool,它动态地避免过度订阅。在我们的评估中,friendlypool将最大工作线程延迟降低了高达6.7倍,但代价是吞吐量最多降低1.4倍。

英文摘要:

Application tail latency is a key metric for many services, with high latencies being linked directly to loss of revenue. Modern deeply-nested micro-service architectures exacerbate tail latencies, increasing the likelihood of users experiencing them. In this work, we show how CPU overcommitment by OS threads leads to high tail latencies when applications are under heavy load. CPU overcommitment can arise from two operational factors: incorrectly determining the number of CPUs available when under a CPU quota, and the ignorance of neighbour applications and their CPU usage. We discuss different languages' solutions to obtaining the CPUs available, evaluating the impact, and discuss opportunities for a more unified language-independent interface to obtain the number of CPUs available. We then evaluate the impact of neighbour usage on tail latency and introduce a new neighbour-aware threadpool, the friendlypool, that dynamically avoids overcommitment. In our evaluation, the friendlypool reduces maximum worker latency by up to $6.7\times$ at the cost of decreasing throughput by up to $1.4\times$.

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

↑