Cooperative Profile Guided Optimizations
- 28 November 2021
- journal article
- research article
- Published by Wiley in Computer Graphics Forum
- Vol. 40 (8) , 71-83
Abstract
Existing feedback‐driven optimization frameworks are not suitable for video games, which tend to push the limits of performance of gaming platforms and have real‐time constraints that preclude all but the simplest execution profiling. While Profile Guided Optimization (PGO) is a well‐established optimization approach, existing PGO techniques are ill‐suited for games for a number of reasons, particularly because heavyweight profiling makes interactive applications unresponsive. Adaptive optimization frameworks continually collect metrics that guide code specialization optimizations during program execution but have similarly high overheads. We emulate a system, which we callCooperative PGO, in which the gaming platform collectspiecemealprofiles by sampling in both time and space during actual gameplay across many users; stitches the piecemeal profiles together statistically; and creates policies to guide future gameplay. We introduce a three‐level hierarchical profiler that is well‐suited to graphics APIs, that commonly operates with no overhead and occasionally introduces an average overhead of less than 0.5% during periods of active profiling. This paper examines the practicality ofCooperative PGOusing three PGOs as case studies. A PGO that exploits likely zeros is particularly effective, achieving an average speedup of 5%, with a maximum speedup of 15%, over a highly‐tuned baseline.Keywords
This publication has 19 references indexed in Scilit:
- A Survey on Compiler Autotuning using Machine LearningACM Computing Surveys, 2018
- REDSPY2017
- Profile-guided automated software diversity2013
- Instrumentation and sampling strategies for cooperative concurrency bug isolation2010
- Statistically regulating program behavior via mainstream computing2010
- Online performance auditingACM SIGPLAN Notices, 2006
- A Survey of Adaptive Optimization in Virtual MachinesProceedings of the IEEE, 2005
- Scalable statistical bug isolation2005
- Code Specialization Based on Value Profiles2000
- Randomized Algorithms1995