<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="929838">
  <date_last_updated>2012-03-23 16:59:36.691167+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/929838</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~sergefp</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.3</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/929838/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/929838/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/929838</bug_web_link>
  <owner>Sergey Petrunia</owner>
  <assignee>Sergey Petrunia</assignee>
  <milestone_title>Maria 5.3</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests</title>
  <status>In Progress</status>
  <importance>High</importance>
  <created>2012-02-09 21:29:10.344227+00:00</created>
  <description>
<![CDATA[After downport of InnoDB/ICP from mysql 5.6 (revno: 2955, revision-id: <email address hidden>) 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.]]>  </description>
  <activities>
    <activity datechanged="2012-02-09T21:29:10.344227+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Sergey Petrunia</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-02-09T21:29:22.006176+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.3]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Sergey Petrunia</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-09T22:03:27.142133+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[check-innodb-counters-here.sh https://bugs.launchpad.net/maria/+bug/929838/+attachment/2728277/+files/check-innodb-counters-here.sh]]>      </newvalue>
      <whatchanged>attachment added</whatchanged>
      <person>Sergey Petrunia</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-09T22:03:46.765734+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Igor Babaev (igorb-seattle)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Sergey Petrunia</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-09T22:32:36.861055+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[werror-be-gone.diff https://bugs.launchpad.net/maria/+bug/929838/+attachment/2728361/+files/werror-be-gone.diff]]>      </newvalue>
      <whatchanged>attachment added</whatchanged>
      <person>Sergey Petrunia</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-11T07:36:36.428667+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[High]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-11T07:36:43.803678+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Confirmed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-11T07:37:02.821189+00:00">
      <oldvalue>
<![CDATA[Confirmed]]>      </oldvalue>
      <newvalue>
<![CDATA[In Progress]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-02-14T07:50:51.219776+00:00">
      <oldvalue>
<![CDATA[Igor Babaev (igorb-seattle)]]>      </oldvalue>
      <newvalue>
<![CDATA[Sergey Petrunia (sergefp)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-03-23T16:59:36.490585+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Peter (Stig) Edwards</person>
      <message>added subscriber Peter (Stig) Edwards</message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/0" datecreated="2012-02-09T21:29:10.344227+00:00">
      <person>Sergey Petrunia</person>
      <subject>
<![CDATA[Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[After downport of InnoDB/ICP from mysql 5.6 (revno: 2955, revision-id: igor@askmonty.org-20110525230156-63rhnqv1ifdoho1i) the number of Innodb_buffer_pool_read_requests made by the sample query has increased.

Fixed made by
revno: 3406 revision-id: igor@askmonty.org-20120203062227-a6uowyulqt411k7y
revno: 3407 revision-id: igor@askmonty.org-20120203084634-k9jlel1q2tpao3au

address the problem for the most part, but certain difference remains.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/1" datecreated="2012-02-09T22:01:38.835563+00:00">
      <person>Sergey Petrunia</person>
      <subject>
<![CDATA[Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[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
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/2" datecreated="2012-02-09T22:03:27.142133+00:00">
      <person>Sergey Petrunia</person>
      <subject>
<![CDATA[Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[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.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/3" datecreated="2012-02-09T22:32:36.861055+00:00">
      <person>Sergey Petrunia</person>
      <subject>
<![CDATA[Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[If you have trouble compiling the tree because of "warnings being treated as errors", here is a patch that shuts that off.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/4" datecreated="2012-02-10T09:59:44.695775+00:00">
      <person>Sergey Petrunia</person>
      <subject>
<![CDATA[Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[The dataset is at:

work.askmonty.org:/tmp/sysbench-data-10m.sql.bz2]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/929838/comments/5" datecreated="2012-02-11T06:49:29.846636+00:00">
      <person>Igor Babaev</person>
      <subject>
<![CDATA[Re: Downport of InnoDB/ICP from mysql 5.6 increased Innodb_buffer_pool_read_requests]]>      </subject>
      <content>
<![CDATA[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.]]>      </content>
    </comment>
  </comments>
  <messages>
    <message created="2012-02-09 22:03:27.142133+00:00" owner="Sergey Petrunia">
<![CDATA[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.]]>      <attachment link="https://bugs.launchpad.net/bugs/929838/+attachment/2728277" type="Unspecified">
        <title>check-innodb-counters-here.sh</title>
        <file>LPexportBug929838_check-innodb-counters-here.sh</file>
      </attachment>
    </message>
    <message created="2012-02-09 22:32:36.861055+00:00" owner="Sergey Petrunia">
<![CDATA[If you have trouble compiling the tree because of "warnings being treated as errors", here is a patch that shuts that off.]]>      <attachment link="https://bugs.launchpad.net/bugs/929838/+attachment/2728361" type="Unspecified">
        <title>werror-be-gone.diff</title>
        <file>LPexportBug929838_werror-be-gone.diff</file>
      </attachment>
    </message>
  </messages>
</launchpad-bug>
