[英]What is the InnoDB equivalent of MyISAM's key_buffer_size?
When using MyISAM the configuration setting key_buffer_size
defines the size of the global buffer where MySQL caches frequently used blocks of index data. 使用MyISAM时,配置设置
key_buffer_size
定义全局缓冲区的大小,其中MySQL缓存经常使用的索引数据块。
What is the corresponding setting for InnoDB? InnoDB的相应设置是什么?
innodb_buffer_pool_size
is the setting that controls the size of the memory buffer that InnoDB uses to cache indexes and data. innodb_buffer_pool_size
是控制InnoDB用于缓存索引和数据的内存缓冲区大小的设置。 It's an important performance option. 这是一个重要的性能选择。
See the manual page for the full explanation. 有关完整说明,请参见手册页 。 The MySQL Performance Blog also has an article about how to choose a proper size for it.
MySQL性能博客还有一篇关于如何为其选择合适大小的文章。
As far as I know, the best setting you can adjust for InnoDB is innodb_buffer_pool_size
. 据我所知,您可以为InnoDB调整的最佳设置是
innodb_buffer_pool_size
。
The size in bytes of the memory buffer InnoDB uses to cache data and indexes of its tables.
内存缓冲区InnoDB的大小(以字节为单位)用于缓存其表的数据和索引 。 The default value is 8MB.
默认值为8MB。 The larger you set this value, the less disk I/O is needed to access data in tables.
设置此值越大,访问表中数据所需的磁盘I / O就越少。 On a dedicated database server, you may set this to up to 80% of the machine physical memory size.
在专用数据库服务器上,您可以将其设置为最多80%的计算机物理内存大小。 However, do not set it too large because competition for physical memory might cause paging in the operating system.
但是,请勿将其设置得太大,因为竞争物理内存可能会导致操作系统中的分页。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.