diff options
author | dormando <dormando@rydia.net> | 2009-10-06 16:22:41 -0700 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-10-06 16:27:53 -0700 |
commit | 7a1da66a4f3a1ef83325b013c765848b2167c28f (patch) | |
tree | c58529984fba9e40ab7dab1b4185a4bc02b2d61a /slabs.c | |
parent | 2c7bfeb83c0f247b9f6ee9678a681658eaf8535b (diff) | |
download | memcached-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ { |