]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeof: refactor timer for exact frequency timing with drift correction wip-baum-20251020-01
authorAlexander Indenbaum <aindenba@redhat.com>
Mon, 20 Oct 2025 09:00:04 +0000 (12:00 +0300)
committerAlexander Indenbaum <aindenba@redhat.com>
Mon, 20 Oct 2025 09:25:45 +0000 (12:25 +0300)
commitb25d6df27778d3a90aae85dae730b090342f40b1
tree7ca70b0f096594520d912c1331b152c3d4a6c003
parentbf5ad2f0e9ad5762a03799c96526813c9ad0c077
nvmeof: refactor timer for exact frequency timing with drift correction

- Replace relative timing with absolute time calculation to prevent drift
- Implement drift detection and correction mechanism
- Add comprehensive logging for timer firing, execution duration, drift
  and rescheduling

This refactoring ensures the nvmeof monitor client maintains exact frequency
timing over long periods, even when individual tick executions are delayed.

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
src/nvmeof/NVMeofGwMonitorClient.cc
src/nvmeof/NVMeofGwMonitorClient.h