设为首页 加入收藏

TOP

MySQL系统变量优化详述(三)
2018-04-13 06:06:32 】 浏览:236
Tags:MySQL 系统 变量 优化 详述
: 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
首页 上一页 1 2 3 4 下一页 尾页 3/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇如何在Ubuntu上安装MySQL/MariaDB 下一篇MySQL索引管理优化详述

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目