Skip to content

Commit d79bc8f

Browse files
committed
Merge tag 'turbostat-2025.02.02' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pull turbostat updates from Len Brown: - Fix regression that affinitized forked child in one-shot mode. - Harden one-shot mode against hotplug online/offline - Enable RAPL SysWatt column by default - Add initial PTL, CWF platform support - Harden initial PMT code in response to early use - Enable first built-in PMT counter: CWF c1e residency - Refuse to run on unsupported platforms without --force, to encourage updating to a version that supports the system, and to avoid no-so-useful measurement results * tag 'turbostat-2025.02.02' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (25 commits) tools/power turbostat: version 2025.02.02 tools/power turbostat: Add CPU%c1e BIC for CWF tools/power turbostat: Harden one-shot mode against cpu offline tools/power turbostat: Fix forked child affinity regression tools/power turbostat: Add tcore clock PMT type tools/power turbostat: version 2025.01.14 tools/power turbostat: Allow adding PMT counters directly by sysfs path tools/power turbostat: Allow mapping multiple PMT files with the same GUID tools/power turbostat: Add PMT directory iterator helper tools/power turbostat: Extend PMT identification with a sequence number tools/power turbostat: Return default value for unmapped PMT domains tools/power turbostat: Check for non-zero value when MSR probing tools/power turbostat: Enhance turbostat self-performance visibility tools/power turbostat: Add fixed RAPL PSYS divisor for SPR tools/power turbostat: Fix PMT mmaped file size rounding tools/power turbostat: Remove SysWatt from DISABLED_BY_DEFAULT tools/power turbostat: Add an NMI column tools/power turbostat: add Busy% to "show idle" tools/power turbostat: Introduce --force parameter tools/power turbostat: Improve --help output ...
2 parents 5d82ca7 + 2c4627c commit d79bc8f

File tree

2 files changed

+575
-109
lines changed

2 files changed

+575
-109
lines changed

tools/power/x86/turbostat/turbostat.8

+29-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ displays the statistics gathered since it was forked.
136136
The system configuration dump (if --quiet is not used) is followed by statistics. The first row of the statistics labels the content of each column (below). The second row of statistics is the system summary line. The system summary line has a '-' in the columns for the Package, Core, and CPU. The contents of the system summary line depends on the type of column. Columns that count items (eg. IRQ) show the sum across all CPUs in the system. Columns that show a percentage show the average across all CPUs in the system. Columns that dump raw MSR values simply show 0 in the summary. After the system summary row, each row describes a specific Package/Core/CPU. Note that if the --cpu parameter is used to limit which specific CPUs are displayed, turbostat will still collect statistics for all CPUs in the system and will still show the system summary for all CPUs in the system.
137137
.SH COLUMN DESCRIPTIONS
138138
.PP
139-
\fBusec\fP For each CPU, the number of microseconds elapsed during counter collection, including thread migration -- if any. This counter is disabled by default, and is enabled with "--enable usec", or --debug. On the summary row, usec refers to the total elapsed time to collect the counters on all cpus.
139+
\fBusec\fP For each CPU, the number of microseconds elapsed during counter collection, including thread migration -- if any. This counter is disabled by default, and is enabled with "--enable usec", or --debug. On the summary row, usec refers to the total elapsed time to snapshot the procfs/sysfs and collect the counters on all cpus.
140140
.PP
141141
\fBTime_Of_Day_Seconds\fP For each CPU, the gettimeofday(2) value (seconds.subsec since Epoch) when the counters ending the measurement interval were collected. This column is disabled by default, and can be enabled with "--enable Time_Of_Day_Seconds" or "--debug". On the summary row, Time_Of_Day_Seconds refers to the timestamp following collection of counters on the last CPU.
142142
.PP
@@ -190,7 +190,7 @@ The system configuration dump (if --quiet is not used) is followed by statistics
190190
.PP
191191
\fBRAMWatt\fP Watts consumed by the DRAM DIMMS -- available only on server processors.
192192
.PP
193-
\fBSysWatt\fP Watts consumed by the whole platform (RAPL PSYS). Disabled by default. Enable with --enable SysWatt.
193+
\fBSysWatt\fP Watts consumed by the whole platform (RAPL PSYS).
194194
.PP
195195
\fBPKG_%\fP percent of the interval that RAPL throttling was active on the Package. Note that the system summary is the sum of the package throttling time, and thus may be higher than 100% on a multi-package system. Note that the meaning of this field is model specific. For example, some hardware increments this counter when RAPL responds to thermal limits, but does not increment this counter when RAPL responds to power limits. Comparing PkgWatt and PkgTmp to system limits is necessary.
196196
.PP
@@ -516,14 +516,40 @@ that they count at TSC rate, which is true on all processors tested to date.
516516
Volume 3B: System Programming Guide"
517517
https://www.intel.com/products/processor/manuals/
518518

519+
.SH RUN THE LATEST VERSION
520+
If turbostat complains that it doesn't recognize your processor,
521+
please try the latest version.
522+
523+
The latest version of turbostat does not require the latest version of the Linux kernel.
524+
However, some features, such as perf(1) counters, do require kernel support.
525+
526+
The latest turbostat release is available in the upstream Linux Kernel source tree.
527+
eg. "git pull https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
528+
and run make in tools/power/x86/turbostat/.
529+
530+
n.b. "make install" will update your system manually, but a distro update may subsequently downgrade your turbostat to an older version.
531+
For this reason, manually installing to /usr/local/bin may be what you want.
532+
533+
Note that turbostat/Makefile has a "make snapshot" target, which will create a tar file
534+
that can build without a local kernel source tree.
535+
536+
If the upstream version isn't new enough, the development tree can be found here:
537+
"git pull https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git turbostat"
538+
539+
If the development tree doesn't work, please contact the author via chat,
540+
or via email with the word "turbostat" on the Subject line.
541+
519542
.SH FILES
520543
.ta
521544
.nf
545+
/sys/bus/event_source/devices/
522546
/dev/cpu/*/msr
547+
/sys/class/intel_pmt/
548+
/sys/devices/system/cpu/
523549
.fi
524550

525551
.SH "SEE ALSO"
526-
msr(4), vmstat(8)
552+
perf(1), msr(4), vmstat(8)
527553
.PP
528554
.SH AUTHOR
529555
.nf

0 commit comments

Comments
 (0)