• Marko Mäkelä's avatar
    MDEV-33053 InnoDB LRU flushing does not run before running out of buffer pool · d34479dc
    Marko Mäkelä authored
    buf_flush_LRU(): Display a warning if no pages could be evicted and
    no writes initiated.
    
    buf_pool_t::need_LRU_eviction(): Renamed from buf_pool_t::ran_out().
    Check if the amount of free pages is smaller than innodb_lru_scan_depth
    instead of checking if it is 0.
    
    buf_flush_page_cleaner(): For the final LRU flush after a checkpoint
    flush, use a "budget" of innodb_io_capacity_max, like we do in the
    case when we are not in "furious" checkpoint flushing.
    
    Co-developed by: Debarun Banerjee
    Reviewed by: Debarun Banerjee
    Tested by: Matthias Leich
    d34479dc
buf0flu.cc 82.6 KB