Optimizing Logical Execution Time Model for Both Determinism and Low Latency
Sen Wang, Dong Li, Ashrarul H. Sifat, Shao-Yu Huang, Xuanliang Deng, Changhee Jung, Ryan Williams, Haibo Zeng
TL;DR
The paper tackles the end-to-end latency and jitter challenges of the default LET model by optimizing the flexible LET (fLET) parameters. It introduces a novel abstraction of task communications using edge- and graph-level patterns (ELP/EFP and GLP/GFP) and develops LP-based, two-stage optimization with symbolic pruning to efficiently find near-optimal virtual offsets $O_i$ and virtual deadlines $D_i$ under schedulability constraints. The approach provides bounded suboptimality guarantees and supports multi-objective optimization of data age, reaction time, time disparity, and jitter, demonstrated on synthetic task sets and an autonomous-robot case study where fLET outperforms implicit communication, DBP, and prior LET extensions. The work significantly enhances fLET's practicality for real-time multicore systems by delivering deterministic timing with substantially improved end-to-end performance and scalable optimization techniques.
Abstract
The Logical Execution Time (LET) programming model has recently received considerable attention, particularly because of its timing and dataflow determinism. In LET, task computation appears always to take the same amount of time (called the task's LET interval), and the task reads (resp. writes) at the beginning (resp. end) of the interval. Compared to other communication mechanisms, such as implicit communication and Dynamic Buffer Protocol (DBP), LET performs worse on many metrics, such as end-to-end latency (including reaction time and data age) and time disparity jitter. Compared with the default LET setting, the flexible LET (fLET) model shrinks the LET interval while still guaranteeing schedulability by introducing the virtual offset to defer the read operation and using the virtual deadline to move up the write operation. Therefore, fLET has the potential to significantly improve the end-to-end timing performance while keeping the benefits of deterministic behavior on timing and dataflow. To fully realize the potential of fLET, we consider the problem of optimizing the assignments of its virtual offsets and deadlines. We propose new abstractions to describe the task communication pattern and new optimization algorithms to explore the solution space efficiently. The algorithms leverage the linearizability of communication patterns and utilize symbolic operations to achieve efficient optimization while providing a theoretical guarantee. The framework supports optimizing multiple performance metrics and guarantees bounded suboptimality when optimizing end-to-end latency. Experimental results show that our optimization algorithms improve upon the default LET and its existing extensions and significantly outperform implicit communication and DBP in terms of various metrics, such as end-to-end latency, time disparity, and its jitter.
