[MDEV-8932] innodb buffer pool hit rate is less than zero Created: 2015-10-13 Updated: 2019-12-04 Resolved: 2015-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.0 |
| Fix Version/s: | 10.0.22 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zhoukai Lin | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When I set my.cnf like this:
and use (1-Innodb_buffer_pool_reads/Innodb_buffer_pool_read_requests)*100% to calculate innodb buffer pool hit rate ,I got a number less than zero,like
,and
I found Innodb_buffer_pool_reads is bigger than Innodb_buffer_pool_read_requests! When the server is loading pages at the start time,I execute show engine innodb status ,and I also see a negative number like:
Obviously it's a negative number in unsigned long int. |
| Comments |
| Comment by Elena Stepanova [ 2015-10-19 ] | |
|
Assigning to jplindst for advice on why it could be happening. I can only think of disk problems, but I suppose it would have been detected. | |
| Comment by Zhoukai Lin [ 2015-10-21 ] | |
|
There are several servers have this problem. So it may not be disk problems. | |
| Comment by Jan Lindström (Inactive) [ 2015-10-28 ] | |
|
Innodb_buffer_pool_read_requests indicates the the number of logical read requests (read from memory) InnoDB has done.
There seems to be a bug on calculation when buffer pool is loaded. | |
| Comment by Jan Lindström (Inactive) [ 2015-10-28 ] | |
|
commit 4834d822efe5a812d251f254387b3f80beb9380d In buffer pool read hit rate calculation can lead rate that is |