]> Git Repo - linux.git/commitdiff
clocksource: Reduce the default clocksource_watchdog() retries to 2
authorWaiman Long <[email protected]>
Thu, 18 Nov 2021 19:14:37 +0000 (14:14 -0500)
committerPaul E. McKenney <[email protected]>
Wed, 1 Dec 2021 01:22:29 +0000 (17:22 -0800)
With the previous patch, there is an extra watchdog read in each retry.
Now the total number of clocksource reads is increased to 4 per iteration.
In order to avoid increasing the clock skew check overhead, the default
maximum number of retries is reduced from 3 to 2 to maintain the same 12
clocksource reads in the worst case.

Suggested-by: Paul E. McKenney <[email protected]>
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Documentation/admin-guide/kernel-parameters.txt
kernel/time/clocksource.c

index 9725c546a0d46db7eda7b138f34511af5558d453..3ea934b034f748cebb9d9dba4d58e6cfb17acfb9 100644 (file)
        clocksource.max_cswd_read_retries= [KNL]
                        Number of clocksource_watchdog() retries due to
                        external delays before the clock will be marked
-                       unstable.  Defaults to three retries, that is,
-                       four attempts to read the clock under test.
+                       unstable.  Defaults to two retries, that is,
+                       three attempts to read the clock under test.
 
        clocksource.verify_n_cpus= [KNL]
                        Limit the number of CPUs checked for clocksources
index bcad1a1e5dcf1d77e6182f81305cfa3badaa815e..b7e52a64294849d20ef8ac8e539f5029d67d43ef 100644 (file)
@@ -199,7 +199,7 @@ void clocksource_mark_unstable(struct clocksource *cs)
        spin_unlock_irqrestore(&watchdog_lock, flags);
 }
 
-ulong max_cswd_read_retries = 3;
+ulong max_cswd_read_retries = 2;
 module_param(max_cswd_read_retries, ulong, 0644);
 EXPORT_SYMBOL_GPL(max_cswd_read_retries);
 static int verify_n_cpus = 8;
This page took 0.085144 seconds and 4 git commands to generate.