[MDEV-581] LP:929838 - Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests Created: 2012-02-09  Updated: 2020-05-28

Status: Stalled
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.3.12, 5.5
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug929838.xml     File LPexportBug929838_check-innodb-counters-here.sh     File LPexportBug929838_werror-be-gone.diff    
Issue Links:
Duplicate
duplicates MDEV-143 lp:929838 - Downport of InnoDB/ICP fr... Closed

 Description   

After downport of InnoDB/ICP from mysql 5.6 (revno: 2955) the number of Innodb_buffer_pool_read_requests made by the sample query has increased.

Fixed made by
revno: 3406 revision-id: <email address hidden>
revno: 3407 revision-id: <email address hidden>

address the problem for the most part, but certain difference remains.



 Comments   
Comment by Sergei Petrunia [ 2012-02-09 ]

Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests
Ways to repeat:

1. Make the dataset:
./sysbench --test=./tests/db/oltp.lua --oltp-table-size=10000000 \
--db-driver=mysql --mysql-user=root --mysql-socket=/tmp/mysqld.sock \
--mysql-table-engine=innodb prepare

2. Prepare two trees,
1. "Before" tree: 5.3 branched at -r2954
2. "After" tree: 5.3, branched at -r2955, with 3406

Run the attached script and watch the difference in output:

"Before" tree produces (showing only lines with 'OUT'):

incr OUT
13 OUT
incr OUT
12 OUT
incr OUT
12 OUT
incr OUT
12 OUT
incr OUT
12 OUT

"After" tree produces (showing only lines with 'OUT'):
incr OUT
14 OUT
incr OUT
13 OUT
incr OUT
13 OUT
incr OUT
13 OUT
incr OUT
13 OUT

Comment by Sergei Petrunia [ 2012-02-09 ]

Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests
The script.

  • it is intended to be run from sql/ directory of a tree
  • modify to point to your my.cnf file, which should specify a datadir with pre-loaded sysbench data as specified in earlier comments.
Comment by Sergei Petrunia [ 2012-02-09 ]

The script.

  • it is intended to be run from sql/ directory of a tree
  • modify to point to your my.cnf file, which should specify a datadir with pre-loaded sysbench data as specified in earlier comments.
    check-innodb-counters-here.sh
    LPexportBug929838_check-innodb-counters-here.sh
Comment by Sergei Petrunia [ 2012-02-09 ]

Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests
If you have trouble compiling the tree because of "warnings being treated as errors", here is a patch that shuts that off.

Comment by Sergei Petrunia [ 2012-02-09 ]

If you have trouble compiling the tree because of "warnings being treated as errors", here is a patch that shuts that off.
werror-be-gone.diff
LPexportBug929838_werror-be-gone.diff

Comment by Sergei Petrunia [ 2012-02-10 ]

Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests
The dataset is at:

work.askmonty.org:/tmp/sysbench-data-10m.sql.bz2

Comment by Igor Babaev [ 2012-02-11 ]

Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests
We have a performance degradation for sysbench that was explained in Olav's Sandstaa patch for mysql-5.6. (see rev 3639.1.70 of lp:mysql-server/trunk )
Olav dis not suggest any more or less general solution. He just prohibited using ICP for innodb primary clustered keys.

Comment by Rasmus Johansson (Inactive) [ 2012-03-23 ]

Launchpad bug id: 929838

Comment by Sergei Petrunia [ 2012-10-31 ]

The problem doesn't seem to be introduced in MariaDB. It is innodb+xtradb changes. I'm still keeping this open, because I intend to investigate this and see if there are some redundant reads done as a result.

Generated at Thu Feb 08 06:29:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.