Mysql InnoDB笔记内存(二)
:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Main thread id 2708, state: sleeping
Number of rows inserted 0, updated 0, deleted 0, read 0
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
InnoDB的内存
由缓冲池,重做日志缓冲池及额外的内存构成.
Sql代码
show variables like 'innodb_buffer_pool_size'\G; 134217728
show variables like 'innodb_log_buffer_size'\G; 8388608
show variables like 'innodb_additional_mem_pool_size'\G; 8388608
缓冲池是最大的部分,用来存放各种数据的缓存.引擎按页16KB/每页读取到缓冲池,然后按LRU保留缓冲池中的数据.如果
数据库文件需要修改,先修改缓冲池中的页,修改后即为脏页,然后按一定的频率将脏页刷新到文件.
Buffer pool size 8192 中的大小即可算出缓冲区 8192*16(KB/page)/1024 =
缓冲池中缓存的数据类型有:索引页,数据页,UNDO页,插入缓冲,自适应哈希索引,InnoDB锁信息,数据字典等.
AWE 开启后引擎自动禁用自适应哈希索引.
日志缓冲将重做日志信息先放入这个缓冲区,再按一定的频率将其刷新到重做日志文件.