Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Timestamp Counter Frequency under Linux

25 views
Skip to first unread message

Bonita Montero

unread,
Jan 25, 2023, 11:43:16 AM1/25/23
to
Is there a fixed point in the /proc or /sys filesystem where I can
get the frequency of the x86 timestamp counter ?

Scott Lurndal

unread,
Jan 25, 2023, 11:58:17 AM1/25/23
to
Bonita Montero <Bonita....@gmail.com> writes:
>Is there a fixed point in the /proc or /sys filesystem where I can
>get the frequency of the x86 timestamp counter ?

Searching google would be quicker than waiting for someone
find it for you.

https://stackoverflow.com/questions/24392392/getting-tsc-frequency-from-proc-cpuinfo

Bonita Montero

unread,
Jan 25, 2023, 12:13:26 PM1/25/23
to
I already read that posting but no one gave a proper answer there.


Ralf Fassel

unread,
Jan 26, 2023, 11:29:25 AM1/26/23
to
* Bonita Montero <Bonita....@gmail.com>
| Is there a fixed point in the /proc or /sys filesystem where I can
| get the frequency of the x86 timestamp counter ?

https://blog.trailofbits.com/2019/10/03/tsc-frequency-for-all-better-profiling-and-benchmarking/
https://github.com/trailofbits/tsc_freq_khz

No idea how good/bad this is...
R'
0 new messages