← 返回命令列表

Linux command

turbostat 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Display

sudo turbostat

Display

sudo turbostat -i [n_seconds]

Display

sudo turbostat --quiet

Display

sudo turbostat --quiet -i 1 --cpu 0-[CPU_count] --show "PkgWatt","Busy%","Core","CoreTmp"

说明

turbostat reports processor topology, frequency, temperature, power consumption, and idle statistics for Intel and AMD processors. It reads hardware performance counters and model-specific registers. The tool is valuable for understanding CPU behavior under load, identifying thermal throttling, and analyzing power consumption. It shows per-core and per-package statistics.

参数

-i, --interval _seconds_
Sampling interval (default: 5 seconds)
--quiet
Don't print system configuration header
--cpu _list_
Specify which CPUs to monitor
--show _columns_
Select columns to display
--hide _columns_
Hide specified columns
--out _file_
Write output to file
--debug
Enable debug output

FAQ

What is the turbostat command used for?

turbostat reports processor topology, frequency, temperature, power consumption, and idle statistics for Intel and AMD processors. It reads hardware performance counters and model-specific registers. The tool is valuable for understanding CPU behavior under load, identifying thermal throttling, and analyzing power consumption. It shows per-core and per-package statistics.

How do I run a basic turbostat example?

Run `sudo turbostat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --interval _seconds_ do in turbostat?

Sampling interval (default: 5 seconds)