Skip to content

Commit bc67e1c

Browse files
committed
Update Chapter11.md
1 parent 0b713cb commit bc67e1c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Chapter11.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ From the figure, it can be observed that the performance improvement from PGO in
5050

5151
In conclusion, PGO can be summarized as follows:
5252

53-
1. For MySQL, PGO is a worthwhile optimization that theoretically improves performance comprehensively, especially in SMP environments.
54-
2. In NUMA environments, addressing scalability problems is necessary to achieve significant benefits from PGO.
55-
3. PGO is less effective in a Group Replication cluster compared to a standalone MySQL instance.
53+
1. For MySQL, PGO is a worthwhile optimization that theoretically improves performance comprehensively, especially in SMP environments.
54+
2. In NUMA environments, addressing scalability problems is necessary to achieve significant benefits from PGO.
55+
3. PGO is less effective in a Group Replication cluster compared to a standalone MySQL instance.
5656

5757
## 11.2 Minimize Network Interactions
5858

@@ -181,6 +181,8 @@ Figure 11-11. Achieve better replay speed with 'dual one' closed.
181181

182182
Under equivalent conditions, disabling 'dual one' achieved a balanced replay speed of 810,000 tpmC for MySQL secondaries, while enabling 'dual one' reduced this speed to approximately 700,000 tpmC. Thus, disabling 'dual one' significantly improves the replay speed of MySQL secondaries.
183183

184+
Note that the above test results were obtained in a high-performance SSD environment, and differences in SSD hardware performance can lead to varying results.
185+
184186
### 11.5.2 Performance Effects of Disabling Binlog
185187

186188
With binary logging enabled, the server logs all statements that modify data to the binary log, which is utilized for backup and replication purposes. Disabling binlog can theoretically eliminate queue wait times, thereby improving throughput and reducing response times.
@@ -199,11 +201,11 @@ Contending threads must wait for a lock when it's unavailable. Several waiting p
199201

200202
**Advantages of Spinning:**
201203

202-
- In an unloaded system, spinning offers high performance with minimal overhead, as it avoids OS coordination and incurs only a few cache miss latencies per lock handoff. On chip multiprocessors with shared caches, lock acquisition and release latencies can be as low as 150 ns.
204+
- In an unloaded system, spinning offers high performance with minimal overhead, as it avoids OS coordination and incurs only a few cache miss latencies per lock handoff. On chip multiprocessors with shared caches, lock acquisition and release latencies can be as low as 150 ns.
203205

204206
**Disadvantages of Spinning:**
205207

206-
- When the system is loaded, spinning can degrade performance as it reduces the number of processors available for useful work, leading to suboptimal performance when runnable threads exceed hardware contexts. Additionally, since spinning isn't coordinated with the OS, it doesn't account for lock holders or spinners in scheduling decisions.
208+
- When the system is loaded, spinning can degrade performance as it reduces the number of processors available for useful work, leading to suboptimal performance when runnable threads exceed hardware contexts. Additionally, since spinning isn't coordinated with the OS, it doesn't account for lock holders or spinners in scheduling decisions.
207209

208210
The spin delay parameter helps address NUMA (Non-Uniform Memory Access) compatibility problems. Generally, better MySQL scalability reduces the impact of the spin delay parameter. Conversely, in cases of poor scalability, the spin delay parameter noticeably affects performance, although its effectiveness has an upper limit.
209211

0 commit comments

Comments
 (0)