: waiting for i/o request (write thread) I/O thread 8 state: waiting for i/o request (write thread) I/O thread 9 state: waiting for i/o request (write thread) Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0] , ibuf aio reads:, log i/o's:, sync i/o's: Pending flushes (fsync) log: 0; buffer pool: 0 894 OS file reads, 125124 OS file writes, 6256 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 0, seg size 2, 0 merges merged operations: insert 0, delete mark 0, delete 0 discarded operations: insert 0, delete mark 0, delete 0 Hash table size 232523, node heap has 0 buffer(s) Hash table size 232523, node heap has 0 buffer(s) Hash table size 232523, node heap has 0 buffer(s) Hash table size 232523, node heap has 3093 buffer(s) Hash table size 232523, node heap has 1 buffer(s) Hash table size 232523, node heap has 1545 buffer(s) Hash table size 232523, node heap has 1 buffer(s) Hash table size 232523, node heap has 1 buffer(s) 0.00 hash searches/s, 0.00 non-hash searches/s --- LOG --- Log sequence number 1258938797 Log flushed up to 1258938797 Pages flushed up to 1258938797 Last checkpoint at 1258938788 0 pending log flushes, 0 pending chkp writes 1286 log i/o's done, 0.00 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 962002944 Dictionary memory allocated 320881 Buffer pool size 57344 Free buffers 1024 Database pages 51679 Old database pages 19056 Modified db pages 0 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 335, not young 124 0.00 youngs/s, 0.00 non-youngs/s Pages read 379, created 60479, written 118447 0.00 reads/s, 0.00 creates/s, 0.00 writes/s No buffer pool page gets since the last printout Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 51679, unzip_LRU len: 0 I/O sum[0]:cur[0], unzip sum[0]:cur[0] -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue 0 read views open inside InnoDB Process ID=10779, Main thread ID=140081746663168, state: sleeping Number of rows inserted 10501644, updated 2100327, deleted 0, read 21003388 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================ 3)innodb_additional_mem_pool_size innodb_additional_mem_pool_size变量为InnoDB特定数据字典信息定义了内存池。对于这个变量,没有什么好的方法来确定它的最优值,一般将其设置为10M。 4)query_cache_size query_cache_size变量是一个用来存储经常缓存过的查询全局内存缓冲区。使用query_cache_type变量可以总体启用和禁用查询缓存。启用时query_cache_size的值可能为0,这表示没有查询需要被缓存。而MySQL实例可以通过动态的改变query_cache_size的值在某个时间仍然可以支持缓存。 2、全局/会话内存缓冲区 1)max_heap_table_size 这个变量定义了MySQL MEMORY存储引擎表的最大容量。当某个表容量超过最大值时,应用程序会收到下面的信息。 mysql> set session ma |