Home
last modified time | relevance | path

Searched refs:size (Results 1 – 23 of 23) sorted by relevance

/memcached-1.4.29/
H A Dbipbuffer.c34 return me->size; in bipbuf_size()
45 me->size = size; in bipbuf_init()
54 bipbuf_init(me, size); in bipbuf_new()
98 me->b_end += size; in bipbuf_push()
102 me->a_end += size; in bipbuf_push()
106 return size; in bipbuf_push()
118 me->b_end += size; in bipbuf_offer()
127 return size; in bipbuf_offer()
133 if (me->size < me->a_start + size) in bipbuf_peek()
157 if (me->size < me->a_start + size) in bipbuf_poll()
[all …]
H A Dmemcached_dtrace.d69 probe slabs__allocate(int size, int slabclass, int slabsize, void* ptr);
76 probe slabs__allocate__failed(int size, int slabclass);
96 probe slabs__free(int size, int slabclass, void* ptr);
134 probe item__link(const char *key, int keylen, int size);
142 probe item__unlink(const char *key, int keylen, int size);
150 probe item__remove(const char *key, int keylen, int size);
158 probe item__update(const char *key, int keylen, int size);
178 probe process__command__start(int connid, const void *request, int size);
186 probe process__command__end(int connid, const void *response, int size);
196 probe command__get(int connid, const char *key, int keylen, int size, int64_t casid);
[all …]
H A Dslabs.c86 if (size == 0 || size > settings.item_size_max) in slabs_clsid()
88 while (size > slabclass[res].size) in slabs_clsid()
128 size += CHUNK_ALIGN_BYTES - (size % CHUNK_ALIGN_BYTES); in slabs_init()
130 slabclass[i].size = size; in slabs_init()
133 size *= factor; in slabs_init()
202 ptr += p->size; in split_slab_page_into_freelist()
281 chunk->size = p->size - sizeof(item_chunk); in do_slabs_alloc_chunked()
323 if (size <= p->size) { in do_slabs_alloc()
351 MEMCACHED_SLABS_ALLOCATE(size, id, p->size, ret); in do_slabs_alloc()
399 p->requested -= size; in do_slabs_free_chunked()
[all …]
H A Dbipbuffer.h6 unsigned long int size; member
26 bipbuf_t *bipbuf_new(const unsigned int size);
34 void bipbuf_init(bipbuf_t* me, const unsigned int size);
41 unsigned char *bipbuf_request(bipbuf_t* me, const int size);
42 int bipbuf_push(bipbuf_t* me, const int size);
48 int bipbuf_offer(bipbuf_t *me, const unsigned char *data, const int size);
69 unsigned char *bipbuf_poll(bipbuf_t* me, const unsigned int size);
H A Dslabs.h19 unsigned int slabs_clsid(const size_t size);
23 void *slabs_alloc(const size_t size, unsigned int id, uint64_t *total_bytes, unsigned int flags);
26 void slabs_free(void *ptr, size_t size, unsigned int id);
H A Dlogger.c325 unsigned int size; in logger_thread_read() local
331 data = bipbuf_peek_all(l->buf, &size); in logger_thread_read()
337 L_DEBUG("LOGGER: Got %d bytes from bipbuffer\n", size); in logger_thread_read()
340 while (pos < size && watcher_count > 0) { in logger_thread_read()
351 pos += sizeof(logentry) + e->size; in logger_thread_read()
353 assert(pos <= size); in logger_thread_read()
356 data = bipbuf_poll(l->buf, size); in logger_thread_read()
609 e->size = sizeof(struct logentry_eviction) + le->nkey; in _logger_log_evictions()
623 e->size = sizeof(struct logentry_item_get) + nkey; in _logger_log_item_get()
633 e->size = sizeof(struct logentry_item_store) + nkey; in _logger_log_item_store()
[all …]
H A Dsizes.c5 static void display(const char *name, size_t size) { in display() argument
6 printf("%s\t%d\n", name, (int)size); in display()
H A Dstats.c173 size_t size = 0, written = 0, total_written = 0; in stats_prefix_dump() local
182 size = strlen(format) + total_prefix_size + in stats_prefix_dump()
186 buf = malloc(size); in stats_prefix_dump()
196 written = snprintf(buf + pos, size-pos, format, in stats_prefix_dump()
201 assert(total_written < size); in stats_prefix_dump()
H A Dmemcached.c1363 if (ch->size == ch->used) in complete_update_bin()
1606 size_t nsize = c->stats.size; in grow_stats_buf()
1622 if (nsize != c->stats.size) { in grow_stats_buf()
1626 c->stats.size = nsize; in grow_stats_buf()
1743 while (size > nsize) { in bin_read_key()
4454 if (ch->size == ch->used) { in read_into_chunked_item()
5538 uint32_t size = 0; in _parse_slab_sizes() local
5548 if (!safe_strtoul(p, &size) || size < settings.chunk_size in _parse_slab_sizes()
5553 if (last_size >= size) { in _parse_slab_sizes()
5562 slab_sizes[i++] = size; in _parse_slab_sizes()
[all …]
H A Dlogger.h75 int size; member
H A Ditems.c266 chunk->size = chunk->next->size - ((char *)chunk - (char *)it); in do_item_alloc()
268 assert(chunk->size > 0); in do_item_alloc()
578 unsigned int size = 0; in item_stats() local
602 size += sizes[i]; in item_stats()
608 if (size == 0) in item_stats()
610 APPEND_NUM_FMT_STAT(fmt, n, "number", "%u", size); in item_stats()
H A DBUILD4 that we only allocate huge, fixed-size slabs)
H A Dprotocol_binary.h444 uint16_t size; member
H A Dmemcached.h442 int size; /* available chunk space in bytes */ member
548 size_t size; member
H A Dtestapp.c542 static void read_ascii_response(char *buffer, size_t size) { in read_ascii_response() argument
559 assert(offset + 1 < size); in read_ascii_response()
733 static bool safe_recv_packet(void *buf, size_t size) { in safe_recv_packet() argument
735 assert(size > sizeof(*response)); in safe_recv_packet()
859 off_t size = sizeof(protocol_binary_request_no_extras); in flush_command() local
864 size += 4; in flush_command()
869 return size; in flush_command()
H A DDoxyfile275 # The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
278 # For small to medium size projects (<1000 input files) the default value is
279 # probably good enough. For larger projects a too small cache size can cause
284 # a logarithmic scale so increasing the size by one will roughly double the
285 # memory usage. The cache size is given by this formula:
287 # corresponding to a cache size of 2^16 = 65536 symbols
962 # Use this tag to change the font size of Latex formulas included
964 # when you change the font size after a successful doxygen run you need
1147 # enabling this will significantly increase the size of the XML output.
1186 # tag is set to NO the size of the Perl module output will be much smaller
[all …]
H A DChangeLog216 introduction of the powers-of-N chunk size change.
319 size-0 mallocs during slab preallocation.
/memcached-1.4.29/t/
H A Dmultiversioning.t16 my $size = 256 * 1024; # 256 kB
17 my $bigval = "0123456789abcdef" x ($size / 16);
21 print $sock "set big 0 0 $size\r\n$bigval\r\n";
27 is(read($sock, $buf, $size / 2), $size / 2, "read half the answer back");
36 print $sock2 "set big 0 0 $size\r\n$bigval2\r\n";
H A D64bit.t35 my $size = 400 * 1024;
36 my $data = "a" x $size;
37 print $sock "set big$_ 0 0 $size\r\n$data\r\n";
H A Dchunked-items.t31 my $size = 400 * 1024;
32 my $data = "x" x $size;
33 print $sock "set foo$_ 0 0 $size\r\n$data\r\n";
/memcached-1.4.29/scripts/
H A Dmemcached-tool214 my $size = $it->{chunk_size} < 1024 ?
219 $n, $size, $it->{age}, $it->{total_pages},
/memcached-1.4.29/doc/
H A Dprotocol.txt561 | pointer_size | 32 | Default size of pointers on the host OS |
753 "stats slabs" describes size and memory usage, "stats items" shows higher
801 Item size statistics
807 general size and count of all items stored in the cache.
813 STAT <size> <count>\r\n
819 'size' is an approximate size of the item, within 32 bytes.
826 most of your items are less than 200 bytes in size.
879 | | one chunk of the appropriate size. |
881 | | default is less than or equal to one megabyte in size. |
903 * Items are stored in a slab that is the same size or larger than the
[all …]
H A DDoxyfile935 # enabling this will significantly increase the size of the XML output.
972 # tag is set to NO the size of the Perl module output will be much smaller