Skip to content

Instantly share code, notes, and snippets.

@achanda
Created April 16, 2024 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achanda/2a1296fb10f518b3644cd5dcfe33dbd1 to your computer and use it in GitHub Desktop.
Save achanda/2a1296fb10f518b3644cd5dcfe33dbd1 to your computer and use it in GitHub Desktop.
root@small-ubuntu:~# turbostat --Joules cat /dev/zero > /dev/null
turbostat version 21.05.04 - Len Brown <lenb@kernel.org>
CPUID(0): GenuineIntel 0x16 CPUID levels
CPUID(1): family:model:stepping 0x6:9e:d (6:158:13) microcode 0xfa
CPUID(0x80000000): max_extended_levels: 0x80000008
CPUID(1): SSE3 MONITOR SMX EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
cpu6: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu6: MSR_IA32_FEATURE_CONTROL: 0x00020005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 284 ecx_crystal_hz: 0
TSC: 3408 MHz (24000000 Hz * 284 / 2 / 1000000)
CPUID(0x16): base_mhz: 3400 max_mhz: 5000 bus_mhz: 100
cpu6: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 3277 sec. Joule Counter Range, at 80 Watts
cpu6: MSR_PLATFORM_INFO: 0x80838f1012200
8 * 100.0 = 800.0 MHz max efficiency frequency
34 * 100.0 = 3400.0 MHz base frequency
cpu6: MSR_IA32_POWER_CTL: 0x000c005d (C1E auto-promotion: DISabled)
cpu6: MSR_TURBO_RATIO_LIMIT: 0x2e2e2f3030313132
46 * 100.0 = 4600.0 MHz max turbo 8 active cores
46 * 100.0 = 4600.0 MHz max turbo 7 active cores
47 * 100.0 = 4700.0 MHz max turbo 6 active cores
48 * 100.0 = 4800.0 MHz max turbo 5 active cores
48 * 100.0 = 4800.0 MHz max turbo 4 active cores
49 * 100.0 = 4900.0 MHz max turbo 3 active cores
49 * 100.0 = 4900.0 MHz max turbo 2 active cores
50 * 100.0 = 5000.0 MHz max turbo 1 active cores
cpu6: MSR_CONFIG_TDP_NOMINAL: 0x00000022 (base_ratio=34)
cpu6: MSR_CONFIG_TDP_LEVEL_1: 0x00000000 ()
cpu6: MSR_CONFIG_TDP_LEVEL_2: 0x00000000 ()
cpu6: MSR_CONFIG_TDP_CONTROL: 0x80000000 ( lock=1)
cpu6: MSR_TURBO_ACTIVATION_RATIO: 0x000000ff (MAX_NON_TURBO_RATIO=255 lock=0)
cpu6: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008008 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=8 (unlimited))
/dev/cpu_dma_latency: 2000000000 usec (default)
current_driver: intel_idle
current_governor: menu
current_governor_ro: menu
cpu6: POLL: CPUIDLE CORE POLL IDLE
cpu6: C1: MWAIT 0x00
cpu6: C1E: MWAIT 0x01
cpu6: C3: MWAIT 0x10
cpu6: C6: MWAIT 0x20
cpu6: C7s: MWAIT 0x33
cpu6: C8: MWAIT 0x40
cpu6: C9: MWAIT 0x50
cpu6: C10: MWAIT 0x60
cpu6: cpufreq driver: intel_pstate
cpu6: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu6: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x01082232 (high 50 guar 34 eff 8 low 1)
cpu0: MSR_HWP_REQUEST: 0x80003208 (min 8 max 50 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000004 (No-Guaranteed_Perf_Change, Excursion_Min)
cpu0: EPB: 6 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000280 (80 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x4284b000dd8280 (UNlocked)
cpu0: PKG Limit #1: ENabled (80.000000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (150.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x00641400 (100 C) (100 default - 0 offset)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x884a0800 (26 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu6: MSR_PKGC3_IRTL: 0x0000884e (valid, 79872 ns)
cpu6: MSR_PKGC6_IRTL: 0x00008876 (valid, 120832 ns)
cpu6: MSR_PKGC7_IRTL: 0x00008894 (valid, 151552 ns)
cpu6: MSR_PKGC8_IRTL: 0x000088fa (valid, 256000 ns)
cpu6: MSR_PKGC9_IRTL: 0x0000894c (valid, 339968 ns)
cpu6: MSR_PKGC10_IRTL: 0x00008bf2 (valid, 1034240 ns)
^C5.199345 sec
Core CPU Avg_MHz Busy% Bzy_MHz TSC_MHz IPC IRQ SMI POLL C1 C1E C3 C6 C7s C8 C9 C10 POLL% C1% C1E% C3% C6% C7s% C8% C9% C10% CPU%c1 CPU%c3 CPU%c6CPU%c7 CoreTmp PkgTmp Totl%C0 Any%C0 GFX%C0 CPUGFX% Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 Pkg%pc8 Pkg%pc9 Pk%pc10 SYS%LPI Pkg_J Cor_J GFX_J RAM_J PKG_% RAM_%
- - 311 6.23 4997 3408 3.32 2280 0 0 4 0 3 11 0 745 0 359 0.00 0.00 0.00 0.00 0.01 0.00 3.50 0.00 90.23 6.37 0.00 0.02 87.37 49 49 100.28 100.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 138.59 133.24 0.00 14.78 0.00 0.00
0 0 3 0.06 4879 3408 0.59 151 0 0 0 0 0 0 0 89 0 195 0.00 0.00 0.00 0.00 0.00 0.00 6.61 0.00 93.34 0.18 0.00 0.00 99.76 30 49 100.27 100.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 138.59 133.24 0.00 14.78 0.00 0.00
0 8 0 0.01 4732 3408 0.44 42 0 0 0 0 0 0 0 40 0 2 0.00 0.00 0.00 0.00 0.00 0.00 3.03 0.00 96.96 0.23
1 1 4973 99.51 4998 3408 3.33 1329 0 0 2 0 1 0 0 0 0 0 0.00 0.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.49 0.00 0.00 0.00 49
1 9 0 0.01 4936 3408 0.54 59 0 0 0 0 0 1 0 47 0 14 0.00 0.00 0.00 0.00 0.03 0.00 3.31 0.00 96.64 99.99
2 2 1 0.01 4724 3408 0.40 66 0 0 0 0 0 1 0 39 0 32 0.00 0.00 0.00 0.00 0.03 0.00 3.00 0.00 96.96 0.09 0.00 0.03 99.87 28
2 10 0 0.01 4666 3408 0.44 43 0 0 0 0 0 0 0 42 0 2 0.00 0.00 0.00 0.00 0.00 0.00 3.18 0.00 96.81 0.09
3 3 1 0.02 4798 3408 0.48 73 0 0 0 0 0 0 0 41 0 49 0.00 0.00 0.00 0.00 0.00 0.00 3.10 0.00 96.88 0.09 0.00 0.00 99.90 30
3 11 0 0.01 4664 3408 0.43 44 0 0 0 0 0 0 0 42 0 2 0.00 0.00 0.00 0.00 0.00 0.00 3.10 0.00 96.89 0.10
4 4 0 0.01 4669 3408 0.44 43 0 0 0 0 0 0 0 41 0 3 0.00 0.00 0.00 0.00 0.00 0.00 3.10 0.00 96.90 0.06 0.00 0.00 99.93 28
4 12 0 0.01 4671 3408 0.43 43 0 0 0 0 0 0 0 41 0 3 0.00 0.00 0.00 0.00 0.00 0.00 3.09 0.00 96.90 0.06
5 5 0 0.01 4727 3408 0.39 55 0 0 0 0 1 2 0 43 0 9 0.00 0.00 0.00 0.01 0.02 0.00 3.23 0.00 96.73 0.10 0.01 0.03 99.85 28
5 13 0 0.01 4739 3408 0.40 70 0 0 1 0 0 1 0 66 0 5 0.00 0.01 0.00 0.00 0.01 0.00 5.07 0.00 94.90 0.10
6 6 1 0.01 4771 3408 0.41 110 0 0 1 0 0 4 0 95 0 11 0.00 0.01 0.00 0.00 0.11 0.00 7.07 0.00 92.80 0.12 0.01 0.10 99.76 28
6 14 0 0.01 4687 3408 0.44 43 0 0 0 0 1 0 0 40 0 2 0.00 0.00 0.00 0.02 0.00 0.00 3.02 0.00 96.95 0.13
7 7 1 0.02 4814 3408 0.19 68 0 0 0 0 0 1 0 39 0 28 0.00 0.00 0.00 0.00 0.01 0.00 3.00 0.00 96.97 0.08 0.00 0.01 99.89 27
7 15 1 0.01 4766 3408 1.08 41 0 0 0 0 0 1 0 40 0 2 0.00 0.00 0.00 0.00 0.01 0.00 3.02 0.00 96.95 0.09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment