Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpdk: replace TSC clock with GetTime (gettimeofday) function v2 #11409

Closed
wants to merge 1 commit into from

Commits on Jul 3, 2024

  1. dpdk: replace TSC clock with GetTime (gettimeofday) function

    Getting clock through Time Stamp Counter (TSC) can be precise and fast,
    however only for a short duration of time.
    The implementation across CPUs seems to vary. The original idea is to
    increment the counter with every tick. Then dividing the delta of CPU ticks
    by the CPU frequency can return the time that passed.
    However, the CPU clock/frequency can change over time, resulting in uneven
    incrementation of TSC. On some CPUs this is handled by extra logic.
    As a result, obtaining time through this method might drift from the real
    time.
    
    This commit therefore substitues TSC time retrieval by the standard system
    call wrapped in GetTime function - on Linux it is gettimeofday.
    
    Ticket: 7115
    Lukas Sismis authored and lukashino committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    1ac535d View commit details
    Browse the repository at this point in the history