From: Sage Weil Date: Fri, 2 Sep 2016 16:41:54 +0000 (-0400) Subject: ceph_test_objectstore: add SyntheticMatrixSharding X-Git-Tag: v11.0.1~304^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=025bbc62204edb3fa6993cb7ceab3747123b38e1;p=ceph.git ceph_test_objectstore: add SyntheticMatrixSharding Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 10338b0b6ee..5a423a19b39 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -3831,6 +3831,23 @@ void do_matrix(const char *matrix[][10], g_ceph_context->_conf->apply_changes(NULL); } +TEST_P(StoreTest, SyntheticMatrixSharding) { + if (string(GetParam()) != "bluestore") + return; + + const char *m[][10] = { + { "max_write", "65536", 0 }, + { "max_size", "262144", 0 }, + { "alignment", "4096", 0 }, + { "bluestore_min_alloc_size", "4096", 0 }, + { "bluestore_extent_map_shard_min_size", "60", 0 }, + { "bluestore_extent_map_shard_max_size", "300", 0 }, + { "bluestore_extent_map_shard_target_size", "150", 0 }, + { 0 }, + }; + do_matrix(m, store); +} + TEST_P(StoreTest, SyntheticMatrixCsumAlgorithm) { if (string(GetParam()) != "bluestore") return;