GithubHelp home page GithubHelp logo

c2clat's Introduction

c2clat

A tool to measure CPU core to core latency (inter-core latency).

Build:

g++ -O3 -DNDEBUG c2clat.cpp -o c2clat -pthread

Example usage:

$ ./c2clat 
 CPU    0    1    2    3    4    5    6    7
   0    0   92   66   62   16   56   54   53
   1   92    0   50   54   53   14   49   50
   2   66   50    0   48   51   49   13   48
   3   62   54   48    0   53   50   48   13
   4   16   53   51   53    0   53   51   53
   5   56   14   49   50   53    0   49   50
   6   54   49   13   48   51   49    0   48
   7   53   50   48   13   53   50   48    0

Create plot using gnuplot:

c2clat -p | gnuplot -p

Plot of inter-core latency

If you want to run on a subset of cores use taskset:

$ taskset -c 10-11 ./c2clat
 CPU   10   11
  10    0   52
  11   52    0

If you want to label the heatmap plot replace the plot command with:

plot '$data' matrix rowheaders columnheaders using 2:1:3 with image, \
     '$data' matrix rowheaders columnheaders using 2:1:(sprintf("%g",$3)) with labels

c2clat's People

Contributors

wtarreau avatar rigtorp avatar

Watchers

James Cloos 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.