Searched refs:total_bytes (Results 1 – 3 of 3) sorted by relevance
| /memcached-1.4.29/ |
| H A D | slabs.h | 23 void *slabs_alloc(const size_t size, unsigned int id, uint64_t *total_bytes, unsigned int flags); 41 unsigned int slabs_available_chunks(unsigned int id, bool *mem_flag, uint64_t *total_bytes, unsigne…
|
| H A D | items.c | 93 const uint64_t total_bytes, const bool do_evict); 189 uint64_t total_bytes; in do_item_alloc() local 194 it = slabs_alloc(ntotal, id, &total_bytes, 0); in do_item_alloc() 197 total_bytes -= noexp_lru_size(id); in do_item_alloc() 201 lru_pull_tail(id, HOT_LRU, total_bytes, false); in do_item_alloc() 202 lru_pull_tail(id, WARM_LRU, total_bytes, false); in do_item_alloc() 843 const uint64_t total_bytes, const bool do_evict) { in lru_pull_tail() argument 915 limit = total_bytes * settings.hot_lru_pct / 100; in lru_pull_tail() 999 uint64_t total_bytes = 0; in lru_maintainer_juggle() local 1004 &total_bytes, &chunks_perslab); in lru_maintainer_juggle() [all …]
|
| H A D | slabs.c | 307 static void *do_slabs_alloc(const size_t size, unsigned int id, uint64_t *total_bytes, in do_slabs_alloc() argument 319 if (total_bytes != NULL) { in do_slabs_alloc() 320 *total_bytes = p->requested; in do_slabs_alloc() 578 void *slabs_alloc(size_t size, unsigned int id, uint64_t *total_bytes, in slabs_alloc() argument 583 ret = do_slabs_alloc(size, id, total_bytes, flags); in slabs_alloc() 634 uint64_t *total_bytes, unsigned int *chunks_perslab) { in slabs_available_chunks() argument 643 if (total_bytes != NULL) in slabs_available_chunks() 644 *total_bytes = p->requested; in slabs_available_chunks()
|