* [Bug 959] tsc hz not matching kernel reported tcs frequency
@ 2022-03-16 12:58 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-03-16 12:58 UTC (permalink / raw)
To: dev
https://bugs.dpdk.org/show_bug.cgi?id=959
Bug ID: 959
Summary: tsc hz not matching kernel reported tcs frequency
Product: DPDK
Version: 21.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: maria.lingemark@ericsson.com
Target Milestone: ---
On some machines the dpdk value of tsc hz does not match the kernel value.
The effect of this can be observed by writing a small test program that
measures elapsed time using two different sources.
The issue has been shown by taking clock_gettime() and rte_get_tsc_cycles(),
sleep, and then fetch the time stamps again with clock_gettime() and
rte_get_tsc_cycles().
When calculating the time from the two sources we notice a difference of ~2.3
ms per second.
Example from a test run with 1 second sleep:
rte_get_tsc_hz=2400000000
clock_gettime=1000056 us, tsc_time=997708 us, diff=2348 us
Info from dmesg:
tsc: Refined TSC clocksource calibration: 2394.365 MHz
We don't see the time difference on
Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
Linux kernel 4.13.0-16-generic
but we do observe it on
Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
Linux kernel 5.4.0-100-generic
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-16 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 12:58 [Bug 959] tsc hz not matching kernel reported tcs frequency bugzilla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).