Make your log files big, even as big as the buffer pool. When InnoDB has written the log files full, it has to write the modified contents of the buffer pool to disk in a checkpoint. Small log files cause many unnecessary disk writes. The drawback of big log files is that the recovery time is longer.里面的the buffer pool 是key_buffer_size参数设置的值的大小吗?或者是innodb_buffer_pool_size参数设置的值的大小吗?

解决方案 »

  1.   

    参数innodb_log_buffer_sizeThe size in bytes of the buffer that InnoDB uses to write to the log files on disk. The default value is 1MB. Sensible values range from 1MB to 8MB. A large log buffer enables large transactions to run without a need to write the log to disk before the transactions commit. Thus, if you have big transactions, making the log buffer larger saves disk I/O.  
      

  2.   


    确定是innodb_log_buffer_size吗?
      

  3.   

    应该是innodb_buffer_pool_size,第二句是当日志文件满的话,需要将缓存中的脏数据刷到磁盘上,myisam没有数据缓存,只有索引缓存
      

  4.   


    我探讨的是innodb啊,跟myisam有何关联呢?
      

  5.   

    key_buffer_size这个是myisam引擎缓存索引数据的