|
drizzle
C++ MySQL-protocol-compatible database server
|
The buffer pool structure. More...
#include <buf0buf.h>
Public Attributes | |
General fields | |
| mutex_t | mutex |
| mutex_t | zip_mutex |
| ulint | instance_no |
| ulint | old_pool_size |
| ulint | curr_pool_size |
| ulint | LRU_old_ratio |
| ulint | n_chunks |
| buf_chunk_t * | chunks |
| ulint | curr_size |
| hash_table_t * | page_hash |
| hash_table_t * | zip_hash |
| ulint | n_pend_reads |
| ulint | n_pend_unzip |
| time_t | last_printout_time |
| buf_buddy_stat_t | buddy_stat [BUF_BUDDY_SIZES_MAX+1] |
| buf_pool_stat_t | stat |
| buf_pool_stat_t | old_stat |
Page flushing algorithm fields | |
| mutex_t | flush_list_mutex |
| ibool | init_flush [BUF_FLUSH_N_TYPES] |
| ulint | n_flush [BUF_FLUSH_N_TYPES] |
| os_event_t | no_flush [BUF_FLUSH_N_TYPES] |
| ib_rbt_t * | flush_rbt |
| ulint | freed_page_clock |
| ulint | LRU_flush_ended |
| UT_LIST_BASE_NODE_T (buf_page_t) flush_list | |
LRU replacement algorithm fields | |
| buf_page_t * | LRU_old |
| ulint | LRU_old_len |
| UT_LIST_BASE_NODE_T (buf_page_t) free | |
| UT_LIST_BASE_NODE_T (buf_page_t) LRU | |
| UT_LIST_BASE_NODE_T (buf_block_t) unzip_LRU | |
Buddy allocator fields | |
The buddy allocator is used for allocating compressed page frames and buf_page_t descriptors of blocks that exist in the buffer pool only in compressed form. | |
| buf_page_t | watch [BUF_POOL_WATCH_SIZE] |
| UT_LIST_BASE_NODE_T (buf_page_t) zip_clean | |
| UT_LIST_BASE_NODE_T (buf_page_t) zip_free[BUF_BUDDY_SIZES_MAX] | |
The buffer pool structure.
NOTE! The definition appears here only for other modules of this directory (buf) to see it. Do not use from outside!
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_block_t | ) |
base node of the unzip_LRU list
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_page_t | ) |
base node of the modified block list
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_page_t | ) |
base node of the free block list
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_page_t | ) |
base node of the LRU list
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_page_t | ) |
unmodified compressed pages
| buf_pool_struct::UT_LIST_BASE_NODE_T | ( | buf_page_t | ) |
buddy free lists
| buf_buddy_stat_t buf_pool_struct::buddy_stat[BUF_BUDDY_SIZES_MAX+1] |
| buf_chunk_t* buf_pool_struct::chunks |
| ulint buf_pool_struct::curr_pool_size |
| ulint buf_pool_struct::curr_size |
| mutex_t buf_pool_struct::flush_list_mutex |
| ib_rbt_t* buf_pool_struct::flush_rbt |
a red-black tree is used exclusively during recovery to speed up insertions in the flush_list. This tree contains blocks in order of oldest_modification LSN and is kept in sync with the flush_list. Each member of the tree MUST also be on the flush_list. This tree is relevant only in recovery and is set to NULL once the recovery is over. Protected by flush_list_mutex
| ulint buf_pool_struct::freed_page_clock |
| ibool buf_pool_struct::init_flush[BUF_FLUSH_N_TYPES] |
| ulint buf_pool_struct::instance_no |
| time_t buf_pool_struct::last_printout_time |
| ulint buf_pool_struct::LRU_flush_ended |
| buf_page_t* buf_pool_struct::LRU_old |
| ulint buf_pool_struct::LRU_old_len |
| ulint buf_pool_struct::LRU_old_ratio |
| mutex_t buf_pool_struct::mutex |
| ulint buf_pool_struct::n_chunks |
| ulint buf_pool_struct::n_flush[BUF_FLUSH_N_TYPES] |
| ulint buf_pool_struct::n_pend_reads |
| ulint buf_pool_struct::n_pend_unzip |
| os_event_t buf_pool_struct::no_flush[BUF_FLUSH_N_TYPES] |
| ulint buf_pool_struct::old_pool_size |
| buf_pool_stat_t buf_pool_struct::old_stat |
| hash_table_t* buf_pool_struct::page_hash |
hash table of buf_page_t or buf_block_t file pages, buf_page_in_file() == TRUE, indexed by (space_id, offset)
| buf_pool_stat_t buf_pool_struct::stat |
| buf_page_t buf_pool_struct::watch[BUF_POOL_WATCH_SIZE] |
| hash_table_t* buf_pool_struct::zip_hash |
hash table of buf_block_t blocks whose frames are allocated to the zip buddy system, indexed by block->frame
| mutex_t buf_pool_struct::zip_mutex |
Zip mutex of this buffer pool instance, protects compressed only pages (of type buf_page_t, not buf_block_t