arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.20494cs.PLcs.SE
收藏

一种有效的Ω(c)语言与运行时

An Effectively $Ω(c)$ Language and Runtime

Mark Marron

AI总结:

本文提出设计一种性能为Ω(c)的语言和运行时,使操作执行时间、内存开销和垃圾收集工作均保持有效常数界,以解决高百分位尾部延迟难以跟踪和优化的问题。

摘要:

应用程序/运行时的性能通常被认为是一个连续函数:在给定工作负载上使用的内存/时间越少,编译器/运行时就越好。然而在实践中,应用程序的良好性能在概念上更像是一个二元函数——要么应用程序在比如100毫秒内响应,快到用户几乎察觉不到;要么它花费了明显可察觉的时间,让用户等待并可能放弃任务。因此,性能实际上意味着应用程序有多频繁地快到足以可用,这导致工业界开发者对第95和第99百分位延迟的关注程度与平均响应时间相当,甚至更高。不幸的是,跟踪和优化这些高百分位延迟是困难的,通常需要对应用程序、运行时、垃圾收集器(GC)和操作系统之间的交互有深入理解。更复杂的是,尾部性能往往只是偶尔出现,并且特定于某个工作负载或输入,这使得这些问题格外难以处理。我们的愿景是创建一种在性能上被设计为Ω(c)的语言和运行时——也就是说,它被设计为对所有操作的执行具有有效常数时间,应用程序占用空间具有固定的常数内存开销,并且垃圾收集器对每次分配执行常数量的工作,加上对所有收集/释放操作进行(较小的)有界暂停。

英文摘要:

The performance of an application/runtime is usually thought of as a continuous function where, the lower the amount of memory/time used on a given workload, then the better the compiler/runtime is. However, in practice, good performance of an application is conceptually more of a binary function -- either the application responds in under, say 100ms, and is fast enough for a user to barely notice, or it takes a noticeable amount of time, leaving the user waiting and potentially abandoning the task. Thus, performance really means how often the application is fast enough to be usable, leading industrial developers to focus on the 95th and 99th percentile latencies as heavily, or moreso, than average response time. Unfortunately, tracking and optimizing for these high percentile latencies is difficult and often requires a deep understanding of the application, runtime, GC, and OS interactions. This is further complicated by the fact that tail performance is often only seen occasionally, and is specific to a certain workload or input, making these issues uniquely painful to handle. Our vision is to create a language and runtime that is designed to be $Ω(c)$ in its performance -- that is, it is designed to have an effectively constant time to execute all operations, there is a constant fixed memory overhead for the application footprint, and the garbage-collector performs a constant amount of work per allocation + a (small) bounded pause for all collection/release operations.

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

↑