]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeof: refactor timer for exact frequency timing with drift correction wip-baum-20251020-04
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 17:30:08 +0000 (20:30 +0300)
commit9a6fd52d130821852cab4cbf71d5951df0aab9a5
treea0c04527e62db1e77ad8adb19e1bb09f979099f1
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