Giter Club home page Giter Club logo

fsop's Introduction

#In Situ File Access Profiling

Goal

The goal for this tool is to track and vistualize file operations in a multi-threaded environment

Current Progress

I achieved this using strace and tested this using sysbench. By parsing the output I can visualize the file operations.

  • Using sysbench: An example command for running sysbench is: sysbench --test=fileio --file-total-size=1MB --file-test-mode=rndwr --max-time=2 --max-requests=0 --file-block-size=4K --file-num=64 --num-threads=6 run I also tried using fio, but I found sysbench is a better tool in producing file operations.

  • Running Strace: An example for running strace with time is: strace -T -o thread.txt sysbench --test=fileio --file-total-size=1MB --file-test-mode=rndwr --max-time=5 --max-requests=0 --file-block-size=4K --file-num=4 --num-threads=3 run The output file contains the information for all operations. The way I approach it is searching for open system call, and record all followings file operations (ie, read/write)with the same file descriptor number until close on that file descriptor is called.

Problem need to solve

The problem with this approach is that strace contains large operation overhead.

Next step:

fix the bugs to recursively print the directory path so that we can vistualize it

fsop's People

Contributors

yangyao2 avatar samuelliu805 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.