GithubHelp home page GithubHelp logo

msr-cloud-tools's Introduction

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
CPU MHz     : 2500
Turbo MHz   : 2900 (10 active)
Turbo Ratio : 116% (10 active)
CPU 0 summary every 5 seconds...

TIME       C0_MCYC      C0_ACYC        UTIL  RATIO    MHz
17:28:03   4226511637   4902783333      33%   116%   2900
17:28:08   4397892841   5101713941      35%   116%   2900
17:28:13   4550831380   5279462058      36%   116%   2900
17:28:18   4680962051   5429605341      37%   115%   2899
17:28:23   4782942155   5547813280      38%   115%   2899
[...]

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

msr-cloud-tools's People

Contributors

brendangregg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.