lkml.org 
[lkml]   [2021]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] clocksource: don't run watchdog forever
On Tue, Mar 02, 2021 at 10:54:24AM +0800, Feng Tang wrote:
> clocksource watchdog runs every 500ms, which creates some OS noise.
> As the clocksource wreckage (especially for those that has per-cpu
> reading hook) usually happens shortly after CPU is brought up or
> after system resumes from sleep state, so add a time limit for
> clocksource watchdog to only run for a period of time, and make
> sure it run at least twice for each CPU.
>
> Regarding performance data, there is no improvement data with the
> micro-benchmarks we have like hackbench/netperf/fio/will-it-scale
> etc. But it obviously reduces periodic timer interrupts, and may
> help in following cases:
> * When some CPUs are isolated to only run scientific or high
> performance computing tasks on a NOHZ_FULL kernel, where there
> is almost no interrupts, this could make it more quiet
> * On a cluster which runs a lot of systems in parallel with
> barriers there are always enough systems which run the watchdog
> and make everyone else wait
>
> Signed-off-by: Feng Tang <feng.tang@intel.com>

Urgh.. so this hopes and prays that the TSC wrackage happens in the
first 10 minutes after boot.

Given the previous patch, the watchdog wouldn't be running at all on
modern machines, so why wreck it for the old machines where it's
actually needed?

\
 
 \ /
  Last update: 2021-03-02 16:40    [W:1.756 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site