Giter Site home page Giter Site logo

bengras / tlbkit Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 99 KB

some tlb experimentation code: calculate L1, L2 miss penalties and show cross-HT interference.

Makefile 1.08% C 29.97% Python 66.71% Shell 2.24%
tlb microarchitecture skylake sandybridge

tlbkit's Introduction

Demo

Skylake demo pic

Layout

c: C code py: python code demo-crossthread: examples of crossthread interference output demo-latencies: examples of latency measurement output results-crossthread: output dir for crossthread code results-latencies: output dir for latency measurement code

Setup

To run:

  1. Have perf and a compiler installed

  2. build the C program, set up python env, perf privileges for unprivileged users:

make -C c
rm -rf env
virtualenv -p python2.7 env
./env/bin/pip install -r requirements.txt
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid

Inter-hyperthread tlb interference shown using performance counters

under some tlb size and structure assumptions (works on skylake), probe cross-thread tlb interference

./env/bin/python py/crossthread.py

on skylake, the results should look like in the demo/ dir.

Calculate TLB miss latency

./env/bin/python py/tlb-latency.py

on skylake, the results should look like in demo/skylake-latencies.txt.

Enjoy!

Ben

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.