New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meaning: InnoDB Write Log efficiency #291
Comments
This means that when you try to write something 22,6% of the time you can write information into Buffer pool with efficiency. So, it's means you can improve your write log efficiency by performing a warmup of most written data. |
So basically with time it should improve on its own as more data is used? Do the pool and log size variables like |
Hi @anatoli26 BR, |
@jmrenouard, I already have it at 2Gb for a DB that occupies on disk 1.3Gb. The previous version some time ago recommended to reduce the |
Hi @anatoli26 Yes in fact, in tuning advices, there is sometime not ideal situation. Actually, I will leave it as is to get this metrics. |
Hi @anatoli26 If you want to increase your write efficiency, in your case ( more Buffer pool than data + index), just warmup your data. In order to warmup your data, just select * from table (for all your tables). Br, |
Thanks! |
How can "warming-up your data" (by reading) improve the efficiency of writes? If I knew what data I was going to write tomorrow, I would certainly write it today to save time :) |
Select are fast and writes logs.. u have no logs written so would imagine selecting all quires would help mature this
|
For anyone coming here via google or other search engines. Write log efficiency metric in MySQL tuner is completely useless, and you should ignore it unless it's near 100% (which means there is something terribly wroing with your mysql config. For my mysql server I have the following details: Some pertinent statuses from mysql -e "show status" are:
Let's dive in what is what here.
The ratio of actual physical writes (Innodb_log_writes) to write requests (Innodb_log_write_requests) is approximately 0.437. This means that for every write request, about 43.7% result in a physical write to the log. The percentage difference between the number of write requests and the actual physical writes is about 56.34%. This indicates that around 56.34% of the write requests did not result in a physical write to the log. Which is GOOD. Having a 100% ratio of physical writes (Innodb_log_writes) to write requests (Innodb_log_write_requests) in a database is neither typical nor necessarily desirable. If the ratio were 100%, it would imply that every write request results in a physical write to disk. This could lead to excessive disk I/O, which is one of the most common bottlenecks in database performance. |
I'm getting:
[!!] InnoDB Write Log efficiency: 22.65% (23994 hits/ 105927 total)
But I don't see any suggestions below on how to improve it. So, what does "InnoDB Write Log efficiency" mean and how to improve it?
The text was updated successfully, but these errors were encountered: