mysql innodb_sort_buffer_size_mysql优化---第7篇:参数 innodb_buffer_pool_instances设置

本文探讨了 MySQL 中 innodb_buffer_pool_instances 参数对性能的影响,尤其是在高 I/O 负载下的作用。实验显示,在小的 buffer_pool 大小时,设置为 8 的 innodb_buffer_pool_instances 显示出显著差异;而在大的 buffer_pool 中,设置为 1 的表现最佳。测试结果强调了更大的 InnoDB 日志文件对稳定性的关键作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

摘要:1 innodb_buffer_pool_instances可以开启多个内存缓冲池,把需要缓冲的数据hash到不同的缓冲池中,这样可以并行的内存读写。

2 innodb_buffer_pool_instances参数显著的影响测试结果,特别是非常高的 I/O 负载时。

3 实验环境下,innodb_buffer_pool_instances=8在很小的 buffer_pool 大小时有很大的不同,而使用大的

buffer_pool 时,innodb_buffer_pool_instances=1的表现最棒。

1 定义

The number of regions that the InnoDB buffer

pool is divided into. For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency, by reducing contention as different threads read and write to cached pages. Each page that is stored

in or read from the buffer pool is assigned to one of the buffer pool instances randomly, using a hashing function. Each buffer pool manages its own free lists, flush lists, LRUs, and all other data structures connected to a buffer pool, and is protected by

its own buffer pool mutex.

This option t

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值