Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
1.9.2, 2.0.8, 2.1.2, 2.2.2, 2.3.1
-
Linux
-
Fully Compatible
-
ALL
-
Description
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.
Attachments
Issue Links
- duplicates
-
SERVER-2114 Don't use select timeouts for fast coarse timing
-
- Closed
-