Skip to content

Commit 6003611

Browse files
committed
Update Chapter8.md
1 parent 71976c9 commit 6003611

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter8.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ First, capture performance problems during the TPC-C test with 500 concurrency u
155155

156156
![](media/66a031ab14d56289d0987c65c73323af.png)
157157

158-
Figure 8-14. *_pthread_mutex_con_lock* bottleneck reveals performance problems.
158+
Figure 8-14. *_pthread_mutex_cond_lock* bottleneck reveals performance problems.
159159

160-
It is evident that *_pthread_mutex_con_lock* is a significant bottleneck, accounting for approximately 9.5% of the overhead. Although *perf* does not directly pinpoint the exact problem, it indicates the presence of this bottleneck.
160+
It is evident that *_pthread_mutex_cond_lock* is a significant bottleneck, accounting for approximately 9.5% of the overhead. Although *perf* does not directly pinpoint the exact problem, it indicates the presence of this bottleneck.
161161

162162
To address the problem, an in-depth exploration of MySQL internals was conducted to uncover the factors contributing to this performance bottleneck. A conventional binary search approach with minimal logging was used to identify functions or code segments that incur significant overhead during execution. The minimal logging approach was chosen to reduce performance interference while diagnosing the root cause of the problem. Excessive logging can disrupt performance analysis, and while some may use MySQL's internal mechanisms for troubleshooting, these often introduce substantial performance overhead themselves.
163163

@@ -275,11 +275,11 @@ Figure 8-17. Impact of group commit optimization using standard configurations.
275275
276276
From the figure, it is clear that this optimization is less pronounced compared to the previous one, but it still shows overall improvement. Extensive testing indicates that the worse the scalability of MySQL, the more significant the effectiveness of binlog group commit optimization.
277277
278-
At the same time, the previously identified bottleneck of *_pthread_mutex_con_lock* has been significantly alleviated after optimization, as shown in the following figure:
278+
At the same time, the previously identified bottleneck of *_pthread_mutex_cond_lock* has been significantly alleviated after optimization, as shown in the following figure:
279279
280280
![](media/8f9080ee71094d948ab7592b449954bb.png)
281281
282-
Figure 8-18. Mitigation of *_pthread_mutex_con_lock* bottleneck.
282+
Figure 8-18. Mitigation of *_pthread_mutex_cond_lock* bottleneck.
283283
284284
In summary, this optimization helps address scalability problems associated with binlog group commit.
285285

0 commit comments

Comments
 (0)