]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_objectstore: add SyntheticMatrixSharding
authorSage Weil <sage@redhat.com>
Fri, 2 Sep 2016 16:41:54 +0000 (12:41 -0400)
committerSage Weil <sage@redhat.com>
Tue, 6 Sep 2016 21:58:38 +0000 (17:58 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/objectstore/store_test.cc

index 10338b0b6ee151920ea276f69ca4628599a8b130..5a423a19b399a76e169f9f514b3748f5f471707f 100644 (file)
@@ -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;