summaryrefslogtreecommitdiffstats
path: root/monitoring
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-10-11 16:15:28 +0200
committerMax Kellermann <max.kellermann@ionos.com>2024-10-22 12:22:09 +0200
commitc2d192f527ba2ada103a3c3234f90c1e30118d98 (patch)
tree9ed8a0dff534b5b69d978b38228d746901b8e30f /monitoring
parentmsg/async/Event{Poll,Epoll}: move timeout calculation to Timeout.h (diff)
downloadceph-c2d192f527ba2ada103a3c3234f90c1e30118d98.tar.xz
ceph-c2d192f527ba2ada103a3c3234f90c1e30118d98.zip
msg/async/Timeout: always round up
Currently, we always round down, which has a bad side effect: when a timer comes closer, we have lots of early wakeups, and eventually we'll run into a busy loop (timeout=0) when the timeout is less than one millisecond; the process will remain this busy loop for one millisecond, wasting lots of CPU time. Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Diffstat (limited to 'monitoring')
0 files changed, 0 insertions, 0 deletions