Profile Guided Optimization (PGO) for super fastness (esp. for PHP w/ WP)

aaronmax

Verified User
Joined
Mar 25, 2019
Messages
15

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,450
To me it looks like there is only none to minimal performance improvements to gain, so to me it would not be worth the extra work.
 

aaronmax

Verified User
Joined
Mar 25, 2019
Messages
15
other benchmarks

To me it looks like there is only none to minimal performance improvements to gain, so to me it would not be worth the extra work.
...those are just from one person's project (and they acknowledged that with their current configuration, performance gain seems to have slipped slightly with 7.3 GA...)

As an another example use case is for MySQL/MariaDB, here is some data from Intel: https://clearlinux.org/blogs/profile-guided-optimization-mariadb-benchmarks

Generally, PGO seems to be an EASY way to get upto 20% gain (and in some projects it will be less, bet even 'up to 10%' would be a pretty big deal...) -- and, again dep. on project, PGO does even sig. better when the 'profile' guiding the optimizations is actually from live use of the application rather than a generic training script or some such.

I know that to obtain a 10-20% general gain in performance (esp. in TTFB) I really need to work very hard at if I am trying to gain all of that improvement from changes made at application layer :~p

...there is a lot that can be done with PGO, probably best for DA to focus on possibility of minimum viable implementation for PHP and MariaDB (eg. initial setup with generic training profile scripts, and then some sweet options for building profiles from live projects for more optimized re-compile).

Also fun: http://coolypf.com/kpgo.htm
( http://sei.pku.edu.cn/~yaoguo/papers/Yuan-ApSys-14.pdf )

further refs:
https://software.intel.com/en-us/blogs/2015/10/09/pgo-let-it-go-php
https://devblogs.microsoft.com/cppblog/speed-up-windows-php-performance-using-profile-guided-optimization-pgo/
https://devblogs.microsoft.com/cppblog/profile-guided-optimization-pgo-drives-next-generation-sap-netweaver-performance/
https://www.phoronix.com/scan.php?page=news_item&px=Fedora-Unofficial-Clear-Kernel
http://forums.mozillazine.org/viewtopic.php?t=630298
https://gcc.gnu.org/ml/gcc/2013-03/msg00212.html

Cheers
 

aaronmax

Verified User
Joined
Mar 25, 2019
Messages
15
MariaDB Official PGO Benchmark

Apologies for the many posts... the link I had for this was no longer working so I didn't include previously... thought about it and went to find a live link bcs its a really good benchmark report and as close to generally authoritative as possible re. PGO for MariaDB

https://mariadb.com/files/MariaDBEnt...20150401_0.pdf
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
The forums engine shortens links by replacing a number of characters with dots. Still is your link corrupted.

The full link will be: https://mariadb.com/files/MariaDBEnteprise-Profile-GuidedOptimization-20150401_0.pdf
 

eva2000

Verified User
Joined
Jul 1, 2019
Messages
92
Ah those are my PHP 8 PGO benchmarks I did :)

New to DirectAdmin but learning the ropes and seeing as DirectAdmin does source compile, I'll see what I can do with DirectAdmin and adding PHP 7 PGO support in some way :)
 
Top