LinuxCommandLibrary

cpufreq-aperf

TLDR

Start calculating for all CPUs with 1 second interval

$ sudo cpufreq-aperf
copy
Calculate for specific CPU
$ sudo cpufreq-aperf -c [1]
copy
Set refresh interval to 3 seconds
$ sudo cpufreq-aperf -i [3]
copy
Calculate only once
$ sudo cpufreq-aperf -o
copy

SYNOPSIS

cpufreq-aperf [options]

DESCRIPTION

cpufreq-aperf calculates the average CPU frequency over a time period using APERF/MPERF MSR registers. This provides actual operating frequency rather than the requested frequency.
Useful for verifying CPU frequency scaling and turbo boost behavior.

PARAMETERS

-c, --cpu cpu

Specific CPU to monitor
-i, --interval seconds
Refresh interval in seconds
-o, --once
Calculate once and exit

CAVEATS

Requires root privileges. Only works on CPUs that support APERF/MPERF counters (Intel and AMD processors). Part of cpufrequtils.

SEE ALSO

Copied to clipboard