Merge pull request #6979 from sfc-gh-jslocum/speedup_tail_latency
Don't do huge tail latencies for network requests when speed up simul…
This commit is contained in:
commit
1ab5c21967
|
@ -171,7 +171,7 @@ private:
|
||||||
double halfLatency() const {
|
double halfLatency() const {
|
||||||
double a = deterministicRandom()->random01();
|
double a = deterministicRandom()->random01();
|
||||||
const double pFast = 0.999;
|
const double pFast = 0.999;
|
||||||
if (a <= pFast) {
|
if (a <= pFast || g_simulator.speedUpSimulation) {
|
||||||
a = a / pFast;
|
a = a / pFast;
|
||||||
return 0.5 * (FLOW_KNOBS->MIN_NETWORK_LATENCY * (1 - a) +
|
return 0.5 * (FLOW_KNOBS->MIN_NETWORK_LATENCY * (1 - a) +
|
||||||
FLOW_KNOBS->FAST_NETWORK_LATENCY / pFast * a); // 0.5ms average
|
FLOW_KNOBS->FAST_NETWORK_LATENCY / pFast * a); // 0.5ms average
|
||||||
|
|
Loading…
Reference in New Issue