$ client/mysql -S /tmp/s.sock
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 8418
|
Server version: 10.4.6-MariaDB Source distribution
|
|
MariaDB [(none)]> set global innodb_flush_log_at_trx_commit=1;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [(none)]> show global variables like '%shutdown%';
|
+-------------------------------------+-------+
|
| Variable_name | Value |
|
+-------------------------------------+-------+
|
| innodb_buffer_pool_dump_at_shutdown | ON |
|
| innodb_fast_shutdown | 1 |
|
+-------------------------------------+-------+
|
2 rows in set (0.005 sec)
|
|
MariaDB [(none)]> set global innodb_fast_shutdown=0;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [(none)]> shutdown;
|
Query OK, 0 rows affected (0.001 sec)
|
|
MariaDB [(none)]> Bye
|
{noformat}
|
|
{code:perl}
|
sql/mysqld --no-defaults --datadir=$HOME/mysqldata --socket /tmp/s.sock --lc-messages-dir=${PWD}/sql/share --innodb-buffer-pool-size=200G --innodb-log-file-size=1G --innodb_log_files_in_group=4 --verbose
|
mysql.user table already exists!
|
Run mysql_upgrade, not mysql_install_db
|
2019-07-08 11:50:24 0 [Note] sql/mysqld (mysqld 10.4.6-MariaDB) starting as process 7807 ...
|
2019-07-08 11:50:25 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
2019-07-08 11:50:25 0 [Note] InnoDB: Uses event mutexes
|
2019-07-08 11:50:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
|
2019-07-08 11:50:25 0 [Note] InnoDB: Number of pools: 1
|
2019-07-08 11:50:25 0 [Note] InnoDB: Using POWER8 crc32 instructions
|
2019-07-08 11:50:25 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
|
2019-07-08 11:50:25 0 [Note] InnoDB: Initializing buffer pool, total size = 200G, instances = 8, chunk size = 128M
|
2019-07-08 11:50:58 0 [Note] InnoDB: Completed initialization of buffer pool
|
2019-07-08 11:50:58 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
2019-07-08 11:51:03 0 [Note] InnoDB: Resizing redo log from 2*1073741824 to 4*1073741824 bytes; LSN=140318
|
2019-07-08 11:51:03 0 [Note] InnoDB: Starting to delete and rewrite log files.
|
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1073741824 bytes
|
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1073741824 bytes
|
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile2 size to 1073741824 bytes
|
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile3 size to 1073741824 bytes
|
2019-07-08 11:51:03 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
|
2019-07-08 11:51:03 0 [Note] InnoDB: New log files created, LSN=140318
|
2019-07-08 11:51:03 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
|
2019-07-08 11:51:03 0 [Note] InnoDB: Creating shared tablespace for temporary tables
|
2019-07-08 11:51:03 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
|
2019-07-08 11:51:03 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
|
2019-07-08 11:51:03 0 [Note] InnoDB: Waiting for purge to start
|
2019-07-08 11:51:03 0 [Note] InnoDB: 10.4.6 started; log sequence number 140318; transaction id 21
|
2019-07-08 11:51:03 0 [Note] InnoDB: Loading buffer pool(s) from /home/dan/mysqldata/ib_buffer_pool
|
2019-07-08 11:51:03 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2019-07-08 11:51:03 0 [Note] InnoDB: Buffer pool(s) load completed at 190708 11:51:03
|
2019-07-08 11:51:03 0 [Note] Server socket created on IP: '::'.
|
2019-07-08 11:51:03 0 [Note] Reading of all Master_info entries succeeded
|
2019-07-08 11:51:03 0 [Note] Added new Master_info '' to hash table
|
2019-07-08 11:51:03 0 [Note] sql/mysqld: ready for connections.
|
Version: '10.4.6-MariaDB' socket: '/tmp/s.sock' port: 3306 Source distribution
|
2019-07-08 11:56:20 14 [Warning] IP address '192.168.10.8' could not be resolved: Name or service not known
|
2019-07-08 11:56:20 12 [Warning] IP address '192.168.10.8' could not be resolved: Name or service not known
|
...
|
...
|
...
|
2019-07-08 14:26:27 2102 [Warning] Aborted connection 2102 to db: 'sbtest' user: 'sbtest' host: '192.168.10.8' (Got an error reading communication packets)
|
2019-07-08 14:26:27 2110 [Warning] Aborted connection 2110 to db: 'sbtest' user: 'sbtest' host: '192.168.10.8' (Got an error reading communication packets)
|
q2019-07-08 14:30:03 2935 [Note] Detected table cache mutex contention at instance 2: 20% waits. Additional table cache instance activated. Number of instances after activation: 3.
|
2019-07-08 15:13:26 8212 [Note] Detected table cache mutex contention at instance 2: 22% waits. Additional table cache instance activated. Number of instances after activation: 4.
|
2019-07-08 15:55:04 0 [Note] sql/mysqld (initiated by: dan[dan] @ localhost []): Normal shutdown
|
2019-07-08 15:55:04 0 [Note] Event Scheduler: Purging the queue. 0 events
|
2019-07-08 15:55:04 0 [Note] InnoDB: FTS optimize thread exiting.
|
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 5 (user : '') did not exit
|
|
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 4 (user : '') did not exit
|
|
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 3 (user : '') did not exit
|
|
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 1 (user : '') did not exit
|
|
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 2 (user : '') did not exit
|
|
Killed
|
$ date
|
16:05:55
|
I managed to hit it:
ubuntu-18.04 with distro gcc/g++ (7.4.0) - no special CFLAGS.
kernel 5.1.0
POWER8 (8335-GCA / S822LC)
$ client/mysql -S /tmp/s.sock
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8418
Server version: 10.4.6-MariaDB Source distribution
MariaDB [(none)]> set global innodb_flush_log_at_trx_commit=1;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> show global variables like '%shutdown%';
+-------------------------------------+-------+
| Variable_name | Value |
+-------------------------------------+-------+
| innodb_buffer_pool_dump_at_shutdown | ON |
| innodb_fast_shutdown | 1 |
+-------------------------------------+-------+
2 rows in set (0.005 sec)
MariaDB [(none)]> set global innodb_fast_shutdown=0;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> shutdown;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> Bye
{noformat}
{code:perl}
sql/mysqld --no-defaults --datadir=$HOME/mysqldata --socket /tmp/s.sock --lc-messages-dir=${PWD}/sql/share --innodb-buffer-pool-size=200G --innodb-log-file-size=1G --innodb_log_files_in_group=4 --verbose
mysql.user table already exists!
Run mysql_upgrade, not mysql_install_db
2019-07-08 11:50:24 0 [Note] sql/mysqld (mysqld 10.4.6-MariaDB) starting as process 7807 ...
2019-07-08 11:50:25 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-07-08 11:50:25 0 [Note] InnoDB: Uses event mutexes
2019-07-08 11:50:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-07-08 11:50:25 0 [Note] InnoDB: Number of pools: 1
2019-07-08 11:50:25 0 [Note] InnoDB: Using POWER8 crc32 instructions
2019-07-08 11:50:25 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2019-07-08 11:50:25 0 [Note] InnoDB: Initializing buffer pool, total size = 200G, instances = 8, chunk size = 128M
2019-07-08 11:50:58 0 [Note] InnoDB: Completed initialization of buffer pool
2019-07-08 11:50:58 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-07-08 11:51:03 0 [Note] InnoDB: Resizing redo log from 2*1073741824 to 4*1073741824 bytes; LSN=140318
2019-07-08 11:51:03 0 [Note] InnoDB: Starting to delete and rewrite log files.
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1073741824 bytes
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1073741824 bytes
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile2 size to 1073741824 bytes
2019-07-08 11:51:03 0 [Note] InnoDB: Setting log file ./ib_logfile3 size to 1073741824 bytes
2019-07-08 11:51:03 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2019-07-08 11:51:03 0 [Note] InnoDB: New log files created, LSN=140318
2019-07-08 11:51:03 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-07-08 11:51:03 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-07-08 11:51:03 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-07-08 11:51:03 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-07-08 11:51:03 0 [Note] InnoDB: Waiting for purge to start
2019-07-08 11:51:03 0 [Note] InnoDB: 10.4.6 started; log sequence number 140318; transaction id 21
2019-07-08 11:51:03 0 [Note] InnoDB: Loading buffer pool(s) from /home/dan/mysqldata/ib_buffer_pool
2019-07-08 11:51:03 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-07-08 11:51:03 0 [Note] InnoDB: Buffer pool(s) load completed at 190708 11:51:03
2019-07-08 11:51:03 0 [Note] Server socket created on IP: '::'.
2019-07-08 11:51:03 0 [Note] Reading of all Master_info entries succeeded
2019-07-08 11:51:03 0 [Note] Added new Master_info '' to hash table
2019-07-08 11:51:03 0 [Note] sql/mysqld: ready for connections.
Version: '10.4.6-MariaDB' socket: '/tmp/s.sock' port: 3306 Source distribution
2019-07-08 11:56:20 14 [Warning] IP address '192.168.10.8' could not be resolved: Name or service not known
2019-07-08 11:56:20 12 [Warning] IP address '192.168.10.8' could not be resolved: Name or service not known
...
...
...
2019-07-08 14:26:27 2102 [Warning] Aborted connection 2102 to db: 'sbtest' user: 'sbtest' host: '192.168.10.8' (Got an error reading communication packets)
2019-07-08 14:26:27 2110 [Warning] Aborted connection 2110 to db: 'sbtest' user: 'sbtest' host: '192.168.10.8' (Got an error reading communication packets)
q2019-07-08 14:30:03 2935 [Note] Detected table cache mutex contention at instance 2: 20% waits. Additional table cache instance activated. Number of instances after activation: 3.
2019-07-08 15:13:26 8212 [Note] Detected table cache mutex contention at instance 2: 22% waits. Additional table cache instance activated. Number of instances after activation: 4.
2019-07-08 15:55:04 0 [Note] sql/mysqld (initiated by: dan[dan] @ localhost []): Normal shutdown
2019-07-08 15:55:04 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-07-08 15:55:04 0 [Note] InnoDB: FTS optimize thread exiting.
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 5 (user : '') did not exit
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 4 (user : '') did not exit
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 3 (user : '') did not exit
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 1 (user : '') did not exit
2019-07-08 15:55:25 0 [Warning] sql/mysqld: Thread 2 (user : '') did not exit
Killed
$ date
16:05:55
`date` was run pretty much I saw the killed come up.
While running the following globals where changed:
innodb_flush_log_at_trx_commit=0
max_prepared_stmt_count=65535
max_connections=800
innodb_io_capacity_max=500000
innodb_io_capacity=500000
innodb_lru_scan_depth=10240
The first 5 user threads are innodb as expected:
| Id | User | Host | db | Command | Time | State | Info | Progress |
+-----+-------------+--------------------+--------+---------+------+--------------------------+----------------------------------------------------------------------------------+----------+
| 2 | system user | | NULL | Daemon | NULL | InnoDB purge worker | NULL | 0.000 |
| 1 | system user | | NULL | Daemon | NULL | InnoDB purge coordinator | NULL | 0.000 |
| 3 | system user | | NULL | Daemon | NULL | InnoDB purge worker | NULL | 0.000 |
| 4 | system user | | NULL | Daemon | NULL | InnoDB purge worker | NULL | 0.000 |
| 5 | system user | | NULL | Daemon | NULL | InnoDB shutdown handler | NULL | 0.000 |
On restart:
2019-07-08 16:09:09 0 [Note] sql/mysqld (mysqld 10.4.6-MariaDB) starting as process 45002 ...
2019-07-08 16:09:09 0 [Note] mysqld: Aria engine: starting recovery
recovered pages: 0% 28% 38% 70% 80% 91% 100% (0.0 seconds); tables to flush: 2 1 0 (0.0 seconds);
2019-07-08 16:09:09 0 [Note] mysqld: Aria engine: recovery done
2019-07-08 16:09:09 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-07-08 16:09:09 0 [Note] InnoDB: Uses event mutexes
2019-07-08 16:09:09 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-07-08 16:09:09 0 [Note] InnoDB: Number of pools: 1
2019-07-08 16:09:09 0 [Note] InnoDB: Using POWER8 crc32 instructions
2019-07-08 16:09:09 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2019-07-08 16:09:09 0 [Note] InnoDB: Initializing buffer pool, total size = 200G, instances = 8, chunk size = 128M
^C2019-07-08 16:09:42 0 [Note] InnoDB: Completed initialization of buffer pool
2019-07-08 16:09:42 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-07-08 16:09:42 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=443556641154
2019-07-08 16:09:42 0 [Note] InnoDB: Starting final batch to recover 2530 pages from redo log.
2019-07-08 16:09:51 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-07-08 16:09:51 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-07-08 16:09:51 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-07-08 16:09:51 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-07-08 16:09:51 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-07-08 16:09:51 0 [Note] InnoDB: Waiting for purge to start
2019-07-08 16:09:51 0 [Note] InnoDB: 10.4.6 started; log sequence number 443558379695; transaction id 174681
2019-07-08 16:09:51 0 [Note] InnoDB: Loading buffer pool(s) from /home/dan/mysqldata/ib_buffer_pool
2019-07-08 16:09:51 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-07-08 16:09:51 0 [Note] InnoDB: Buffer pool(s) load completed at 190708 16:09:51
2019-07-08 16:09:51 0 [Note] Server socket created on IP: '::'.
2019-07-08 16:09:51 0 [Note] Reading of all Master_info entries succeeded
2019-07-08 16:09:51 0 [Note] Added new Master_info '' to hash table
2019-07-08 16:09:51 0 [Note] sql/mysqld: ready for connections.
Version: '10.4.6-MariaDB' socket: '/tmp/s.sock' port: 3306 Source distribution