]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "os/newstore: avoid sync append for small ios"
authorSage Weil <sage@redhat.com>
Wed, 29 Apr 2015 20:57:40 +0000 (13:57 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:42 +0000 (13:39 -0400)
This reverts commit 69baab2f7eaca7688ce1d45802a82fc3539cd906.

This is slower.  :(

src/common/config_opts.h
src/os/newstore/NewStore.cc

index 6463595e9b7e0576a390be70f8ced5e231d71ce6..b83fef4f83023139962f7ded0792adba8aae42f4 100644 (file)
@@ -803,7 +803,6 @@ OPTION(newstore_fsync_thread_suicide_timeout, OPT_INT, 120) // suicide timeout v
 OPTION(newstore_wal_threads, OPT_INT, 4)
 OPTION(newstore_wal_thread_timeout, OPT_INT, 30)
 OPTION(newstore_wal_thread_suicide_timeout, OPT_INT, 120)
-OPTION(newstore_sync_append_min, OPT_INT, 65536)  // only do sync append for large ios
 OPTION(newstore_max_ops, OPT_U64, 512)
 OPTION(newstore_max_bytes, OPT_U64, 64*1024*1024)
 OPTION(newstore_wal_max_ops, OPT_U64, 512)
index aac07485497c0ccbe19cb89b88e2be2dc5ceb8dc..33c322a2c2360fc62cfab7f51193e420bfbcb7e5 100644 (file)
@@ -3320,9 +3320,8 @@ int NewStore::_do_write(TransContext *txc,
     }
   }
 
-  if (((o->onode.size <= offset || o->onode.size == 0) &&
-       length >= g_conf->newstore_sync_append_min) ||
-
+  if (o->onode.size <= offset ||
+      o->onode.size == 0 ||
       o->onode.data_map.empty()) {
     uint64_t x_offset;
     if (o->onode.data_map.empty()) {