GithubHelp home page GithubHelp logo

yasulab / hackbench-on-xv6 Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 1.31 MB

Xv6 is a pretty good material for OS learners, but one thing I am concerned is that how I benchmark xv6 after I developed or changed it. For example, xv6 has really simple scheduling algorithm that we easily understand, so that it may be a good idea to develop scheduling algorithm to improve xv6 performance. However, one problem I met was how should I benchmark it? Therefore, I have modified 'hackbench.c', one of the simple benchmarking program, and now it can run on xv6. So, if you need to benchmark your implementations like me, you can download and measure your system on xv6.

Home Page: http://yasulab.blogspot.com/2010/05/hackbench-on-xv6.html

License: Other

D 0.01% Python 0.21% Perl 0.86% Assembly 9.53% C 89.39%

hackbench-on-xv6's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zkromerucd

hackbench-on-xv6's Issues

Synchronization Problem

Hackbench.c synchronizes sender and receiver processes by using 'sys/poll.h', but of cource xv6 does not have such a file, so we must implement synchronizing mechanism. One idea to do that, which comes from h.mitake, is to synchronize those processes by using 'pipe'. Specifically, first, receiver processes tries to read the pipes to senders and then it will be blocked. Then, sender processes close the pipes. As a result, receiver processes would start to run, and hackbench program will correctly benchmark performance.

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.