The risks of using PGO (profile-guided optimization) with production environment

放肆的年华 提交于 2019-12-19 09:18:16

问题


I have a system (Linux & C++) doing intensive signal/image processing operations. I would like to use PGO to improve performance of our application.

Are there any risks / potential issues I should be aware of when using PGO ?

Are unit tests + E2E tests enough to verify that PGO didn't break anything ?


回答1:


Microsoft has system that is modifying conditional jumps based on the usage statistics plus it condenses frequently used pieces of code into smaller number of pages. This essentially compacts effective memory footprint several times and reduces CPU consumption for 20-50%.

This system was extensively used both in user and in kernel mode. The quality of this system was very high. In 100% of cases it was doing its job correctly. I do not see even minor down sides.

It might happen that some other similar system might be less reliable than that of Microsoft. That one from Microsoft was extremely good.



来源:https://stackoverflow.com/questions/12776845/the-risks-of-using-pgo-profile-guided-optimization-with-production-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!