}
}
-static void
+static void UNUSED
log_bals(const char *title, const struct slave_balance *bals, size_t n_bals,
- struct port *port)
+ struct port *port)
{
const struct slave_balance *b;
/* Shift load from the most-heavily-loaded slaves to the
* least-heavily-loaded slaves. */
least_loaded = &bals[port->n_ifaces - 1];
- log_bals("before", bals, port->n_ifaces, port);
+ //log_bals("before", bals, port->n_ifaces, port);
for (b = bals; b < least_loaded; ) {
uint64_t overload = b->tx_bytes - least_loaded->tx_bytes;
if (overload < least_loaded->tx_bytes >> 5 || overload < 100000) {
again: ;
}
- log_bals("after", bals, port->n_ifaces, port);
+ //log_bals("after", bals, port->n_ifaces, port);
/* Implement exponentially weighted moving average. A weight of 1/2 causes
* historical data to decay to <1% in 7 rebalancing runs. */