generated from github/welcome-to-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinnodb metrics.txt
495 lines (371 loc) · 20.5 KB
/
innodb metrics.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
[mysqld]
innodb_buffer_pool_size=2G
innodb_log_file_size=512M
innodb_write_io_threads=64
innodb_io_capacity=5000 // READ MORE AARAM SE HAVE TO DO SOMETING WITH SSD
https://www.percona.com/blog/2019/12/18/give-love-to-your-ssds-reduce-innodb_io_capacity_max/
innodb_thread_concurrency=0
innodb_buffer_pool_size = 4G
innodb_log_buffer_size = 500M
innodb_log_file_size = 1G // HAVE TO INCRESE FOR LARGER POOL SIZE // COMMUICATES WITH BUFFER POOL FOR QUERY N BACKUPS
// IMPORTANT FOR WRITE OPERATIONS // https://www.percona.com/blog/2017/10/18/chose-mysql-innodb_log_file_size/
innodb_write_io_threads = 16 // more than 64 × innodb_read_io_threads pending read requests in SHOW ENGINE INNODB STATUS THEN INCREASE IT
innodb_read_io_threads=64 // more than 64 × innodb_read_io_threads pending read requests in SHOW ENGINE INNODB STATUS THEN INCREASE IT
// HAVE TO INCRESE FOR LARGER POOL SIZE OR MANY KEY // WHEN TO INCREASE ? https://www.saotn.org/mysql-innodb-performance-improvement/
from previous link. Starting from MariaDB 10.0, the default number of innodb_buffer_pool_instances is 8. This means you have to configure your innodb_buffer_pool_size to at least 8 GB, see the defaults above.
FOR DEEP DIVE INTO IOI THREAD https://dev.mysql.com/doc/refman/8.0/en/optimizing-innodb-diskio.html
FOR HIGH END SUBSYSTEM: https://dev.mysql.com/doc/refman/5.6/en/innodb-performance-multiple_io_threads.html
FROM https://dba.stackexchange.com/questions/212884/innodb-after-48-hours-of-optimizing-10mb-sec-write-speed
query_cache_type=OFF # from ON no need to waste CPU for mgmt
query_cache_size=0 # from ~256M to conserve RAM and CPU cycles
slow_query_log=ON # from OFF always good to have ON
innodb_flush_neighbor_pages = none // ISSKO LE LENA, IN MARI DOCUMENTATION // https://mariadb.com/resources/blog/how-to-tune-mariadb-write-performance/
MARK 1:
FOREGIN KEY CHECKS : SET FOREIGN_KEY_CHECKS=0; UNIQUE_CHECKS=0; SET FOREIGN_KEY_CHECKS=1;
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 1 or 2 or 0 // 2 BECAUSE I DONT GIVE A DAMN ABOUT POWER LOSS // https://mariadb.com/resources/blog/10-database-tuning-tips-for-peak-workloads/
BUT THREADING CAN COME INTO PLACE: https://www.percona.com/blog/2010/02/28/maximal-write-througput-in-mysql/
innodb_flush_method = O_DIRECT Eliminate Double Buffering // https://www.percona.com/blog/2007/11/03/choosing-innodb_buffer_pool_size/
innodb_autoinc_lock_mode =2 https://www.percona.com/blog/2016/10/12/mysql-5-7-performance-tuning-immediately-after-installation/
BELOW THREE ARE TAEKN FROM : https://www.percona.com/blog/2019/12/18/give-love-to-your-ssds-reduce-innodb_io_capacity_max/
innodb_adaptive_flushing_lwm = 0
innodb_io_capacity = 100 /// lOW io CAPACITY FOR FLUSHING, YOU SEE, CAPACITY AND CAPACITY_MAX HAVE REALTIONSHIP WHICH IS COMPLEX. CHOTA RAKHOGE TO ACHHA HAI DONO,
NOT TOO HIGH NOT TOO LOW. NOT IN TENS THOUSANDS ALSO (SEE LAST PARA OF LINK)
FINAL:
SET FOREIGN_KEY_CHECKS=0; // SKIPS FORGEIN KEY CHECK WHICH TAKES TOO MUCH TIME // https://gabi.dev/2016/05/17/fast-data-import-trick/
SET UNIQUE_CHECKS=0; // SKIPS UNIQUE CHECKS // https://gabi.dev/2016/05/17/fast-data-import-trick/
innodb_buffer_pool_size=2G // MOST IMPORTANT: SET ACCORDING TO RAM // https://scalegrid.io/blog/calculating-innodb-buffer-pool-size-for-your-mysql-server
innodb_buffer_pool_instances = 6 // SO THAT BUFFER POOL SIZE GETS DIVIDED INTO 1 GB EACH // https://www.saotn.org/mysql-innodb-performance-improvement
innodb_log_file_size = 1G
innodb_log_buffer_size = 500M // HALF OF LOG FILE SIZE // https://dba.stackexchange.com/questions/212884/innodb-after-48-hours-of-optimizing-10mb-sec-write-speed
innodb_write_io_threads = 64 // SEE UP
innodb_read_io_threads= 32 // SEE UP
innodb_io_capacity= 40000 // SEE DOWN N UP // CHANGE THIS LATER // TESTING FOR HIGH WRITE
innodb_io_capacity_max = 40000 // SEE DOWN N UP // CHANGE THIS LATER // TESTING FOR HIGH WRITE // EPENDANT ON IO CAPACITY
innodb_flush_method = O_DIRECT // SEE UP
innodb_flush_neighbor_pages = none // SEE UP
innodb_autoinc_lock_mode =2 // OPTIMISED FOR HIGH WRITE // SEE UP
innodb_flush_log_at_trx_commit = 0 // // CAHNGED FROM 2 DUE TO THREADING
query_cache_type=OFF # from ON no need to waste CPU for mgmt
query_cache_size=0 # from ~256M to conserve RAM and CPU cycles
slow_query_log=ON # from OFF always good to have ON
innodb_thread_concurrency=0 // https://mariadb.com/kb/en/innodb-system-variables/#innodb_thread_concurrency
------------------------
CUSTOMISING FOR DGX:
>> free -h
@ 5.12 am 24-02-2021
total used free shared buff/cache available
Mem: 503G 30G 166G 367M 307G 469G
going with a 64G combination
SET FOREIGN_KEY_CHECKS=0;
SET UNIQUE_CHECKS=0;
innodb_buffer_pool_size= 64G // out of 166
innodb_buffer_pool_instances = 64 // 1 gb per instance
innodb_log_file_size = 12G // large for large pool
innodb_log_buffer_size = 6G // so that half wait time occurs
innodb_write_io_threads = 64 // due to 64 gb
innodb_read_io_threads = 64 // due to 64 gb
innodb_io_capacity= 40000 // not too big
innodb_io_capacity_max = 50000 // //if too big than normal performance of normal capacity drops
innodb_flush_method = O_DIRECT
innodb_flush_neighbor_pages = none
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
query_cache_type=OFF
query_cache_size=0
slow_query_log=ON
innodb_thread_concurrency=0 // for machine to automatically make opotimum threads
given input:
innodb_buffer_pool_size= 64G
innodb_buffer_pool_instances = 64
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_flush_neighbor_pages = none
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
innodb_thread_concurrency=0
query_cache_type=OFF
query_cache_size=0
slow_query_log=ON
##########################################################################################################################################
TRIAL 1:
innodb_buffer_pool_size= 12G //GOOD
TRIAL 2:
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 16 pass
TRIAL 3: PASS IT TAKES TIME TO LOAD
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
TRIAL 4: FAIL: WILL TRY TO CHANGE LOG FILE SIZE I.E. LOWER
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
TRIAL 4: PASS : WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 1G
TRIAL 5: PASS : WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 4G
FAILED AT FIRST
AFTER RESTARTING 3 TIME PASSED,
TRIAL 5: : WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 8G
FAILED AT FIRST
AFTER RESTARTING 3 TIME PASSED,
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d#
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d#
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
TRIAL 5: PASS : WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
FAILED AT FIRST
AFTER RESTARTING 5 TIME PASSED,
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [fail]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
TRIAL 5: WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 1G
PASS AT FIRST TRY
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
TRIAL 6: WILL TRY TO CHANGE LOG FILE SIZE : PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
TRIAL 6: WILL TRY TO CHANGE LOG FILE SIZE : PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# nano 50-server.cnf
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql start
* Starting MariaDB database server mysqld [ OK ]
TRIAL 6: WILL TRY TO CHANGE LOG FILE SIZE : PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
(rapids) root@9600962630f4:/etc/mysql/mariadb.conf.d# service mysql restart
* Stopping MariaDB database server mysqld [ OK ]
* Starting MariaDB database server mysqld [ OK ]
TRIAL 7: WILL TRY TO CHANGE LOG FILE SIZE : PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
TRIAL 8: WILL TRY TO CHANGE LOG FILE SIZE
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_flush_neighbor_pages = none
FAILED 12 TIMES DO NOT USE: innodb_flush_neighbor_pages = none
TRIAL 9: REMOVE INNODB FLUSH NEIGHBOUR PAGES: PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
TRIAL 10 : REMOVE INNODB FLUSH NEIGHBOUR PAGES: PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
PASSS AUTOINC WORKS
TRIAL 11 : REMOVE INNODB FLUSH NEIGHBOUR PAGES: PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
PASS FLUSH LOG AT TRX COMMIT WORKS
TRIAL 12 : REMOVE INNODB FLUSH NEIGHBOUR PAGES: PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
innodb_thread_concurrency=0
PASS thread_concurrency=0 WORKS
TRIAL 13 : REMOVE INNODB FLUSH NEIGHBOUR PAGES: PASSSSSSS, I THINK BECAUSE USSKO SMAJAH GYA
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
innodb_thread_concurrency=0
TRIAL 14 : REMOVE INNODB FLUSH NEIGHBOUR PAGES
innodb_buffer_pool_size= 64G //GOOD
innodb_buffer_pool_instances = 64 //pass
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
innodb_thread_concurrency=0
query_cache_type=OFF
passssssssssssss
TRIAL 15 : REMOVE INNODB FLUSH NEIGHBOUR PAGES
innodb_buffer_pool_size= 64G
innodb_buffer_pool_instances = 64
innodb_log_file_size = 12G
innodb_log_buffer_size = 6G
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_io_capacity= 40000
innodb_io_capacity_max = 50000
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode =2
innodb_flush_log_at_trx_commit = 0
innodb_thread_concurrency=0
query_cache_type=OFF
query_cache_size=0
slow_query_log=ON
passssssssssssss
YET TO TRY:
innodb_thread_concurrency=0
https://mariadb.com/kb/en/innodb-system-variables/
These settings will dramatically increase
the import speed of innodb data from a mysqldump export file,
containing an Innodb table with millions++ of rows,
transforming what used to span hours into mere minutes,
Set, import, then reset my.cnf to original settings.
(restart required for each change)
In my.cnf set (my workstation has 8G RAM)
innodb_buffer_pool_size = 4G
innodb_log_buffer_size = 500M
innodb_log_file_size = 1G
innodb_write_io_threads = 16
innodb_flush_log_at_trx_commit = 0
In the mysqldump file add this before you start the sql statements
SET FOREIGN_KEY_CHECKS=0;
SET UNIQUE_CHECKS=0;
SET AUTOCOMMIT=0;
At the end of the file don't forget
COMMIT;
Aloha!
SHOW STATUS LIKE '%key_read%';
SHOW STATUS LIKE 'thread%';
before commiting cahnge: https://dba.stackexchange.com/questions/41872/configuring-mysql-my-cnf-for-myisam-and-innodb
Work on: InnoDB AUTO_INCREMENT Lock Modes https://dev.mysql.com/doc/refman/5.7/en/innodb-auto-increment-handling.html#innodb-auto-increment-lock-modes
mysql> use your_database_name;
mysql> source file.sql;
FOR LOG BUFFER SEE THIS:
https://www.percona.com/blog/2007/11/03/choosing-innodb_buffer_pool_size/
On Linux, FreeBSD, Solaris you need to set innodb_flush_method=O_DIRECT. On other Operating Systems you may be able to select it on OS level but make sure to do it. There is a small niche case when it hurts – when you do not have RAID with BBU and your workload is very write intensive but there are always exceptions.
FROM: VERY IMPORTANT PAGE
https://dba.stackexchange.com/questions/212884/innodb-after-48-hours-of-optimizing-10mb-sec-write-speed
innodb_io_capacity=40000 # from 5000 to open the door for NVME speed
read_rnd_buffer_size=256K # from 1M to reduce handler_read_rnd_next RPS
innodb_lru_scan_depth=128 # from 1024 to conserve CPU every second
innodb_adaptive_max_sleep_delay=10000 # from 150000 for 1 sec sleep delay
innodb_flushing_avg_loops=4 # from 30 for reduce the loop delay
innodb_thread_concurrency=0 # from 144 see dba.stackexhange Question 5666
max_seeks_for_key=32 # to limit optimizer to nn vs ~ 4 Billion possible
max_write_locks_count=16 # to allow RD after nn lcks vs up to 4 Billion lcks
thread_concurrency=30 # from 10 for additional conc - may be DEPR
innodb_buffer_pool_instances=8 # from 64 see REFMAN for innodb_lru_scan_depth details
innodb_log_file_size=6G # from ~ 512M to reduce log rotation
innodb_log_buffer_size=3G # from 16M for ~ 30 minutes buffering
query_cache_type=OFF # from ON no need to waste CPU for mgmt
query_cache_size=0 # from ~256M to conserve RAM and CPU cycles
slow_query_log=ON # from OFF always good to have ON
TUNE MARIA FOR IO:
Innodb_flush_neighbor_pages = none, innodb_io_capacity = what_your_hardware_can_do
https://mariadb.com/resources/blog/how-to-tune-mariadb-write-performance/