-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Service Arch 2023-02-06
-
120
1-line change to fix BF-27452, increased long tail latency.
From associated code comment with this fix:
Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
+ // Yield here to avoid pinning the CPU. Give other threads some CPU + // time to avoid a spiky latency distribution (BF-27452). Even if + // this client can run continuously and receive another command + // without blocking, we yield anyway. We WANT context switching, and + // we're trying deliberately to make it happen, to reduce long tail + // latency. + _yieldPointReached(); _receiveRequest();
- related to
-
SERVER-73699 SessionWorkflow improvements
- Closed