clocksource: Print clocksource name when clocksource is tested unstable
PATCH 1/1 clocksource: Print clocksource name when clocksource is tested unstable
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/time/clocksource.c +2 -2
@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test:
Signature · 1 line
2.17.0
Quoted 9 lines · Yunying Sun
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
Signed-off-by Yunying Sun <[email protected]>
Good eyes!
I queued this with wordsmithing as shown below. Please let me know if I messed something up.
Thanx, Paul
------------------------------------------------------------------------
commit 72ff63e2d3f19963a4ef401e5f8c1bd16646b587
Author: Yunying Sun <[email protected]> Date: Wed Nov 16 16:22:21 2022 +0800
clocksource: Print clocksource name when clocksource is tested unstable
Some "TSC fall back to HPET" messages appear on systems having more than 2 NUMA nodes:
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading the clocksource watchdog is really doing repeated reads of "hpet" in order to check for unrelated delays. Therefore, print the name of the clocksource under test, prefixed by "wd-" and suffixed by "-wd", for example, "wd-tsc-wd".
kernel/time/clocksource.c +2 -2
@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test:
Hi Paul,
Thank you for the quick review. The commit message looks more accurate and clear after your wordsmithing.
-Yunying
-----Original Message-----
From: Paul E. McKenney <[email protected]>
Sent: Thursday, 17 November, 2022 04:31
To: Sun, Yunying <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Tang, Feng <[email protected]>
Subject: Re: [PATCH] clocksource: Print clocksource name when clocksource is tested unstable
Quoted 10 lines · Yunying Sun
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
Signed-off-by Yunying Sun <[email protected]>
Good eyes!
I queued this with wordsmithing as shown below. Please let me know if I messed something up.
Thanx, Paul
------------------------------------------------------------------------
commit 72ff63e2d3f19963a4ef401e5f8c1bd16646b587
Author: Yunying Sun <[email protected]> Date: Wed Nov 16 16:22:21 2022 +0800
clocksource: Print clocksource name when clocksource is tested unstable
Some "TSC fall back to HPET" messages appear on systems having more than 2 NUMA nodes:
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading the clocksource watchdog is really doing repeated reads of "hpet" in order to check for unrelated delays. Therefore, print the name of the clocksource under test, prefixed by "wd-" and suffixed by "-wd", for example, "wd-tsc-wd".
kernel/time/clocksource.c +2 -2
@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test:
Quoted 2 lines · Yunying Sun
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
Hi Yunying,
If the system's physical sockests number <= 2, I would suggest you to
try the patch https://lore.kernel.org/lkml/[email protected]/,
which is still under review and discussion.
Thanks,
Feng
Quoted 28 lines
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
Signed-off-by Yunying Sun <[email protected]>--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kernel/time/clocksource.c +2
-2@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test:Signature · 1 line
2.17.0
Hi Feng,
For the "tsc fall back to hpet" issue, thanks a lot for pointing me to the fix proposal patch earlier:
https://lore.kernel.org/lkml/[email protected]/ .
I shared this patch set to our customer yesterday.
Just got feedback that customer has verified the "tsc fall back to hpet" issue does not appear anymore with this patch set, after 24hrs stress test on 8 servers.
-Yunying
-----Original Message-----
From: Tang, Feng <[email protected]>
Sent: Thursday, 17 November, 2022 14:47
To: Sun, Yunying <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] clocksource: Print clocksource name when clocksource is tested unstable
Quoted 2 lines · Yunying Sun
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
Hi Yunying,
If the system's physical sockests number <= 2, I would suggest you to try the patch https://lore.kernel.org/lkml/[email protected]/,
which is still under review and discussion.
Thanks,
Feng
Quoted 29 lines
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
Signed-off-by Yunying Sun <[email protected]>--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kernel/time/clocksource.c +2
-3@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test: --2.17.0
Quoted 7 lines · Yunying
Hi Feng,
For the "tsc fall back to hpet" issue, thanks a lot for pointing me to the fix proposal patch earlier:
https://lore.kernel.org/lkml/[email protected]/ .I shared this patch set to our customer yesterday.
Just got feedback that customer has verified the "tsc fall back to hpet" issue does not appear anymore with this patch set, after 24hrs stress test on 8 servers.
Thanks for the testing! So your case is a real case that current 'nr_online_nodes' check cannot cover, which Dave concerned about.
Thanks,
Feng
Quoted 50 lines
-Yunying
-----Original Message-----
From: Tang, Feng <[email protected]>
Sent: Thursday, 17 November, 2022 14:47
To: Sun, Yunying <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] clocksource: Print clocksource name when clocksource is tested unstableQuoted 2 lines · Yunying Sun
Some "TSC fall back to HPET" cases are seen on systems that have more than 2 numa nodes. When this happens, in kernel log it has:
Hi Yunying,
If the system's physical sockests number <= 2, I would suggest you to try the patch https://lore.kernel.org/lkml/[email protected]/,
which is still under review and discussion.Thanks,
FengQuoted 29 lines
clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable
The "hpet" here is misleading since it prints only the name of watchdog, where actually it's measuring the delay of 3 reads: wd-clocksource-wd.
Signed-off-by Yunying Sun <[email protected]>--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kernel/time/clocksource.c +2
-3@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, goto skip_test; } -pr_warn ("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n" , -smp_processor_id (), watchdog->name, wd_delay, nretries); +pr_warn ("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n" , +smp_processor_id (), cs->name, wd_delay, nretries);return WD_READ_UNSTABLE ; skip_test: --2.17.0