对于常规的I/O 调优建议,see Section 8.5.8, “Optimizing InnoDB Disk I/O”.
The size in bytes of the buffer pool, the memory area where InnoDB caches table and index data. The default value is 128MB.
The maximum value depends on the CPU architecture; the maximum is 4294967295 (232-1) on 32-bit systems and 18446744073709551615 (264-1) on 64-bit systems.
On 32-bit systems, the CPU architecture and operating system may impose a lower practical maximum size than the stated maximum.
buffer pool 的大小单位字节, InnoDB 的内存区域用于cached 表和索引数据,默认是128MB。
When the size of the buffer pool is greater than 1GB, setting innodb_buffer_pool_instances to a value greater than 1 can improve the scalability on a busy server.
The larger you set this value, the less disk I/O is needed to access the same data in tables more than once. On a dedicated database server,
you might set this to up to 80% of the machine physical memory size. Be prepared to scale back this value if these other issues occur:
Competition for physical memory might cause paging in the operating system.
当 buffer pool 大小大于1GB,设置innodb_buffer_pool_instances 大于1来改善 可扩展性在一个繁忙的server上
InnoDB reserves additional memory for buffers and control structures, so that the total allocated space is approximately 10% greater than the specified size.
The address space must be contiguous, which can be an issue on Windows systems with DLLs that load at specific addresses.
The time to initialize the buffer pool is roughly proportional to its size. On large installations, this initialization time might be significant.
For example, on a modern Linux x86_64 server, initialization of a 10GB buffer pool takes approximately 6 seconds. See Section 8.10.1, “The InnoDB Buffer Pool”.
InnoDB储备额外的内存用于缓冲区和控制结构, 因此总共分配的空间是大约10%大于指定值。
地址空间必须是连续的, 在Windows上可能是一个问题用DLLs来加载特定的地址
Posted on
2018-01-16 15:38旅途
阅读(2879)
评论(0)
编辑收藏举报