Code Monkey home page Code Monkey logo

bcc-bioslow's Introduction

BCC Block I/O slow request logging

A python script using BPF to log I/O latency.

This tool fits in the collection of bcc tools where some script to measure I/O requests already exist, however bioslow lets you specify a threshold and logs all I/O requests which take longer than that.

usage: bioslow [-h] [-t THRESHOLD] [-l LOGFILE] [-u {us,ms,s}]

Log slow I/O operations over a given threshold

optional arguments:
  -h, --help            show this help message and exit
  -t THRESHOLD, --threshold THRESHOLD
                        log requests which took longer than this (default: 1µs)
  -l LOGFILE, --logfile LOGFILE
                        log to a given file instead of stdout
  -u {us,ms,s}, --unit {us,ms,s}
                        unit of threshold and reported times. Can be 'us', 'ms' or 's'

examples:
    ./bioslow                    # print latency of I/O operations
    ./bioslow -t 10              # print I/O operations longer than 10us
    ./bioslow -t 100 -u ms       # print I/O operations longer than 100ms
    ./bioslow -l foo.log         # log to a file instread of stdout

bcc-bioslow's People

Contributors

benibr avatar

Stargazers

Alexander Couzens avatar Jonas Heinrich 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.