* Measuring core frequency with dpdk
@ 2023-04-10 14:48 Antonio Di Bacco
2023-04-10 16:12 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Di Bacco @ 2023-04-10 14:48 UTC (permalink / raw)
To: users
Is it possible to measure the core frequency using a DPDK api? Not the
maximum or nominal frequency but the actual number of instruction
cycles per second.
Best regards,
Anna
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Measuring core frequency with dpdk
2023-04-10 14:48 Measuring core frequency with dpdk Antonio Di Bacco
@ 2023-04-10 16:12 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-04-10 16:12 UTC (permalink / raw)
To: Antonio Di Bacco; +Cc: users
On Mon, 10 Apr 2023 16:48:14 +0200
Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:
> Is it possible to measure the core frequency using a DPDK api? Not the
> maximum or nominal frequency but the actual number of instruction
> cycles per second.
>
> Best regards,
> Anna
The Time Stamp Counter https://en.wikipedia.org/wiki/Time_Stamp_Counter
gets incremented at the CPU clock rate. DPDK API to read the TSC
clock rate is rte_get_tsc_hz().
Internally, the DPDK determines the clock rate either by using
architecture specific information if available or simple heuristic
of number of ticks by doing a sleep(). See lib/eal/common/eal_common_timer.c
for the details.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-10 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 14:48 Measuring core frequency with dpdk Antonio Di Bacco
2023-04-10 16:12 ` Stephen Hemminger
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).