• Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    Shell
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MSR Cloud Tools

MSR Cloud Tools

Some Model Specific Register (MSR) tools for Xen guests (eg, AWS EC2).

Prereqs

So far only written for Intel(R) Xeon(R) CPU E5-2670 v2s (Ivy Bridge).

Tested on Ubuntu Trusty.

# sudo apt-get install msr-tools
# sudo modprobe msr

Contents

  • showboost: show the real CPU clock rate to understand the current level of turbo boost.
  • cputemp: show per-CPU temperatures.
  • cpuhot: show per-CPU temperature throttle flags (from IA32_THERM_STATUS 15:0), for evidence of thermal throttling.

Screenshots

Measure the actual clock rate for CPU 0:

# ./showboost
Base CPU MHz : 3000
Set CPU MHz  : 3000
Turbo MHz(s) : 3400 3500
Turbo Ratios : 113% 116%
CPU 0 summary every 1 seconds...

TIME       C0_MCYC      C0_ACYC        UTIL  RATIO    MHz
21:41:43   3021819807   3521745975     100%   116%   3496
21:41:44   3021682653   3521564103     100%   116%   3496
21:41:45   3021389796   3521576679     100%   116%   3496
21:41:46   3021685725   3521635645     100%   116%   3496
21:41:47   3021297135   3521362183     100%   116%   3496
[...]

Show average CPU utilization, and per-CPU temperatures, every second:

# ./cputemp -u 1
AvgUtil CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 CPU8 CPU9 CPU10 CPU11 CPU12 CPU13 CPU14 CPU15 CPU16
56 77 77 77 73 76 78 77 72 77 76 76 74 75 79 77 73
57 77 76 77 75 75 79 76 72 77 76 77 74 76 78 77 73
57 77 76 77 74 76 78 76 73 77 77 77 73 76 78 77 72
57 77 76 77 73 76 78 77 73 77 76 77 74 76 79 77 73
57 77 77 77 73 76 78 77 72 77 76 77 74 76 78 75 72
57 77 77 77 73 76 79 76 73 77 76 77 73 76 79 76 73
58 77 76 77 73 76 78 77 72 77 77 77 74 77 78 77 73
[...]

Check that no CPU thermal throttled flags have been set:

# ./cpuhot
- CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 CPU8 CPU9 CPU10 CPU11 CPU12 CPU13 CPU14 CPU15 CPU16
PROCHOT 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95
Celsius 77 75 76 73 76 77 75 72 76 72 75 77 76 72 76 75
Flags 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

More Repositories

1

FlameGraph

Stack trace visualizer
Perl
16,893
star
2

perf-tools

Performance analysis tools based on Linux perf_events (aka perf) and ftrace
Shell
9,533
star
3

bpf-perf-tools-book

Official repository for the BPF Performance Tools book
Python
1,621
star
4

HeatMap

Heat map generation tools
Perl
305
star
5

pmc-cloud-tools

PMC (Performance Monitoring Counter) tools for the cloud
Shell
233
star
6

Chaosreader

An any-snarf program that processes application protocols (HTTP/FTP/...) from tcpdump or snoop files and stores session and file data
216
star
7

dtrace-cloud-tools

Some DTrace tools written for the SmartOS/SmartDataCenter cloud (illumos-based)
D
202
star
8

wss

Working Set Size tools
C
200
star
9

systemtap-lwtools

SystemTap Lightweight Tools
182
star
10

bpf-perf-workshop

C
179
star
11

DTrace-book-scripts

Scripts from "DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X, and FreeBSD", by Brendan Gregg and Jim Mauro, Prentice Hall, 2011.
167
star
12

BPF-tools

Performance Tools using Linux eBPF
C
118
star
13

perf-labs

Performance analysis labs
C
89
star
14

DTrace-tools

DTrace tools for FreeBSD
DTrace
69
star
15

PerfModels

Performance Scalability Models
R
67
star
16

Misc

Misc
Shell
65
star
17

Dump2PNG

Visualize file data as a PNG
C
40
star
18

GuessingGame

Guessing game written in many programming languages
Batchfile
33
star
19

proc-profiler

Linux /proc/PID/stack profiler
Perl
32
star
20

bpf-typewriter

BPF noisy typewriter (bpftrace)
23
star
21

p1bench

Perturbation Benchmark
C
20
star
22

DTraceToolkit

A collection of useful, tested and documented DTrace scripts
16
star
23

FlameScope

coming soon
Perl
13
star
24

skid-testing

Processor PMC sample skid testing
C
7
star
25

wrmsrbench

WRMSR micro benchmark
C
7
star
26

Test

testing github
JavaScript
3
star
27

brendangregg.github.io

HTML
3
star