Modifying adaptive LB to handle case when neither refine nor greedy does good lb
authorHarshitha <gplkrsh2@illinois.edu>
Sun, 1 Apr 2012 22:56:49 +0000 (17:56 -0500)
committerHarshitha <gplkrsh2@illinois.edu>
Sun, 1 Apr 2012 22:56:49 +0000 (17:56 -0500)
src/ck-ldb/CentralLB.h
src/ck-ldb/LBDatabase.h

index e7884fba25d7857dcd3793c87f3131633f145857..ec7ced4f1c481b22bf7db38edb8f2532f87af0aa 100644 (file)
@@ -248,6 +248,10 @@ protected:
     theLbdb->GetPrevLBData(is_prev_lb_refine, lb_max_avg_ratio);
   }
 
+  virtual void GetLBDataForLB(int prev_lb, double& lb_max_avg_ratio) {
+    theLbdb->GetLBDataForLB(prev_lb, lb_max_avg_ratio);
+  }
+
 
 private:  
   CProxy_CentralLB thisProxy;
index 23fc35ed42442649d0199caebdb888cbc6c9dd61..a37583a1c279e8be5c65f77e1c7262ca7319ee69 100644 (file)
@@ -372,6 +372,7 @@ public:
 
   void UpdateAfterLBData(int is_lb_refine, double lb_max, double lb_avg);
   void GetPrevLBData(int& lb_type, double& lb_max_avg_ratio);
+  void GetLBDataForLB(int lb_type, double& lb_max_avg_ratio);
 
   void SetMigrationCost(double lb_migration_cost);
   void SetStrategyCost(double lb_strategy_cost);