-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.9.2, 2.0.8, 2.1.2, 2.2.2, 2.3.1
-
Component/s: Internal Code, Networking, Performance
-
Environment:Linux
-
Fully Compatible
-
ALL
-
The select() call at src/mongo/util/net/listen.cpp:218 is made with a timeout of 10ms, which is unnecessarily small, and, on one of my machines, results in a constant CPU consumption of >1% when mongod is sitting idle.
Eliminate the timeout altogether: just pass NULL and let select() block until something happens. The timeout specified here is unnecessary, as a timeout simply results in select() being called again.
- duplicates
-
SERVER-2114 Don't use select timeouts for fast coarse timing
- Closed