]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: default to the "new" bobtail-era tunables 888/head
authorSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 06:15:54 +0000 (22:15 -0800)
committerSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 06:15:54 +0000 (22:15 -0800)
These are supported as of kernel version v3.9:
 - chooseleaf_descend_once was added in 1604f48
 - others were added in 546f04e

And of course these are supported by bobtail and later.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.h

index 72ad52e2c7278462e01ec9a3d5327154c2721b46..5d700147c1a0fd40e8a7bea4b9b4d10bb32cb323 100644 (file)
@@ -106,20 +106,21 @@ public:
     crush->choose_total_tries = 19;
     crush->chooseleaf_descend_once = 0;
   }
-  void set_tunables_optimal() {
+  void set_tunables_argonaut() {
+    set_tunables_legacy();
+  }
+  void set_tunables_bobtail() {
     crush->choose_local_tries = 0;
     crush->choose_local_fallback_tries = 0;
     crush->choose_total_tries = 50;
     crush->chooseleaf_descend_once = 1;
   }
-  void set_tunables_argonaut() {
-    set_tunables_legacy();
-  }
-  void set_tunables_bobtail() {
-    set_tunables_optimal();
+
+  void set_tunables_optimal() {
+    set_tunables_bobtail();
   }
   void set_tunables_default() {
-    set_tunables_legacy();
+    set_tunables_bobtail();
   }
 
   int get_choose_local_tries() const {