14.4.4 Redo Log Buffer

  • The redo log buffer is the memory area that holds data to be written to the redo log. Redo log buffer size is defined by theinnodb_log_buffer_size configuration option. The redo log buffer is periodically flushed to the log file on disk. A large redo log buffer enables large transactions to run without the need to write redo log to disk before the transactions commit. Thus, if you have transactions that update, insert, or delete many rows, making the log buffer larger saves disk I/O.
  • 重做日誌緩衝區是保存要寫入重做日誌的數據的內存區域,重做日誌緩衝區的大小是由innodb_log_buffer_size這個配置選項來指定的,重做日誌緩衝區定期定期刷新日誌文件到磁盤上,一個大的重做日誌緩衝區允許大型事務運行,而無需在事務提交之前將重做日誌寫入磁盤。因此,如果您有更新、插入或刪除許多行的事務,如果將日誌緩衝區設置的更大些可以節省磁盤I/O.。
  • The innodb_flush_log_at_trx_commit option controls how the contents of the redo log buffer are written to the log file. The innodb_flush_log_at_timeout option controls redo log flushing frequency.
  • innodb_flush_log_at_trx_commit 選項控制如何將重做日誌緩衝區的內容寫入日誌文件中,innodb_flush_log_at_timeout選項指定了重做日誌的刷新頻率

PREV:14.4.3 Adaptive Hash Index http://blog.51cto.com/itzhoujun/2352547
NEXT:14.4.5 System Tablespace http://blog.51cto.com/itzhoujun/2352556

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章