Enabling bluestore_sync_transaction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sage,
I was trying to benchmark bluestore by enabling bluestore_sync_transaction and it seems the db method in the below code is called wrongly ?
If we enable bluestore_sync_submit_transaction , shouldn't we be doing db-> submit_transaction_sync() and if we enable only bluestore_sync_transaction shouldn't we be doing db->submit_transaction() ?



      if (!g_conf->bluestore_sync_transaction) {
if (g_conf->bluestore_sync_submit_transaction) {
  _txc_finalize_kv(txc, txc->t);
  int r = db->submit_transaction(txc->t);
  assert(r == 0);
}
      } else {
_txc_finalize_kv(txc, txc->t);
int r = db->submit_transaction_sync(txc->t);
assert(r == 0);
      }

We are anyway calling one submit_transaction_sync from _kv_sync_thread().

Now, if I do that (for bluestore_sync_transaction = true) , I am seeing ~10% performance improvement with min_alloc_size = 16K and seeing much lower cpu usage with _kv_sync_thread.
This is also telling us that even if we are not utilizing 100% cpu core for _kv_sync_thread , more work you do from this thread will degrade performance.
IMO, bluestore_sync_transaction should be default true if you agree that we should be replacing the *_sync call.

Thanks & Regards
Somnath



PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux