14.5.4 Log Buffer
14.5.4 Log Buffer
The log buffer is the memory area that holds data to be written to the log files on disk. Log buffer size is defined by the innodb_log_buffer_size variable. The default size is 16MB. The contents of the log buffer are periodically flushed to disk. A large log buffer enables large transactions to run without the need to write redo log data to disk before the transactions commit. Thus, if you have transactions that update, insert, or delete many rows, increasing the size of the log buffer saves disk I/O.
Log Buffer是記憶體中不同於Buffer Pool 的一部分會快取將寫入到磁碟中的資料。 Log Buffer的大小可用innodb_log_buffer_size 引數設定。 預設大小是16MB。 Log Buffer 的內容會週期性的重新整理到磁碟。 大的Log Buffer 可以容納大的事務無需將資料寫入到redo 日誌,減少與磁碟的互動。 事務中如果有大量的dml 操作,可以考慮增大Log Buffer的值,減少磁碟IO。
The innodb_flush_log_at_trx_commit variable controls how the contents of the log buffer are written and flushed to disk. The innodb_flush_log_at_timeout variable controls log flushing frequency.
innodb_flush_log_at_trx_commit 引數能夠控制 log buffer 寫入和重新整理到磁碟。
innodb_flush_log_at_timeout 引數能控制重新整理的頻率。
For related information, see Memory Configuration, and Section 8.5.4, “Optimizing InnoDB Redo Logging”.
參考文章:
https://dev.mysql.com/doc/refman/5.7/en/innodb-redo-log-buffer.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21374452/viewspace-2778501/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL學習之change buffer 和 redo logMySql
- IO之核心buffer----"buffer cache"
- 【node】Buffer
- protocol bufferProtocol
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- 【BUFFER】Oracle buffer cache之 latch 學習記錄Oracle
- Buffer和Channel
- bytes.Buffer
- Java NIO - BufferJava
- gc buffer busyGC
- 14.6.5 Doublewrite buffer
- JAVA NIO BufferJava
- TUNING THE REDOLOG BUFFER
- undo log和redo log
- 【Mysql】三大日誌 redo log、bin log、undo logMySql
- MySQL error log和bin logMySqlError
- 解密gRPC: Protocol Buffer解密RPCProtocol
- Understanding Buffer Overflow Bugs
- Mysql Key Buffer SizeMySql
- TarsGo支援Protocol BufferGoProtocol
- Protocol Buffer 使用指北Protocol
- Oracle Free Buffer WaitsOracleAI
- Oracle Buffer Busy WaitsOracleAI
- Java NIO之BufferJava
- TarsGo 支援 protocol bufferGoProtocol
- Oracle Cache Buffer ChainsOracleAI
- node Buffer 學習
- exclude Log4j print Log
- MySQL的Redo log 以及Bin logMySql
- 全網最清楚的:MySQL的insert buffer和change buffer 串講MySql
- tf.data.Dataset.shuffle(buffer_size)中buffer_size的理解
- Buffer 與 Mat 互轉
- 03小白學nodejs bufferNodeJS
- mysql change buffer小結MySql
- 淺談HiZ-buffer
- Innodb特性之change buffer
- Node JS Buffer使用理解JS
- dotnet高效能buffer