MySQL 8.0.39
Source Code Documentation
buf_pool_stat_t Struct Reference

The buffer pool statistics structure. More...

#include <buf0buf.h>

Public Types

using Shards = Counter::Shards< 64 >
 

Public Member Functions

void reset ()
 

Static Public Member Functions

static void copy (buf_pool_stat_t &dst, const buf_pool_stat_t &src) noexcept
 

Public Attributes

Shards m_n_page_gets
 Number of page gets performed; also successful searches through the adaptive hash index are counted as page gets; this field is NOT protected by the buffer pool mutex. More...
 
std::atomic< uint64_t > n_pages_read
 Number of read operations. More...
 
std::atomic< uint64_t > n_pages_written
 Number of write operations. More...
 
std::atomic< uint64_t > n_pages_created
 number of pages created in the pool with no read. More...
 
std::atomic< uint64_t > n_ra_pages_read_rnd
 Number of pages read in as part of random read ahead. More...
 
std::atomic< uint64_t > n_ra_pages_read
 Number of pages read in as part of read ahead. More...
 
uint64_t n_ra_pages_evicted
 Number of read ahead pages that are evicted without being accessed. More...
 
uint64_t n_pages_made_young
 Number of pages made young, in calls to buf_LRU_make_block_young(). More...
 
uint64_t n_pages_not_made_young
 Number of pages not made young because the first access was not long enough ago, in buf_page_peek_if_too_old(). More...
 
uint64_t LRU_bytes
 LRU size in bytes. More...
 
uint64_t flush_list_bytes
 Flush_list size in bytes. More...
 

Detailed Description

The buffer pool statistics structure.

Member Typedef Documentation

◆ Shards

Member Function Documentation

◆ copy()

static void buf_pool_stat_t::copy ( buf_pool_stat_t dst,
const buf_pool_stat_t src 
)
inlinestaticnoexcept

◆ reset()

void buf_pool_stat_t::reset ( void  )
inline

Member Data Documentation

◆ flush_list_bytes

uint64_t buf_pool_stat_t::flush_list_bytes

Flush_list size in bytes.

Protected by flush_list_mutex

◆ LRU_bytes

uint64_t buf_pool_stat_t::LRU_bytes

LRU size in bytes.

Protected by LRU_list_mutex.

◆ m_n_page_gets

Shards buf_pool_stat_t::m_n_page_gets

Number of page gets performed; also successful searches through the adaptive hash index are counted as page gets; this field is NOT protected by the buffer pool mutex.

◆ n_pages_created

std::atomic<uint64_t> buf_pool_stat_t::n_pages_created

number of pages created in the pool with no read.

◆ n_pages_made_young

uint64_t buf_pool_stat_t::n_pages_made_young

Number of pages made young, in calls to buf_LRU_make_block_young().

Protected by LRU_list_mutex.

◆ n_pages_not_made_young

uint64_t buf_pool_stat_t::n_pages_not_made_young

Number of pages not made young because the first access was not long enough ago, in buf_page_peek_if_too_old().

Not protected.

◆ n_pages_read

std::atomic<uint64_t> buf_pool_stat_t::n_pages_read

Number of read operations.

◆ n_pages_written

std::atomic<uint64_t> buf_pool_stat_t::n_pages_written

Number of write operations.

◆ n_ra_pages_evicted

uint64_t buf_pool_stat_t::n_ra_pages_evicted

Number of read ahead pages that are evicted without being accessed.

Protected by LRU_list_mutex.

◆ n_ra_pages_read

std::atomic<uint64_t> buf_pool_stat_t::n_ra_pages_read

Number of pages read in as part of read ahead.

◆ n_ra_pages_read_rnd

std::atomic<uint64_t> buf_pool_stat_t::n_ra_pages_read_rnd

Number of pages read in as part of random read ahead.


The documentation for this struct was generated from the following file: