[MDEV-32920] Innodb_buffer_pool_read_requests always 0 Created: 2023-11-30  Updated: 2023-12-07  Resolved: 2023-12-07

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.11.6
Fix Version/s: 10.11.7, 11.0.5, 11.1.4, 11.2.3

Type: Bug Priority: Critical
Reporter: Matteo Assignee: Thirunarayanan Balathandayuthapani
Resolution: Fixed Votes: 0
Labels: not-10.6

Issue Links:
Relates
relates to MDEV-31309 The status variable Innodb_buffer_poo... Closed

 Description   

Hi, in MariaDB 10.11.6 the Variable_name Innodb_buffer_pool_read_requests, in output of "show global status", is always 0:

Innodb_buffer_pool_read_requests 0
Innodb_buffer_pool_reads 14975


 Comments   
Comment by Daniel Black [ 2023-11-30 ]

MariaDB [test]> create table  test as select seq from seq_1_to_300;
Query OK, 300 rows affected (0.003 sec)
Records: 300  Duplicates: 0  Warnings: 0
 
MariaDB [test]> show global status like 'innodb_buffer_pool_read%';
+---------------------------------------+-------+
| Variable_name                         | Value |
+---------------------------------------+-------+
| Innodb_buffer_pool_read_ahead_rnd     | 0     |
| Innodb_buffer_pool_read_ahead         | 0     |
| Innodb_buffer_pool_read_ahead_evicted | 0     |
| Innodb_buffer_pool_read_requests      | 0     |
| Innodb_buffer_pool_reads              | 165   |
+---------------------------------------+-------+
5 rows in set (0.001 sec)
 
MariaDB [test]> shutdown;
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [test]> show global status like 'innodb_buffer_pool_read%';
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
Connection id:    3
Current database: test
 
+---------------------------------------+-------+
| Variable_name                         | Value |
+---------------------------------------+-------+
| Innodb_buffer_pool_read_ahead_rnd     | 0     |
| Innodb_buffer_pool_read_ahead         | 0     |
| Innodb_buffer_pool_read_ahead_evicted | 0     |
| Innodb_buffer_pool_read_requests      | 0     |
| Innodb_buffer_pool_reads              | 169   |
+---------------------------------------+-------+
5 rows in set (0.005 sec)
 
MariaDB [test]> select count(*) from test;
+----------+
| count(*) |
+----------+
|      300 |
+----------+
1 row in set (0.001 sec)
 
MariaDB [test]> show global status like 'innodb_buffer_pool_read%';
+---------------------------------------+-------+
| Variable_name                         | Value |
+---------------------------------------+-------+
| Innodb_buffer_pool_read_ahead_rnd     | 0     |
| Innodb_buffer_pool_read_ahead         | 0     |
| Innodb_buffer_pool_read_ahead_evicted | 0     |
| Innodb_buffer_pool_read_requests      | 0     |
| Innodb_buffer_pool_reads              | 169   |
+---------------------------------------+-------+
5 rows in set (0.001 sec)

Comment by Marko Mäkelä [ 2023-12-07 ]

This bug had already been fixed once in MDEV-31309, but the fix had been merged incorrectly

Generated at Thu Feb 08 10:35:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.