All of lore.kernel.org
 help / color / mirror / Atom feed
* tsc_khz vs cpu_khz clarification
@ 2020-05-09 11:11 Chunyan Wang
  0 siblings, 0 replies; only message in thread
From: Chunyan Wang @ 2020-05-09 11:11 UTC (permalink / raw)
  To: linux-kernel

Hello,

I'm trying to understand exactly what the two variables tsc_khz and
cpu_khz represent. Information online seems to suggest:

tsc_khz - Is the frequency of the tsc

cpu_khz - Outputs in /proc/cpuinfo in the processor description, best
I can tell this is the P0 frequency. Some code examples also seem to
translate tsc values to real time with this, implying it is also the
frequency of the tsc.

For AMD the only information I've found states the tsc frequency will
be the P0 frequency. The system under test is an SMP one with 2x "AMD
EPYC 7542 32-Core Processor", which sees the following between 3
successive boots for these values:

boot 1:
tsc_khz 2894561
cpu_khz 2894496

boot 2:
tsc_khz 2894562
cpu_khz 2894578

boot 3:
tsc_khz 2894561
cpu_khz 2894458

I'd like to understand what these values represent given the reported
values above.

Please could you keep me cc'd in responses.

Regards,
Simon

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-09 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 11:11 tsc_khz vs cpu_khz clarification Chunyan Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.