summaryrefslogtreecommitdiff
path: root/slabs.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2009-10-06 16:22:41 -0700
committerDustin Sallings <dustin@spy.net>2009-10-06 16:27:53 -0700
commit7a1da66a4f3a1ef83325b013c765848b2167c28f (patch)
treec58529984fba9e40ab7dab1b4185a4bc02b2d61a /slabs.c
parent2c7bfeb83c0f247b9f6ee9678a681658eaf8535b (diff)
downloadmemcached-7a1da66a4f3a1ef83325b013c765848b2167c28f.tar.gz
-vv mode now prints the final slab class
slabs per chunk will always be 1, but the other numbers can vary.
Diffstat (limited to 'slabs.c')
-rw-r--r--slabs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/slabs.c b/slabs.c
index 7b79ede..28cf381 100644
--- a/slabs.c
+++ b/slabs.c
@@ -129,7 +129,7 @@ void slabs_init(const size_t limit, const double factor, const bool prealloc) {
slabclass[i].perslab = POWER_BLOCK / slabclass[i].size;
size *= factor;
if (settings.verbose > 1) {
- fprintf(stderr, "slab class %3d: chunk size %6u perslab %5u\n",
+ fprintf(stderr, "slab class %3d: chunk size %9u perslab %7u\n",
i, slabclass[i].size, slabclass[i].perslab);
}
}
@@ -137,6 +137,10 @@ void slabs_init(const size_t limit, const double factor, const bool prealloc) {
power_largest = i;
slabclass[power_largest].size = POWER_BLOCK;
slabclass[power_largest].perslab = 1;
+ if (settings.verbose > 1) {
+ fprintf(stderr, "slab class %3d: chunk size %9u perslab %7u\n",
+ i, slabclass[i].size, slabclass[i].perslab);
+ }
/* for the test suite: faking of how much we've already malloc'd */
{