On Wed, Nov 10, 2021 at 05:17:30PM -0500, Waiman Long wrote:
It was found that when an x86 system was being stressed by runningThe ability to control the fine-grained threshold seems useful, but is
various different benchmark suites, the clocksource watchdog might
occasionally mark TSC as unstable and fall back to hpet which will
have a signficant impact on system performance.
The current watchdog clocksource skew threshold of 50us is found to be
insufficient. So it is changed back to 100us before commit 2e27e793e280
("clocksource: Reduce clocksource-skew threshold") in patch 1. Patch 2
adds a Kconfig option to allow kernel builder to control the actual
threshold to be used.
Waiman Long (2):
clocksource: Avoid accidental unstable marking of clocksources
clocksource: Add a Kconfig option for WATCHDOG_MAX_SKEW
the TSC still marked unstable when this commit from -rcu is applied?
It has passed significant testing on other workloads.
2a43fb0479aa ("clocksource: Forgive repeated long-latency watchdog clocksource reads")
If the patch below takes care of your situation, my thought is to
also take your second patch, which would allow people to set the
cutoff more loosely or more tightly, as their situation dictates.
Thoughts?