[dpdk-dev] [PATCH] eal: roundup tsc frequency when estimating it

Stephen Hemminger stephen at networkplumber.org
Thu Nov 29 22:21:52 CET 2018


On Thu, 29 Nov 2018 08:32:03 +0000
Pavan Nikhilesh <pbhagavatula at caviumnetworks.com> wrote:

> When estimating tsc frequency using sleep/gettime round it up to the
> nearest multiple of 10Mhz for more accuracy.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>

Rounding reduces accuracy.

Why is this code being used?  Shouldn't get_tsc_freq_arch return a
correct value?

How well does the rdmsr() logic work in VM?
It looks like Hyper-V has special MSR's for TSC frequency determination.


More information about the dev mailing list