diff options
author | Samuel Just <sam.just@inktank.com> | 2013-08-22 11:19:37 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-08-26 10:32:27 -0700 |
commit | 3528100a53724e7ae20766344e467bf762a34163 (patch) | |
tree | 853e44de1d48c83fc183a6a4013a1502149c6698 | |
parent | 2184ec135076456cad9dee7724d31c158edcfcf2 (diff) | |
download | ceph-3528100a53724e7ae20766344e467bf762a34163.tar.gz |
FileStore: add config option to disable the wbthrottle
Backport: dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/common/config_opts.h | 1 | ||||
-rw-r--r-- | src/os/FileStore.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 89405121698..6453e5a207c 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -524,6 +524,7 @@ OPTION(osd_max_attr_size, OPT_U64, 65536) OPTION(filestore, OPT_BOOL, false) /// filestore wb throttle limits +OPTION(filestore_wbthrottle_enable, OPT_BOOL, true) OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64, 41943040) OPTION(filestore_wbthrottle_btrfs_bytes_hard_limit, OPT_U64, 419430400) OPTION(filestore_wbthrottle_btrfs_ios_start_flusher, OPT_U64, 500) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 81407373685..d4d540df876 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2600,7 +2600,8 @@ int FileStore::_write(coll_t cid, const hobject_t& oid, r = bl.length(); // flush? - if (!replaying) + if (!replaying && + g_conf->filestore_wbthrottle_enable) wbthrottle.queue_wb(fd, oid, offset, len, replica); lfn_close(fd); |