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

面向反应式组件的运行时插桩(扩展版)

Runtime Instrumentation for Reactive Components (Extended Version)

Luca Aceto, Duncan Paul Attard, Adrian Francalanza, Anna Ingólfsdóttir

AI总结:

针对反应式软件异步环境下插桩的事件丢失重排问题及运行时验证的可靠性要求,提出去中心化插桩算法RIARC,经测试和实验验证其正确性与反应性,在中等并发场景下延迟与内联监控相当。

摘要:

反应式软件需要能够维持系统反应式属性的插桩方法。运行时验证对插桩提出了另一项要求,即其向监控器报告的轨迹事件序列必须是可靠的——也就是说,它们要能反映受监控系统的实际执行情况。本文提出了RIARC,这是一种适用于轮廓监控器的新型去中心化插桩算法,可满足上述两项要求。反应式软件的异步环境可能导致轨迹事件丢失或重排,这让插桩工作变得复杂。RIARC采用下一跳IP路由方法来重新排列事件并可靠地向监控器报告,从而克服了这些挑战。\n 我们通过两种方式验证了RIARC。我们对其对应的实现进行了严格的系统化测试,以确认其正确性。此外,我们通过大量实证实验评估了该实现,将其置于大型真实工作负载下以确定其反应性。我们的结果表明,RIARC优化了其内存和调度器使用情况,能够维持软实时应用可行的延迟。我们还将RIARC与内联监控和集中式监控进行了比较,结果显示在中等并发设置下(即软件执行长时间运行的计算密集型任务,例如大数据流处理场景),RIARC产生的延迟与内联监控相当。

英文摘要:

Reactive software calls for instrumentation methods that uphold the reactive attributes of systems. Runtime verification imposes another demand on the instrumentation, namely that the trace event sequences it reports to monitors are sound -- that is, they reflect actual executions of the system under scrutiny. This paper presents RIARC, a novel decentralised instrumentation algorithm for outline monitors meeting these two demands. The asynchronous setting of reactive software complicates the instrumentation due to potential trace event loss or reordering. RIARC overcomes these challenges using a next-hop IP routing approach to rearrange and report events soundly to monitors. RIARC is validated in two ways. We subject its corresponding implementation to rigorous systematic testing to confirm its correctness. In addition, we assess this implementation via extensive empirical experiments, subjecting it to large realistic workloads to ascertain its reactiveness. Our results show that RIARC optimises its memory and scheduler usage to maintain latency feasible for soft real-time applications. We also compare RIARC to inline and centralised monitoring, revealing that it induces comparable latency to inline monitoring in moderate concurrency settings, where software performs long-running, computationally-intensive tasks, such as in Big Data stream processing.

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

↑