Signed-off-by: Haomai Wang <haomai@xsky.com>
auto cache = rocksdb::NewLRUCache(g_conf->rocksdb_cache_size);
rocksdb::BlockBasedTableOptions bbt_opts;
- bbt_opts.block_size = 32 * 1024;
+ bbt_opts.block_size = g_conf->rocksdb_block_size;
bbt_opts.block_cache = cache;
opt.table_factory.reset(rocksdb::NewBlockBasedTableFactory(bbt_opts));
dout(10) << __func__ << " set block size to " << g_conf->rocksdb_block_size
int NVMEDevice::flush()
{
dout(10) << __func__ << " start" << dendl;
+ utime_t start = ceph_clock_now(g_ceph_context);
if (inflight_ops.read()) {
// TODO: this may contains read op
dout(1) << __func__ << " existed inflight ops " << inflight_ops.read() << dendl;
}
flush_waiters.dec();
}
+ utime_t lat = ceph_clock_now(g_ceph_context);
+ lat -= start;
+ logger->tinc(l_bluestore_nvmedevice_flush_lat, lat);
return 0;
// nvme device will cause terriable performance degraded
// while issuing flush command