iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >mysql 5.5 -- innodb buffer pool优化
  • 498
分享到

mysql 5.5 -- innodb buffer pool优化

2024-04-02 19:04:59 498人浏览 薄情痞子
摘要

InnoDB buffer pool 被设为两个SUBLIST:一个是存放大部分查询所需用到的块;另一个是存放小量查询所需用到的块;并可以被回收;[@more@]The InnoDB buffer pool

InnoDB buffer pool 被设为两个SUBLIST:
一个是存放大部分查询所需用到的块;
另一个是存放小量查询所需用到的块;并可以被回收;
[@more@]

The InnoDB buffer pool is divided into two sublists:
A new sublist containing blocks that are heavily used by queries,
and an old sublist containing less-used blocks and from which candidates for eviction are taken.

InnoDB buffer pool 被设为两个SUBLIST:
一个是存放大部分查询所需用到的块;
另一个是存放小量查询所需用到的块;并可以被回收;

In the default operation of the buffer pool,
a block when read in is loaded at the midpoint and then moved immediately to the head of the new sublist as soon as an access occurs.
In the case of a table scan (such as perfORMed for a Mysqldump operation),
each block read by the scan ends up moving to the head of the new sublist because multiple rows are accessed from each block.
This occurs even for a one-time scan, where the blocks are not otherwise used by other queries.
Blocks may also be loaded by the read-ahead background thread and then moved to the head of the new sublist by a single access.
These effects can be disadvantageous because they push blocks that are in heavy use by other queries out of the new sublist
to the old sublist where they become subject to eviction.

默认情况下,一个数据块只要被访问,那么这个块将立刻被放到“最新访问列表”的头部;
mysqlDUMP,需求全表扫描一次,那么BUFFERPOOL里的块将被重新换一次;
这样做的一个缺点就是BUFFERPOOL里的块换进换出特别的频繁,而且有可能把一些热块给换出去;最终导致频繁IO;

InnoDB now provides two system variables that enable LRU alGorithm tuning:

innodb_old_blocks_pct
Specifies the approximate percentage of the buffer pool used for the old block sublist.
The range of values is 5 to 95. The default value is 37 (that is, 3/8 of the pool).

innodb_old_blocks_time
Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access
before it can be moved to the new sublist.
The default value is 0:
A block inserted into the old sublist moves immediately to the new sublist the first time it is accessed,
no matter how soon after insertion the access occurs. If the value is greater than 0, blocks remain in the old sublist until an access occurs at least that many ms after the first access. For example, a value of 1000 causes blocks to stay in the old sublist for 1 second after the first access before they become eligible to move to the new sublist

BLOCK 被第一次访问的后,先呆在”old sublist“,的等待”innodb_old_blocks_time“ms后会移到“new sublist”;
这样一个大的全表扫描查询就不会马上把热块给踢出去;

详见: Http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html

您可能感兴趣的文档:

--结束END--

本文标题: mysql 5.5 -- innodb buffer pool优化

