]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/store_test: New SyntheticShardingLimited tests operate on limited objects
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 13 Feb 2023 14:04:21 +0000 (14:04 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 9 Aug 2023 07:51:58 +0000 (07:51 +0000)
Iterate over few objects with limited onode shard size.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/test/objectstore/store_test.cc

index 833dac19c9f719e9ec2114b8e34f423f3c81a68a..c38924690833ab20f0bfa2b8687dba508a0a5d33 100644 (file)
@@ -5200,10 +5200,10 @@ void StoreTest::doSyntheticLimitedTest(
     if (option(1)) test_obj.fsck(false);
     if (option(1)) test_obj.scan();
     if (option(497)) test_obj.stat();
-    if (option(500)) test_obj.zero();
+    if (option(1000)) test_obj.zero();
     if (option(1500)) test_obj.read();
     if (option(1500)) test_obj.write();
-    if (option(1000)) test_obj.truncate();
+    if (option(500)) test_obj.truncate();
     if (option(1000)) test_obj.clone_range();
     if (option(1000)) test_obj.stash();
     if (option(1500)) test_obj.unlink();
@@ -5245,13 +5245,37 @@ TEST_P(StoreTestSpecificAUSize, SyntheticLimited) {
     return;
 
   const char *m[][10] = {
-    { "bluestore_min_alloc_size", "4096", 0 }, // must be the first!
+    { "bluestore_min_alloc_size", "65536", "4096", 0 }, // must be the first!
+    { "num_ops", "10000", 0 },
+    { "max_write", "65536", 0 },
+    { "max_size", "262144", 0 },
+    { "alignment", "4096", 0 },
+    { "start_object_count", "1000", "200", "50", 0 },
+    { "bluestore_max_blob_size", "65536", 0 },
+    { "bluestore_default_buffered_read", "true", 0 },
+    { "bluestore_default_buffered_write", "true", 0 },
+    { "bluestore_compression_mode", "force", "none", 0},
+    { "bluestore_prefer_deferred_size", "32768", "0", 0},
+    { 0 },
+  };
+  do_matrix(m, &StoreTestSpecificAUSize::SyntheticLimitedTest);
+}
+
+TEST_P(StoreTestSpecificAUSize, SyntheticShardingLimited) {
+  if (string(GetParam()) != "bluestore")
+    return;
+
+  const char *m[][10] = {
+    { "bluestore_min_alloc_size", "65536", "4096", 0 }, // must be the first!
     { "num_ops", "10000", 0 },
     { "max_write", "65536", 0 },
     { "max_size", "262144", 0 },
     { "alignment", "4096", 0 },
-    { "start_object_count", "3000", "1000", "200", "50", 0 },
+    { "start_object_count", "1000", "200", "50", 0 },
     { "bluestore_max_blob_size", "65536", 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 },
     { "bluestore_default_buffered_read", "true", 0 },
     { "bluestore_default_buffered_write", "true", 0 },
     { 0 },