You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter2.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,9 @@ Figure 2-4. Using PGO in higher versions of MySQL 8.0: a step-by-step guide.
40
40
41
41
From the diagram, the Profile-Guided Optimization (PGO) mechanism involves several steps:
42
42
43
-
1.Initially, compile a specific version of MySQL with the compilation option *"-DFPROFILE_GENERATE=ON"*.
44
-
2.Start this MySQL version and capture training data by running performance tests such as TPC-C, which helps collect performance metrics.
45
-
3.After completing the training phase, perform a second compilation with the option *"-DFPROFILE_USE=ON"*. During this compilation, the compiler automatically utilizes the gathered statistical data to optimize conditional branches and related aspects, significantly improving the performance of the resulting MySQL executable.
43
+
1. Initially, compile a specific version of MySQL with the compilation option *"-DFPROFILE_GENERATE=ON"*.
44
+
2. Start this MySQL version and capture training data by running performance tests such as TPC-C, which helps collect performance metrics.
45
+
3. After completing the training phase, perform a second compilation with the option *"-DFPROFILE_USE=ON"*. During this compilation, the compiler automatically utilizes the gathered statistical data to optimize conditional branches and related aspects, significantly improving the performance of the resulting MySQL executable.
46
46
47
47
The following figure illustrates the relationship between throughput and concurrency before and after applying PGO to MySQL 8.0.27.
48
48
@@ -104,7 +104,7 @@ The following figure illustrates the throughput over time during long-term testi
104
104
105
105
Figure 2-7. Performance degradation exposed during BenchmarkSQL testing of MySQL 8.0.27.
106
106
107
-
This problem was identified during testing using BenchmarkSQL and may not necessarily occur with other TPC-C testing tools. As of the current version, MySQL 8.0.38, the problem of rapid throughput decline has not been fully solved. Subsequent chapters will delve into detailed explanations of the underlying causes of this problem.
107
+
This problem was identified during testing using BenchmarkSQL and may not necessarily occur with other TPC-C testing tools. As of the current version, MySQL 8.0.39, the problem of rapid throughput decline has not been fully solved. Subsequent chapters will delve into detailed explanations of the underlying causes of this problem.
0 commit comments