本文链接: https://www.lsjlt.com/news/48912.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • mysql 5.5 -- innodb buffer pool优化
    InnoDB buffer pool 被设为两个SUBLIST:一个是存放大部分查询所需用到的块;另一个是存放小量查询所需用到的块;并可以被回收;[@more@]The InnoDB buffer pool...
    99+
    2024-04-02
  • MySQL性能优化InnoDB buffer pool flush分析
    这篇文章主要讲解了“MySQL性能优化InnoDB buffer pool flush分析”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“MySQL性能优化I...
    99+
    2024-04-02
  • MySQL管理之道-笔记-InnoDB Buffer Pool预热改进
    InnoDB Buffer Pool预热改进 InnoDB Buffer Pool预热改进只支持MySQL5.7和Percona5.7数据库重启时,如何将之前频繁访问的数据加载回BUFFER中?MySQL5...
    99+
    2024-04-02
  • MySql InnoDB存储引擎之Buffer Pool运行原理讲解
    目录1. 前言2. Buffer Pool2.1 Buffer Pool结构2.2 Free链表2.3 缓冲页哈希表2.4 Flush链表2.5 LRU链表2.6 多个实例2.7 Buffer Pool状态信息3. 总结...
    99+
    2023-01-04
    MySql InnoDB存储引擎Buffer Pool MySql InnoDB MySql InnoDB Buffer Pool
  • 怎么给从库热数据innodb buffer pool
    本篇内容介绍了“怎么给从库热数据innodb buffer pool”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学...
    99+
    2024-04-02
  • MySql InnoDB存储引擎之Buffer Pool运行原理讲解
    目录1. 前言2. Buffer Pool2.1 Buffer Pool结构2.2 Free链表2.3 缓冲页哈希表2.4 Flush链表2.5 LRU链表2.6 多个实例2.7 B...
    99+
    2023-01-04
    MySql InnoDB存储引擎Buffer Pool MySql InnoDB MySql InnoDB Buffer Pool
  • MySQL Buffer pool里的change buffer是什么
    小编给大家分享一下MySQL Buffer pool里的change buffer是什么,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一...
    99+
    2024-04-02
  • 如何理解MySQL的Buffer Pool
    本篇内容介绍了“如何理解MySQL的Buffer Pool”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!前...
    99+
    2024-04-02
  • Mysql 8.0 之调整 innodb buffer
    innodb_buffer_pool_size参数 这是一个内存区域,用来缓存InnoDB存储引擎的表中的数据和索引数据,以便提高对InnoDB存储引擎表中数据的查询访问速度。InnoDB buffer pool 里包含: 数据缓存 Inn...
    99+
    2023-09-25
    数据库 mysql
  • 怎么配置MySQL内存buffer pool
    本篇内容介绍了“怎么配置MySQL内存buffer pool”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!...
    99+
    2024-04-02
  • mysql中如何优化innodb
    这篇文章主要介绍了mysql中如何优化innodb,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。innodb_flush_logs_at_t...
    99+
    2024-04-02
  • MySQL中Buffer Pool内存结构详情
    目录1、回顾一下Buffer Pool是个什么东西?1.1 增删改直接操作的是内存还是磁盘?1.2 数据库崩溃了,内存中数据丢了怎么办?1.3 Buffer Pool的一句话总结2、...
    99+
    2024-04-02
  • 如何理解MySQL 5.5 InnoDB表锁
    本篇文章为大家展示了如何理解MySQL 5.5 InnoDB表锁,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。 对于没有索引的表,MyS...
    99+
    2024-04-02
  • innodb新特性之怎么使用buffer pool动态调整大小
    这篇文章主要介绍“innodb新特性之怎么使用buffer pool动态调整大小”,在日常操作中,相信很多人在innodb新特性之怎么使用buffer pool动态调整大小问题上存在疑惑,小编查阅了各式资料...
    99+
    2024-04-02
  • MySQL中读页缓冲区buffer pool详解
    目录Buffer poolbuffer pool组成free链表缓存页的哈希处理flush链表的管理LRU链表刷新脏页多个buffer pool实例动态调整buffer pool大小...
    99+
    2024-04-02
  • mysql的Buffer Pool存储及原理解析
    目录一、前言1、buffer pool是什么2、buffer pool的工作流程3、buffer pool缓冲池和查询缓存(query cache)二、buffer pool的内存数...
    99+
    2024-04-02
  • mysql 5.5 innodb事务隔离级别之开篇
    小结:     1,事务隔离级别隶属于rdbms的acid之i,即隔离性     2,不同的事务隔离级别,导致一致性读的行为有所差异     ...
    99+
    2024-04-02
  • MySQL Buffer Pool如何提高页的访问速度
    目录如何提高SQL执行速度?Buffer Pool的数据结构是怎样的?改进后的链表是如何工作的?Buffer Pool的相关参数参考博客如何提高SQL执行速度? 当我们想更新某条数据...
    99+
    2023-03-03
    MySQL Buffer Pool访问速度 MySQL Buffer Pool
  • MySQL Buffer Pool怎么提高页的访问速度
    这篇文章主要介绍了MySQL Buffer Pool怎么提高页的访问速度的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇MySQL Buffer Pool怎么提高页的访问速...
    99+
    2023-07-05
  • MySQL Buffer Pool如何提高页的访问速度
    目录如何提高SQL执行速度?Buffer Pool的数据结构是怎样的?改进后的链表是如何工作的?Buffer Pool的相关参数参考博客如何提高SQL执行速度? 当我们想更新某条数据的时候,难道是从磁盘中加载出来这条数据...
    99+
    2023-03-06
    MySQL Buffer Pool访问速度 MySQL Buffer Pool
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作