3 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
5 #include "loba_simple.h"
8 * load balance with a least-loaded neighbor,
9 * without breaking the ping-pong condition
11 void loba_simple::load_balance()
15 double min = get_load();
17 for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
18 double l = pneigh[i]->get_load();
32 double balance = (get_load() - max) / 2;
33 DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, get_load(), balance);
34 send(pneigh[imin], balance);