| /memcached-1.6.32/scripts/ |
| D | memcached-tool | 24 my $limit; 37 $limit = shift; 38 undef $mode if $limit < 1; 47 $limit = $arg; 50 $limit = shift; 52 if ($limit) { 110 print STDERR " (limiting to $limit keys)" unless !$limit; 116 last if /^END/ or ($limit and $keycount == $limit); 132 if ($limit) { 162 print STDERR " (limiting to $limit keys)" unless !$limit; [all …]
|
| /memcached-1.6.32/ |
| D | cache.c | 41 void cache_set_limit(cache_t *cache, int limit) { in cache_set_limit() argument 43 cache->limit = limit; in cache_set_limit() 83 } else if (cache->limit == 0 || cache->total < cache->limit) { in do_cache_alloc() 132 if (cache->limit != 0 && cache->limit < cache->total) { in do_cache_free()
|
| D | proxy_ratelim.c | 8 uint32_t limit; member 69 lim->limit = _tbf_check(L, "limit"); in _setup_tbf() 74 lim->bucket = lim->limit; in _setup_tbf() 111 if (lim->bucket > lim->limit) { in _update_tbf() 112 lim->bucket = lim->limit; in _update_tbf()
|
| D | proxy_lua.c | 349 if (limit < 0) { in mcplib_backend() 360 if (limit < 0) { in mcplib_backend() 1044 if (limit < 0) { in mcplib_backend_failure_limit() 1060 if (limit < 0) { in mcplib_backend_depth_limit() 1162 if (limit == 0) { in mcplib_stat_limit() 1181 if (limit == 0) { in mcplib_active_req_limit() 1182 limit = UINT64_MAX; in mcplib_active_req_limit() 1188 limit /= tcount; in mcplib_active_req_limit() 1204 if (limit == 0) { in mcplib_buffer_memory_limit() 1205 limit = UINT64_MAX; in mcplib_buffer_memory_limit() [all …]
|
| D | cache.h | 38 int limit; member 97 void cache_set_limit(cache_t* handle, int limit);
|
| D | restart.c | 298 bool restart_mmap_open(const size_t limit, const char *file, void **mem_base) { in restart_mmap_open() argument 308 if (ftruncate(mmap_fd, limit) != 0) { in restart_mmap_open() 313 if (limit % pagesize) { in restart_mmap_open() 319 mmap_base = mmap(NULL, limit, PROT_READ|PROT_WRITE, MAP_SHARED, mmap_fd, 0); in restart_mmap_open() 325 slabmem_limit = limit; in restart_mmap_open()
|
| D | restart.h | 24 bool restart_mmap_open(const size_t limit, const char *file, void **mem_base);
|
| D | slabs.h | 11 void slabs_init(const size_t limit, const double factor, const bool prealloc, const uint32_t *slab_…
|
| D | slabs.c | 108 static void * alloc_large_chunk(const size_t limit) in alloc_large_chunk() argument 141 ret = posix_memalign(&ptr, pagesize, limit); in alloc_large_chunk() 147 ret = madvise(ptr, limit, MADV_HUGEPAGE); in alloc_large_chunk() 155 …ptr = mmap(NULL, limit, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON | MAP_ALIGNED(align) | MAP_A… in alloc_large_chunk() 161 ptr = malloc(limit); in alloc_large_chunk() 208 void slabs_init(const size_t limit, const double factor, const bool prealloc, const uint32_t *slab_… in slabs_init() argument 218 mem_limit = limit; in slabs_init()
|
| D | thread.c | 462 int limit = settings.read_buf_mem_limit / settings.num_threads; in setup_thread() local 463 if (limit < READ_BUFFER_SIZE) { in setup_thread() 464 limit = 1; in setup_thread() 466 limit = limit / READ_BUFFER_SIZE; in setup_thread() 468 cache_set_limit(me->rbuf_cache, limit); in setup_thread()
|
| D | items.h | 53 char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes);
|
| D | items.c | 645 char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes)… in item_cachedump() argument 667 while (it != NULL && (limit == 0 || shown < limit)) { in item_cachedump() 1119 uint64_t limit = 0; in lru_pull_tail() local 1185 limit = total_bytes * settings.hot_lru_pct / 100; in lru_pull_tail() 1187 if (limit == 0) in lru_pull_tail() 1188 limit = total_bytes * settings.warm_lru_pct / 100; in lru_pull_tail() 1206 } else if (sizes_bytes[id] > limit || in lru_pull_tail()
|
| D | xxhash.h | 1934 const xxh_u8* const limit = bEnd - 15; in XXH32_endian_align() local 1945 } while (input < limit); in XXH32_endian_align() 2051 const xxh_u8* const limit = bEnd - 16; in XXH32_update() local 2062 } while (p<=limit); in XXH32_update() 2362 const xxh_u8* const limit = bEnd - 32; in XXH64_endian_align() local 2373 } while (input<=limit); in XXH64_endian_align() 2478 const xxh_u8* const limit = bEnd - 32; in XXH64_update() local 2489 } while (p<=limit); in XXH64_update() 4649 const xxh_u8* const limit = bEnd - XXH3_INTERNALBUFFER_SIZE; in XXH3_update() local 4657 } while (input<limit); in XXH3_update()
|
| D | proxy_network.c | 320 int limit = be->tunables.backend_depth_limit; in proxy_run_backend_queue() local 325 } else if (limit && bec->depth > limit) { in proxy_run_backend_queue()
|
| D | proto_text.c | 770 unsigned int bytes, id, limit = 0; in process_stat() local 783 !safe_strtoul(tokens[3].value, &limit)) { in process_stat() 793 buf = item_cachedump(id, limit, &bytes); in process_stat() 2492 unsigned int limit = 0; in process_extstore_command() local 2494 !safe_strtoul(tokens[3].value, &limit)) { in process_extstore_command()
|
| D | ChangeLog | 13 maximum connection limit. 504 limit.
|
| D | testapp.c | 198 int limit = 10, allocated_num = limit + 1, i; in cache_limit_revised_downward_test() local 212 cache_set_limit(cache, limit); in cache_limit_revised_downward_test()
|
| /memcached-1.6.32/t/ |
| D | proxyratelim.lua | 3 local tbf_global = mcp.ratelim_global_tbf({limit = 25, fillrate = 5, tickrate = 500}) 11 local tbf = mcp.ratelim_tbf({limit = 50, fillrate = 4, tickrate = 500})
|
| /memcached-1.6.32/doc/ |
| D | storage.txt | 91 A target fragmentation limit is set: "0.9", meaning "run compactions if pages 96 multiplied against the target fragmentation limit, ie: 97 limit of 0.9: 50% of pages free -> 0.9 * 0.5 -> 0.45%. If a page is 64
|
| D | protocol.txt | 47 length limit of a key is set at 250 characters (of course, normally 980 instance has hit its limit. It might be desirable to have memory laid out 1368 | | | larger than the -I limit | 1371 | | | limit (relevant when -M is used) | 1395 | | | another due to hitting the -R limit. | 1494 | | float | Ratio limit between young/old slab classes | 1518 | read_obj_mem_limit| 32u | Megabyte limit for conn. read/resp buffers. | 1821 adjustments of the cache memory limit. It returns "OK\r\n" or an error (unless 1822 "noreply" is given as the last parameter). If the new memory limit is higher 1824 the limit is lower, and slabs_reassign+automove are enabled, free memory may
|