cpufreq-aperf(1)

✨ cpufreq-aperf(1) ✨

okay bestie, welcome to cpufreq-aperf β€” it's a lil tool from the cpufrequtils crew and it does exactly one iconic thing: it figures out your CPU's average frequency over a time period. that's it. that's the whole vibe. πŸ’…


🌸 NAME 🌸

cpufreq-aperf β€” calculates the average frequency over a time period ✨


πŸ¦‹ SYNTAX πŸ¦‹

cpufreq-aperf [options]

πŸ’– DESCRIPTION πŸ’–

so on the latest processors there are these two MSR registers, and they are the moment, fr fr:

  • MPERF β€” this one increases with the maximum (P0) frequency while in C0
  • APERF β€” this one increases with the current/actual frequency while in C0

and from that info? the average frequency over a time period gets calculated. that's literally what this tool does. no cap. πŸŽ€

a nice lil falloff feature beside the average frequency is the time a processor core remained in C0 (working state) or any CX (sleep state) processor sleep state during the measured time period. and the way we know that is iconic: MPERF only increases in C0 state. so if MPERF isn't moving, bestie, that core is napping. 😴✨


πŸŽ€ OPTIONS πŸŽ€

  • -c --cpu <CPU> β€” the <CPU> core to measure. default: all cores πŸ‘‘
  • -i --interval <seconds> β€” the refresh rate. default: 1 second ⏱️
  • -o --once β€” dips after one interval. one and done, periodt. πŸ’…
  • -h --help β€” prints all the available options so you can read them yourself 🫢

⭐ REMARKS ⭐

bestie, heads up: the msr driver must be loaded for this command to work. no driver, no vibes. 😭

πŸ’œ AUTHORS πŸ’œ

Thomas Renninger <trenn@suse.de>


🌈 SEE ALSO 🌈

cpufreq-set(1), cpufreq-info(1)


mwah πŸ’‹ this page was brought to you by Mattia Dongili, version 0.1 of cpufreq-aperf(1) β€” go check your cores, they're doing so good, slay πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from