]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: add config option to disable the wbthrottle
authorSamuel Just <sam.just@inktank.com>
Thu, 22 Aug 2013 18:19:37 +0000 (11:19 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 6 Sep 2013 23:08:41 +0000 (16:08 -0700)
Backport: dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 3528100a53724e7ae20766344e467bf762a34163)

src/common/config_opts.h
src/os/FileStore.cc

index 52e4a8199688a14037835202f7c331e00c22cc55..ad5051443c77964c00ea91678baf8f9a74b49043 100644 (file)
@@ -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)
index cbf7b792309ef95efc5ffcbb88c68c5f91637e0a..7418039ece6328515a1a4ffba827ec4aef27f328 100644 (file)
@@ -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);