Home
last modified time | relevance | path

Searched refs:slabs (Results 1 – 10 of 10) sorted by relevance

/memcached-1.4.29/t/
H A D64bit.t15 my ($stats, $slabs) = @_;
29 $slabs = mem_stats($sock, 'slabs');
30 is($slabs->{'total_malloced'}, "4294967328", "expected (faked) value of total_malloced");
31 is($slabs->{'active_slabs'}, 0, "no active slabs");
43 $slabs = mem_stats($sock, 'slabs');
44 is($slabs->{'active_slabs'}, 1, "1 active slab");
H A Dlru-crawler.t35 my $slabs = mem_stats($sock, "slabs");
36 is($slabs->{"1:used_chunks"}, 90, "slab1 has 90 used chunks");
57 my $slabs = mem_stats($sock, "slabs");
58 is($slabs->{"1:used_chunks"}, 60, "slab1 now has 60 used chunks");
98 my $slabs = mem_stats($sock, "slabs");
99 is($slabs->{"1:used_chunks"}, 0, "slab1 now has 0 used chunks");
/memcached-1.4.29/scripts/
H A Dmc_slab_mover162 my %slabs = ();
170 $slabs{$slab}->{$var} = $val;
175 return \%slabs;
218 my ($slabs, $totals) = calc_slabs(@_);
219 my @sorted = sort { $a->{evicted_d} <=> $b->{evicted_d} } values %$slabs;
227 my ($slabs, $totals) = calc_slabs(@_, sub {
233 my @sorted = sort { $a->{numratio} <=> $b->{numratio} } values %$slabs;
239 my %slabs = ();
257 $slabs{$id} = \%slab;
259 return (\%slabs, \%totals);
/memcached-1.4.29/
H A Dslabs.c187 if (p->slabs == p->list_size) { in grow_slab_list()
209 if (p->slabs < 1) { in get_page_from_global_pool()
213 p->slabs--; in get_page_from_global_pool()
225 && g->slabs == 0)) { in do_slabs_newslab()
242 p->slab_list[p->slabs++] = ptr; in do_slabs_newslab()
485 if (p->slabs != 0) { in do_slabs_stats()
486 uint32_t perslab, slabs; in do_slabs_stats() local
487 slabs = p->slabs; in do_slabs_stats()
677 if (s_cls->slabs < 2) in slab_rebalance_start()
1027 s_cls->slabs--; in slab_rebalance_finish()
[all …]
H A DMakefile.am15 slabs.c slabs.h \
H A Ditems.h50 enum crawler_result_type lru_crawler_crawl(char *slabs);
H A DBUILD4 that we only allocate huge, fixed-size slabs)
H A Ditems.c1533 enum crawler_result_type lru_crawler_crawl(char *slabs) { in lru_crawler_crawl() argument
1544 if (strcmp(slabs, "all") == 0) { in lru_crawler_crawl()
1549 for (char *p = strtok_r(slabs, ",", &b); in lru_crawler_crawl()
H A DChangeLog33 * Fix: stats slabs' used chunks (bug29)
311 * Major refactoring - move API calls for assoc/items/slabs to
566 * assoc.c, items.c, slabs.c: Remove some unused headers.
/memcached-1.4.29/doc/
H A Dprotocol.txt350 The slabs reassign command is used to redistribute memory once a running
354 slabs reassign <source class> <dest class>\r\n
384 The slabs automove command enables a background thread which decides on its
391 slabs automove <0|1>
393 - 0|1|2 is the indicator on whether to enable the slabs automover or not.
444 allows you to avoid scanning all of very large slabs when it is unlikely to
460 The special keyword "all" instructs it to crawl all slabs with items in
752 The slabclass aligns with class ids used by the "stats slabs" command. Where
753 "stats slabs" describes size and memory usage, "stats items" shows higher
797 Note this will only display information about slabs which exist, so an empty
[all …]