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 23:28:57 -0700 |
commit | 29a24ab854c7bbae073e6a57a45672bf265bf29b (patch) | |
tree | 26c911039779e2345b815cd18fca0829653f1fc7 | |
parent | eeb1f863b29d849fd81ee2a8c6ffc821db932ce7 (diff) | |
download | ceph-29a24ab854c7bbae073e6a57a45672bf265bf29b.tar.gz |
FileStore: add config option to disable the wbthrottle
Signed-off-by: Samuel Just <sam.just@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 52e4a819968..ad5051443c7 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -510,6 +510,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 cbf7b792309..7418039ece6 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -3066,7 +3066,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); |