Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lto flag and test #1

Open
bash99 opened this issue May 25, 2020 · 2 comments
Open

add lto flag and test #1

bash99 opened this issue May 25, 2020 · 2 comments
Assignees

Comments

@bash99
Copy link
Owner

bash99 commented May 25, 2020

https://www.percona.com/live/17/sessions/optimizing-mysql-without-sql-or-touching-mycnf

Link-time optimizationsAlso known as Full Program Optimization) Supported by both modern GCC and Clang with -flto option

worry about end binary size and memory usage on compile

@bash99 bash99 self-assigned this May 25, 2020
@bash99
Copy link
Owner Author

bash99 commented May 27, 2020

https://github.com/google/autofdo is useful, but is a little beyond this project scope

@bash99
Copy link
Owner Author

bash99 commented Jun 2, 2020

LTO is super slow, super memory hungry, and require much disk space in /tmp (30G is a safe bet).
Performance seems up from another 10~15% for 8.0.

As https://bugs.mysql.com/bug.php?id=67790, 8.0 has WITH_LTO cmake flag and fix some bugs.
Don't know 5.7 will build ok. just make another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant