To print cpu speed, run: $ sudo dmidecode -t processor | grep "Speed" Max Speed: 5200 MHz Current Speed: 2666 MHz 8. Total system load: 0.06 Load optimal, suggesting to set turbo boost: offĬurrently turbo boost is: off - "auto-cpufreq" refresh in: 5^Cĭmidecode is a command used in Linux to gives detailed information about the system’s hardware components such as Processor, DIMMs, BIOS, etc in a human-readable format. Suggesting use of "powersave" governor Total CPU usage: 1.5 % Linux kernel: 4.4.0-21-generic Procesor: Intel(R) Core(TM) i3 CPU M 330 2.13GHzĭriver: acpi-cpufreq - Current CPU states - CPU max frequency: 2133 MHzĬPU min frequency: 933 MHz Usage Temperature FrequencyĬPU0: 2.0% nan ☌ 933 MHz CPU1: 0.0% nan ☌ 1599 MHz CPU2: 1.0% nan ☌ 933 MHz CPU3: 0.0% nan ☌ 933 MHz - CPU frequency scaling - Battery is: discharging Currently using: ondemand governor $ sudo auto-cpufreq -monitor Linux distro: UNKNOWN distro UNKNOWN version It actively monitors the laptop’s battery state, CPU usage, and system load for CPU speed and power optimization. Using auto-cpufreqĪuto-cpufreq is a modern tool to automatically optimize CPU speed & power on the Linux platform. $ sudo hwinfo -cpuĠ1: None 00.0: 10103 CPU Unique ID: rdCR.j8NaKXDZtZ6 Hardware Class: cpu Arch: X86-64 Vendor: "GenuineIntel" Model: 6.37.2 "Intel(R) Core(TM) i3 CPU M 330 2.13GHz" Clock: 2125 MHz BogoMips: 4255.99 6. The following snapshot shows the output of the above command. Run the following command to get CPU speed: Hwinfo command is used in Linux to print detailed information about each hardware device. True Frequency (without accounting Turbo) 2128 MHz 5.
Linux's inbuilt cpu_khz code emulated now
To guess correctly try estimating via tsc Run ‘sudo i7z’ command to gives the following output: Cpu speed from cpuinfo 2128.00MhzĬpuinfo might be wrong if cpufreq is enabled. The i7z is a dedicated tool for intel i3, i5, and i7 based CPUs to display processor states. The /proc/cpuinfo system file gives the individual speed for each CPU Core.system.
We can filter Dmesg output using grep command, to find cpu speed: $ sudo dmesg | grep MHz Model name: AMD EPYC 7601 32-Core Processorĭmesg is a command used in Linux to display messages from the kernel ring buffer and dumped to /var/log/messages. Run lscpu command and the ‘CPU MHz’ field shows the CPU speed: $ sudo lscpu This command is a part of the util-linux package. Lscpu is a command used in Linux to display information about the CPU architecture.