TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

TSC Frequency for All: Better Profiling and Benchmarking

36 pointsby tyomaover 5 years ago

4 comments

tyomaover 5 years ago
Hopefully something similar to this can be upstreamed into the mainline Linux kernel — ideally whatever Google is using internally since it probably works well and is battle tested.
fsfodover 5 years ago
Its disappointing that AMD didn't bother to implement the 15H CPUID leaf that Intel added years ago to get the exact CPU TSC frequency. Yet AMD cared enough to add there own instruction(RDPRU) to get the values of APERF and MPERF in user mode.
评论 #21160520 未加载
评论 #21162422 未加载
woodruffwover 5 years ago
FD: My employer&#x27;s blog.<p>I guess it shouldn&#x27;t surprise me given the number of Linux and LLVM developers present at Google, but it always blows my mind a bit to see these kinds of internal changes form the basis of correct&#x2F;sound results from tools like X-Ray.
saagarjhaover 5 years ago
&gt; Additionally, the maximum clock speed, accessible in Linux via &#x2F;sys&#x2F;devices&#x2F;system&#x2F;cpu&#x2F;cpu0&#x2F;cpufreq&#x2F;cpuinfo_max_freq, is not available in cloud-based or other virtualized environments.<p>Why? To prevent side-channel attacks?
评论 #21158902 未加载