Affiliation:
1. Univ. of Southern California, Marina del Rey, CA
2. Massachusetts Institute of Technology, Cambridge
Abstract
This article presents dynamic feedback, a technique that enables
computations to adapt dynamically to different execution environments. A compiler that uses dynamic feedback produces several different versions of the same source code; each version uses a different optimization policy. The generated code alternately performs sampling phases and production phases. Each sampling phase measures the overhead of each version in the current environment. Each production phase uses the version with the least overhead in the previous sampling phase. The computation periodically resamples to adjust dynamically to changes in the environment. We have implemented dynamic feedback in the context of a parallelizing compiler for object-based programs. The generated code uses dynamic feedback to automatically choose the best synchronization optimization policy. Our experimental results show that the synchronization optimization policy has a significant impact on the overall performance of the computation, that the best policy varies from program to program, that the compiler is unable to statically choose the best policy, and that dynamic feedback enables the generted code to exhibit performance that is comparable to that of code that has been manually tuned to use the best policy. We have also performed a theoretical analysis which provides, under certain assumptions, a guaranteed optimality bound for dynamic feedback relative to a hypothetical (and unrealizable) optimal algorithm that uses the best policy at every point during the execution.
Publisher
Association for Computing Machinery (ACM)
Cited by
7 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. How does frame-loss affect users’ perception of smoothness?;CCF Transactions on Pervasive Computing and Interaction;2021-04-20
2. Locking Made Easy;Proceedings of the 17th International Middleware Conference;2016-11-28
3. Reliable synchronization in distributed systems;International Journal of Computer Mathematics;2004-06
4. Eliminating synchronization bottlenecks using adaptive replication;ACM Transactions on Programming Languages and Systems;2003-05
5. A comparison of concurrent programming and cooperative multithreading;Concurrency and Computation: Practice and Experience;2003-01