Merge lp:~laurynas-biveinis/percona-server/bug1238039 into lp:percona-server/5.6
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 522 |
Proposed branch: | lp:~laurynas-biveinis/percona-server/bug1238039 |
Merge into: | lp:percona-server/5.6 |
Prerequisite: | lp:~laurynas-biveinis/percona-server/lru-manager |
Diff against target: |
37 lines (+11/-2) 1 file modified
Percona-Server/storage/innobase/buf/buf0flu.cc (+11/-2) |
To merge this branch: | bzr merge lp:~laurynas-biveinis/percona-server/bug1238039 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
George Ormond Lorch III (community) | g2 | Approve | |
Review via email: mp+197343@code.launchpad.net |
Description of the change
Fix bug 1238039: a regression in page cleaner thread furious flushing support. When page cleaner thread was allowed to skip sleeps in the case of empty free lists or large checkpoint age, each iteration was no longer required to take 1 second, the server could have been considered inactive if the sleep was skipped and the page cleaner iteration was short. Which had an effect of performing idle server flush list flushing for innodb I/O capacity-number of pages instead of a busy server adaptive flushing.
The fix is to maintain the timestamp of the last last_activity update
in the main page cleaner thread loop. Then, perform busy server tasks
not only if the server activity has advanced, but also if it has not
advanced for less than 1 second.
http://