InnoDB read ahead still active with random_read_ahead OFF

Bug #1693634 reported by jocelyn fournier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

Hi,

In Percona 5.7, it seems even with innodb_random_read_ahead=OFF, innodb is still doing a few read ahead. This is a behavior I don't observe on 5.6.

mysql> show global variables LIKE '%innodb_version%';
+----------------+-----------+
| Variable_name | Value |
+----------------+-----------+
| innodb_version | 5.7.18-14 |
+----------------+-----------+
1 row in set (0.00 sec)

mysql> show global variables LIKE '%ahead%';
+-----------------------------+-------+
| Variable_name | Value |
+-----------------------------+-------+
| innodb_log_write_ahead_size | 512 |
| innodb_random_read_ahead | OFF |
| innodb_read_ahead_threshold | 56 |
+-----------------------------+-------+
3 rows in set (0.00 sec)

mysql> show global status LIKE '%ahead%';
+---------------------------------------+---------+
| Variable_name | Value |
+---------------------------------------+---------+
| Innodb_buffer_pool_read_ahead_rnd | 0 |
| Innodb_buffer_pool_read_ahead | 1177940 |
| Innodb_buffer_pool_read_ahead_evicted | 0 |
+---------------------------------------+---------+
3 rows in set (0.00 sec)

mysql> show global status LIKE '%ahead%';
+---------------------------------------+---------+
| Variable_name | Value |
+---------------------------------------+---------+
| Innodb_buffer_pool_read_ahead_rnd | 0 |
| Innodb_buffer_pool_read_ahead | 1177983 |
| Innodb_buffer_pool_read_ahead_evicted | 0 |
+---------------------------------------+---------+

Is this expected?

Thanks and regards,
  Jocelyn Fournier

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3707

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.