]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeof: refactor timer for exact frequency timing with drift correction wip-baum-20251021-03
authorAlexander Indenbaum <aindenba@redhat.com>
Mon, 20 Oct 2025 09:00:04 +0000 (12:00 +0300)
committerAlexander Indenbaum <aindenba@redhat.com>
Tue, 21 Oct 2025 11:02:27 +0000 (14:02 +0300)
commitccd20243e4d698c393cb7623874e1fa6bf142faa
tree582ff72438d290351db67c5201be9483ba0dca12
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