Giter Club home page Giter Club logo

linux-weight-round-robin-scheduler's Introduction

Test Program

Test 1

  • test/gen_cpu_proc.c
  • test/gen_io_proc.c

These two tests fork N children to test for both CPU-bound and I/O-bound processes. We ran the gen_io_proc test first, and then ran gen_cpu_proc immediately afterwards. Based on the wrr_info outputted (especially when we set CHILD_PROC to a large number), we can see that load balancing works correctly, and CPU-bound & IO-bound processes can run concurrently.

Test 2

  • test/fork_many.c
  • test/weight_test.c

To test the impact that changing task weights had, we created two tests--fork_many and weight_test.

fork_many spawns 100 child processes that find the factors of a large number, while weight_test just finds the factors of a large number.

We ran fork_many first, and then timed weight_test with different weights passed in.

In our tests, with weight 1, weight_test finished after 9.125 seconds. However, when we changed the weight to 100, weight_test finished in 6.857 seconds. Based on this, we see that assigning a higher weight allows that process to finish more quickly because it has a large timeslice and is given more CPU time.

linux-weight-round-robin-scheduler's People

Contributors

kuroiiwa avatar matthewachan avatar zw2497 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.