Skip to content

Commit ca1ff62

Browse files
Corrected capitalization of sysbench
1 parent 876808a commit ca1ff62

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

content/learning-paths/servers-and-cloud-computing/bolt-merge/how-to-2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Before running the workload, you might need to initialize a new data directory i
106106
bin/mysqld --initialize-insecure --datadir=data
107107
```
108108

109-
Start the instrumented server. On an 8-core system, use core 2 for mysqld and core 7 for sysbench to avoid contention.
109+
Start the instrumented server. On an 8-core system, use core 2 for mysqld and core 7 for Sysbench to avoid contention.
110110

111111
Run the command from build directory:
112112

@@ -171,15 +171,15 @@ You only need to do this once. Don’t repeat it before each test.
171171

172172
## Reset the database between runs
173173

174-
This clears all existing tables and data from the bench database, giving you a clean slate for sysbench prepare without needing to recreate the user or reinitialize the datadir.
174+
This clears all existing tables and data from the bench database, giving you a clean slate for Sysbench prepare without needing to recreate the user or reinitialize the datadir.
175175

176176
```bash
177177
bin/mysql -u root <<< "DROP DATABASE bench; CREATE DATABASE bench;"
178178
```
179179

180180
## Install and build Sysbench
181181

182-
In a third terminal, run the commands below if you have not run sysbench yet:
182+
In a third terminal, run the commands below if you have not run Sysbench yet:
183183

184184
```bash
185185
git clone https://github.com/akopytov/sysbench.git
@@ -192,7 +192,7 @@ export LD_LIBRARY_PATH=/usr/local/mysql/lib/
192192

193193
Use `./src/sysbench` for running benchmarks unless installed globally.
194194

195-
## Prepare the dataset with sysbench
195+
## Prepare the dataset with Sysbench
196196

197197
Run `sysbench` with the `prepare` option:
198198

@@ -263,7 +263,7 @@ Start the MySQL instrumented binary in first terminal.
263263

264264
Use a workload generator to stress the binary in a feature-specific way.
265265

266-
For example, to simulate **read-only traffic** with sysbench:
266+
For example, to simulate **read-only traffic** with Sysbench:
267267

268268
```bash
269269
taskset -c 7 ./src/sysbench \
@@ -294,7 +294,7 @@ On an 8-core system, cores are numbered 0-7. Adjust the `taskset -c` values as n
294294

295295
The `.fdata` file defined in `--instrumentation-file` will be populated with runtime execution data.
296296

297-
After completing each benchmark run (for example, after sysbench run), you must cleanly shut down the MySQL server and reset the dataset to ensure the next test starts from a consistent state.
297+
After completing each benchmark run (for example, after Sysbench run), you must cleanly shut down the MySQL server and reset the dataset to ensure the next test starts from a consistent state.
298298
```bash
299299
bin/mysqladmin -u root shutdown ; rm -rf /dev/shm/dataset ; cp -R data/ /dev/shm/dataset
300300
```

content/learning-paths/servers-and-cloud-computing/bolt-merge/how-to-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ llvm-bolt $HOME/mysql-server/build/bin/mysqld \
3232
Run Sysbench using the write-only Lua script to generate a workload profile:
3333

3434
```bash
35-
# On an 8-core system, use available cores (e.g., 7 for sysbench)
35+
# On an 8-core system, use available cores (e.g., 7 for Sysbench)
3636
taskset -c 7 ./src/sysbench \
3737
--db-driver=mysql \
3838
--mysql-host=127.0.0.1 \

content/learning-paths/servers-and-cloud-computing/bolt-merge/how-to-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ llvm-bolt $HOME/bolt-libs/openssl/lib/libssl.so.3 \
4040
2>&1 | tee $HOME/mysql-server/bolt-instrumentation-libssl.log
4141
```
4242

43-
Launch MySQL with the instrumented `libssl.so` and run a read+write sysbench test to populate the profile
43+
Launch MySQL with the instrumented `libssl.so` and run a read+write Sysbench test to populate the profile
4444

4545
### Optimize libssl using the profile
4646

@@ -135,7 +135,7 @@ llvm-bolt $HOME/bolt-libs/openssl/libcrypto.so.3 \
135135
--instrumentation-wait-forks \
136136
2>&1 | tee $HOME/mysql-server/bolt-instrumentation-libcrypto.log
137137
```
138-
Launch MySQL using the instrumented shared library and run a read+write sysbench test to populate the profile.
138+
Launch MySQL using the instrumented shared library and run a read+write Sysbench test to populate the profile.
139139

140140
### Optimize libcrypto using the profile
141141
After running the read+write test, ensure `libcrypto-readwrite.fdata` is populated.

content/learning-paths/servers-and-cloud-computing/bolt-merge/how-to-5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Second test run:
5353
| Total time (s) | 239.8 | 239.72 | 239.9 | 239.9 | 239.9 |
5454

5555
{{% notice Note %}}
56-
All sysbench and .fdata file paths, as well as taskset usage, should match the conventions in previous steps: use sysbench from PATH (no src/), use /usr/share/sysbench/ for Lua scripts, and use $HOME-based paths for all .fdata and library files. On an 8-core system, use taskset -c 7 for sysbench and avoid contention with mysqld.
56+
All Sysbench and .fdata file paths, as well as taskset usage, should match the conventions in previous steps: use Sysbench from PATH (no src/), use /usr/share/sysbench/ for Lua scripts, and use $HOME-based paths for all .fdata and library files. On an 8-core system, use taskset -c 7 for Sysbench and avoid contention with mysqld.
5757
{{% /notice %}}
5858

5959
### Key metrics to analyze

0 commit comments

Comments
 (0)