return;
size_t block_size = 4096;
- StartDeferred(block_size);
+
SetVal(g_conf, "bluestore_max_blob_size", "65536");
+ // need to tune cache autotune interval as lack of cache balancing
+ // triggers excessive cache trimming after fsck
+ // See https://tracker.ceph.com/issues/38795
+ SetVal(g_conf, "bluestore_cache_autotune_interval", "1");
g_conf->apply_changes(NULL);
+ StartDeferred(block_size);
+
+ // wait 2xbluestore_cache_autotune_interval to make sure cache has been
+ // rebalanced
+ sleep(2);
+
int r;
coll_t cid;
ghobject_t hoid(hobject_t("test_hint", "", CEPH_NOSNAP, 0, -1, ""));
return;
size_t block_size = 4096;
- StartDeferred(block_size);
+
SetVal(g_conf, "bluestore_max_blob_size", "65536");
+ // need to tune cache autotune interval as lack of cache balancing
+ // triggers excessive cache trimming after fsck
+ // See https://tracker.ceph.com/issues/38795
+ SetVal(g_conf, "bluestore_cache_autotune_interval", "1");
g_conf->apply_changes(NULL);
+ StartDeferred(block_size);
+
+ // wait 2xbluestore_cache_autotune_interval to make sure cache has been
+ // rebalanced
+ sleep(2);
+
int r;
coll_t cid;
ghobject_t hoid(hobject_t("test_hint", "", CEPH_NOSNAP, 0, -1, ""));
return;
size_t block_size = 4096;
- StartDeferred(block_size);
SetVal(g_conf, "bluestore_max_blob_size", "65536");
+ // need to tune cache autotune interval as lack of cache balancing
+ // triggers excessive cache trimming after fsck
+ // See https://tracker.ceph.com/issues/38795
+ SetVal(g_conf, "bluestore_cache_autotune_interval", "1");
g_conf->apply_changes(NULL);
+ StartDeferred(block_size);
+
+ // wait 2xbluestore_cache_autotune_interval to make sure cache has been
+ // rebalanced
+ sleep(2);
+
int r;
coll_t cid;
ghobject_t hoid(hobject_t("test_hint", "", CEPH_NOSNAP, 0, -1, ""));