ITPub博客

首页 > 数据库 > MySQL > Performance tuning

Performance tuning

原创 MySQL 作者:huakaibird 时间:2016-05-17 16:08:01 0 删除 编辑

InnoDB buffer pool instances:  
Tune innodb_buffer_pool_instances (InnoDB Disk I/O) to increase read/write threads, and divide InnoDB buffer pool in regions for more performance

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 takes effect only when you set the innodb_buffer_pool_size to a size of1 gigabyte or more. The total size you specify is divided among all the buffer pools. For best efficiency, specify a combination of innodb_buffer_pool_instances and innodb_buffer_pool_size so that each buffer pool instance is at least 1 gigabyte.


https://www.saotn.org/mysql-innodb-performance-improvement/



table_open_cache:

Increase table_open_cache gradually to avoid file descriptor limits
    Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
    Beware that open_files_limit (65535) variable 
    should be greater than table_open_cache ( 2000)
Variables to adjust:
    table_open_cache (> 2000)

http://www.techinfobest.com/optimize-mysql-table_open_cache/
https://www.percona.com/blog/2009/11/16/table_cache-negative-scalability/


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/545828/viewspace-2101492/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: optimize table
下一篇: 没有了~
请登录后发表评论 登录
全部评论
  • 博文量
    41
  • 访问量
    426500