- 8.0.16 - internal_tmp_disk_storage_engine # In MySQL 8.0.16 and later, on-disk internal temporary tables always use the InnoDB storage engine; as of MySQL 8.0.16, this variable has been removed and is thus no longer supported. rm -rf 96239/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/96239 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/96239 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=$PWD/96239/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv=/tmp/ --innodb_buffer_pool_size=128M --temptable_max_ram=2097152 --temptable_use_mmap=OFF 2>&1 & bin/sysbench share/sysbench/oltp_read_write.lua --threads=100 --tables=2 --table_size=1000000 --db-driver=mysql --mysql-db=test --mysql-user=ushastry --mysql-password=mysql123 --mysql-socket=/tmp/mysql_ushastry.sock prepare - bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.16 MySQL Community Server - GPL Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database test; Query OK, 1 row affected (0.01 sec) - sysbench bin/sysbench share/sysbench/oltp_read_write.lua --threads=100 --tables=2 --table_size=1000000 --db-driver=mysql --mysql-db=test --mysql-user=ushastry --mysql-password=mysql123 --mysql-socket=/tmp/mysql_ushastry.sock prepare sysbench 1.1.0 (using bundled LuaJIT 2.1.0-beta3) Initializing worker threads... Creating table 'sbtest2'...Creating table 'sbtest1'... Inserting 1000000 records into 'sbtest1' Inserting 1000000 records into 'sbtest2' Creating a secondary index on 'sbtest2'... Creating a secondary index on 'sbtest1'... - CLI session mysql> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> update sbtest1 set pad = '22195207048-70116052123-74140395089-76317954521-98694025897'; Query OK, 999999 rows affected (16.82 sec) Rows matched: 1000000 Changed: 999999 Warnings: 0 mysql> update sbtest2 set pad = '22195207048-70116052123-74140395089-76317954521-98694025897'; Query OK, 1000000 rows affected (17.45 sec) Rows matched: 1000000 Changed: 1000000 Warnings: 0 mysql> create view view_sb_2 as select * from sbtest1 union all select * from sbtest2; Query OK, 0 rows affected (0.00 sec) mysql> select * from view_sb_2 where pad = '22195207048-70116052123-74140395089-76317954521-98694025897' order by id desc limit 0, 10; ^^ still going on - CLI2 mysql> show processlist; +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | 4 | event_scheduler | localhost | NULL | Daemon | 366 | Waiting on empty queue | NULL | | 7 | root | localhost | test | Query | 357 | Creating sort index | select * from view_sb_2 where pad = '22195207048-70116052123-74140395089-76317954521-98694025897' or | | 10 | root | localhost | NULL | Query | 0 | starting | show processlist | +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ 3 rows in set (0.00 sec) . mysql> show processlist; +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | 4 | event_scheduler | localhost | NULL | Daemon | 789 | Waiting on empty queue | NULL | | 7 | root | localhost | test | Query | 780 | Creating sort index | select * from view_sb_2 where pad = '22195207048-70116052123-74140395089-76317954521-98694025897' or | | 10 | root | localhost | NULL | Query | 0 | starting | show processlist | +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ 3 rows in set (0.00 sec) mysql> show processlist; +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +----+-----------------+-----------+------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+ | 4 | event_scheduler | localhost | NULL | Daemon | 870 | Waiting on empty queue | NULL | | 7 | root | localhost | test | Query | 861 | Creating sort index | select * from view_sb_2 where pad = '22195207048-70116052123-74140395089-76317954521-98694025897' or | . mysql> use test ^^ hanged - excerpt from error log 2019-07-18T04:56:20.964333Z 7 [Warning] [MY-011959] [InnoDB] Difficult to find free blocks in the buffer pool (6900 search iterations)! 6900 failed attempts to flush a page! Consider increasing the buffer pool size. It is also possible that in your Unix version fsync is very slow, or completely frozen inside the OS kernel. Then upgrading to a newer version of your operating system may help. Look at the number of fsyncs in diagnostic info below. Pending flushes (fsync) log: 0; buffer pool: 0. 54583 OS file reads, 134312 OS file writes, 48 OS fsyncs. Starting InnoDB Monitor to print further diagnostics to the standard output. - pmp 10 __io_getevents_0_4(libaio.so.1),LinuxAIOHandler::collect,LinuxAIOHandler::poll,os_aio_linux_handler,os_aio_handler(unsigned,fil_aio_wait,io_handler_thread,void,__invoke,operator(),operator()<>,operator(),operator()<>,operator(),operator()<>,operator(),operator()<>,operator(),operator()<>,operator(),operator()<>,operator(),operator()>,wait,log_writer(log_t*),void,__invoke,operator()>(unique_ptr.h:712),wait(unique_ptr.h:712),log_write_notifier(log_t*)(unique_ptr.h:712),void(unique_ptr.h:712),__invoke(unique_ptr.h:712),operator()>(unique_ptr.h:712),wait(unique_ptr.h:712),log_flush_notifier(log_t*)(unique_ptr.h:712),void(unique_ptr.h:712),__invoke(unique_ptr.h:712),operator()>,wait,log_flusher(log_t*),void,__invoke,operator()>,wait,log_closer,void,__invoke,operator(),operator(),operator()<>,operator(),operator(),operator()<>,operator()>(chrono:465),srv_master_sleep(chrono:465),srv_master_thread()(chrono:465),void(chrono:465),__invoke(chrono:465),operator()<>(chrono:465),operator()>(chrono:465),buf_LRU_get_free_block(buf_pool_t*)(chrono:465),buf_page_init_for_read,buf_read_page_low,buf_read_page,Buf_fetch::read_page,Buf_fetch_other::get,Buf_fetch::single_page,buf_page_get_gen,btr_cur_search_to_nth_level_with_no_latch,open_no_init,Row_sel_get_clust_rec_for_mysql::operator()(row_prebuilt_t*,,row_search_no_mvcc,ha_innobase::general_fetch,handler::ha_index_next_same,RefIterator::Read,FilterIterator::Read(unique_ptr.h:342),read_all_rows,filesort(THD*,,SortingIterator::DoSort,SortingIterator::Init,sub_select,do_select,JOIN::exec(),Sql_cmd_dml::execute_inner,Sql_cmd_dml::execute,mysql_execute_command,mysql_parse,dispatch_command,do_command,handle_connection,pfs_spawn_thread,start_thread(libpthread.so.0),clone(libc.so.6)