]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mempool: pick shard on every allocation; move types to pool_t
authorSage Weil <sage@redhat.com>
Tue, 11 Oct 2016 22:20:03 +0000 (18:20 -0400)
committerSage Weil <sage@redhat.com>
Wed, 2 Nov 2016 17:48:49 +0000 (13:48 -0400)
commita6eec64c95892aff35ea8c05b9aaa42c8b48a66d
tree6c9b88ab855b464b2f633b23a82ad91ef1b9bdee
parentb174694493a893a24166f557592d2160eb3e611d
mempool: pick shard on every allocation; move types to pool_t

If we have a static choice of shard for every *type*
(pool_allocator_base_t) then we will hammer that shard from all
threads and play cacheline ping-pong.  Instead, move the types
list to pool_t (there aren't that many anyway) and pick a shard
on every allocate/deallocate call.

Signed-off-by: Sage Weil <sage@redhat.com>
src/global/mempool.cc
src/include/mempool.h