memcached
1.6.15
About: memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | window_data |
struct | window_global |
struct | slab_automove |
Macros | |
#define | MIN_PAGES_FOR_SOURCE 2 |
#define | MIN_PAGES_FOR_RECLAIM 2.5 |
#define | MIN_PAGES_FREE 1.5 |
#define | MEMCHECK_PERIOD 60 |
Functions | |
void * | slab_automove_extstore_init (struct settings *settings) |
void | slab_automove_extstore_free (void *arg) |
static void | window_sum (struct window_data *wd, struct window_data *w, uint32_t size) |
static void | window_global_sum (struct window_global *wg, struct window_global *w, uint32_t size) |
static void | global_pool_check (slab_automove *a) |
static void | memcheck (slab_automove *a) |
static struct window_data * | get_window_data (slab_automove *a, int class) |
void | slab_automove_extstore_run (void *arg, int *src, int *dst) |
#define MEMCHECK_PERIOD 60 |
Definition at line 16 of file slab_automove_extstore.c.
#define MIN_PAGES_FOR_RECLAIM 2.5 |
Definition at line 14 of file slab_automove_extstore.c.
#define MIN_PAGES_FOR_SOURCE 2 |
Definition at line 13 of file slab_automove_extstore.c.
#define MIN_PAGES_FREE 1.5 |
Definition at line 15 of file slab_automove_extstore.c.
|
static |
Definition at line 158 of file slab_automove_extstore.c.
References slab_automove::window_cur, slab_automove::window_data, and slab_automove::window_size.
Referenced by slab_automove_extstore_run().
|
static |
Definition at line 109 of file slab_automove_extstore.c.
References slab_automove::free_mem, global_page_pool_size(), mem_limit_reached, slab_automove::pool_filled_once, window_global::pool_high, window_global::pool_low, slab_automove::window_cur, slab_automove::window_global, and slab_automove::window_size.
Referenced by slab_automove_extstore_run().
|
static |
Definition at line 136 of file slab_automove_extstore.c.
References slab_stats_automove::chunks_per_page, current_time, slab_automove::free_mem, slab_automove::free_ratio, if(), slab_automove::last_memcheck_run, MAX_NUMBER_OF_SLAB_CLASSES, MEMCHECK_PERIOD, MIN_PAGES_FREE, slab_automove::pool_filled_once, slab_automove::sam_after, slab_automove::settings, and slab_stats_automove::total_pages.
Referenced by slab_automove_extstore_run().
Definition at line 80 of file slab_automove_extstore.c.
References slab_automove::window_data, and slab_automove::window_global.
Definition at line 49 of file slab_automove_extstore.c.
References fill_item_stats_automove(), fill_slab_stats_automove(), slab_automove::free_ratio, slab_automove::iam_before, slab_automove::item_size, slab_automove::last_memcheck_run, slab_automove::max_age_ratio, MAX_NUMBER_OF_SLAB_CLASSES, slab_automove::pool_filled_once, slab_automove::sam_before, settings, slab_automove::settings, settings::slab_automove_ratio, settings::slab_automove_window, slab_automove::window_data, slab_automove::window_global, and slab_automove::window_size.
Definition at line 163 of file slab_automove_extstore.c.
References item_stats_automove::age, window_data::age, slab_stats_automove::chunk_size, slab_stats_automove::chunks_per_page, window_data::dirty, item_stats_automove::evicted, window_data::evicted, window_data::excess_free, fill_item_stats_automove(), fill_slab_stats_automove(), slab_stats_automove::free_chunks, slab_automove::free_mem, get_window_data(), global_pool_check(), slab_automove::iam_after, slab_automove::iam_before, slab_automove::item_size, slab_automove::max_age_ratio, MAX_NUMBER_OF_SLAB_CLASSES, memcheck(), MIN_PAGES_FOR_RECLAIM, MIN_PAGES_FOR_SOURCE, item_stats_automove::outofmemory, window_global::pool_high, window_global::pool_low, POWER_SMALLEST, window_data::relaxed, slab_automove::sam_after, slab_automove::sam_before, slab_stats_automove::total_pages, slab_automove::window_cur, slab_automove::window_data, slab_automove::window_global, window_global_sum(), slab_automove::window_size, and window_sum().
|
static |
Definition at line 100 of file slab_automove_extstore.c.
References window_global::pool_high, and window_global::pool_low.
Referenced by slab_automove_extstore_run().
|
static |
Definition at line 87 of file slab_automove_extstore.c.
References window_data::age, window_data::dirty, window_data::evicted, window_data::excess_free, and window_data::relaxed.
Referenced by slab_automove_extstore_run().