arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.15912cs.PLcs.ARcs.PF
收藏

基于延迟的平铺

Latency Based Tiling

Jack Cashman

AI总结:

基于延迟的平铺通过三角循环测量未命中率缩放来近似确定缓存大小,从而在保持快速编译的同时最大化局部性,并在Rust中实现硬件无关、内存安全的平铺策略。

摘要:

基于延迟的平铺提供了一种基于系统的方法来推导近似平铺解决方案,该方法在保持快速编译时间的同时最大化局部性。该方法使用三角循环来表征机器的未命中率缩放,从而避免预取器失真。未命中率缩放捕捉了数据访问延迟与工作集大小之间的关系,延迟的急剧增加表明数据占用空间超过了某个缓存级别的容量。通过这些显著的延迟增加,我们可以确定L1、L2和L3内存大小的近似位置。这些大小预计是对系统真实内存大小的低估,这符合我们的预期,因为如防御性循环平铺所述,在多进程系统中缓存是共享的。与自动调优(可能有效但慢得令人望而却步)不同,基于延迟的平铺实现了可忽略的编译时间开销。在Rust中的实现使得一种与硬件无关的方法成为可能,该方法与基于缓存计时的技术相结合,产生了一个可移植、内存安全的系统,可在任何支持Rust的地方运行。该平铺策略应用于多面体模型的一个子集,其中循环嵌套根据派生的内存层次结构和每次迭代观察到的数据占用空间进行平铺。

英文摘要:

Latency Based Tiling provides a systems based approach to deriving approximate tiling solution that maximizes locality while maintaining a fast compile time. The method uses triangular loops to characterize miss ratio scaling of a machine avoiding prefetcher distortion. Miss ratio scaling captures the relationship between data access latency and working set size with sharp increases in latency indicating the data footprint exceeds capacity from a cache level. Through these noticeable increases in latency we can determine an approximate location for L1, L2, and L3 memory sizes. These sizes are expected to be under approximations of a systems true memory sizes which is in line with our expectations given the shared nature of cache in a multi process system as described in defensive loop tiling. Unlike auto tuning, which can be effective but prohibitively slow, Latency Based Tiling achieves negligible compile time overhead. The implementation in Rust enables a hardware agnostic approach which combined with a cache timing based techniques, yields a portable, memory safe system running wherever Rust is supported. The tiling strategy is applied to a subset of the polyhedral model, where loop nestings are tiled based on both the derived memory hierarchy and the observed data footprint per iteration.

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

↑