MDEV-5949: Performance of XtraDB slows down significantly on long benchmarks

when compressed tables are used.

Analysis: Number of flushed pages is incorrectly calculated at
buf_do_LRU_batch. This leads to problem when utility function
flushes dirty blocks from the end of the flush list of
all buffer pool instances in a loop until enough pages are flushed
or time limit is reached. As number of flushed pages is incorrectly
calculated, the loop mostly try to flush until time limit is
reached because the number of pages limit is not reached.

Fix: Fix the calculation of flushed pages (very short). This fix
was provided by Alexey Stroganov (Percona).
This commit is contained in:
Jan Lindström 2014-03-26 15:17:12 +02:00
parent eb2302ec78
commit cdf6d3ec04

View file

@ -1656,7 +1656,7 @@ buf_do_LRU_batch(
n->flushed = 0;
}
n->evicted += count;
n->flushed += count;
}
/*******************************************************************//**