Coder Social home page Coder Social logo

rafaelandrade74 / lookbusy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bugwhine/lookbusy

0.0 0.0 0.0 188 KB

http://www.devin.com/lookbusy/

License: GNU General Public License v2.0

Shell 7.83% C 6.22% Makefile 4.47% HTML 0.40% M4 0.16% Roff 80.92%

lookbusy's Introduction

lookbusy 1.3 -- a synthetic load generator for Linux systems

This is lookbusy, a tool for making systems busy.  It uses relatively simple
techniques to generate CPU activity, memory and disk utilization and traffic.

lookbusy is not a benchmarking tool, or a realistic load simulator.  While it
attempts to produce load factors which are exhibited by real applications, the
exact operations used are not modelled on real applications, and at the low
level, the exact hardware operations are not identical.

* Process Structure

One lookbusy process is forked for each load-generation task -- that is, one
process per CPU, one for memory usage, and one for each file on disk being
used, plus a toplevel parent process.  Errors in or termination of any process
will trigger a shutdown in all others.  It's safe to use ^C from a terminal,
or to kill processes remotely.

* CPU Usage Modes

Two CPU usage modes are provided.  The first, 'fixed', attempts to keep total
CPU utilization at a particular level, using up any balance in idle time
between the other processes on the host and the preferred level (if other
processes are themselves able to exceed the chosen level, obviously, lookbusy
can't fix that situation but will drop its own usage to near zero and wait for
load to drop.)

The second mode, 'curve', produces utilization levels which vary over a chosen
range, over a given interval.  The simplest (and the default) usage is to
modulate usage smoothly over the course of a 24-hour period, peaking at local
midnight and bottoming out at local noon.  Options are provided to adjust all
these settings -- see lookbusy(1).

* CPU Concurrency

lookbusy has basic awareness of multiprocessor and multi-logical-CPU systems;
it will attempt to keep cumulative system usage at the chosen level by forking
multiple instances of itself, one per CPU.  CPUs with a nonzero physical-id,
such as are found on hyperthreaded i386 CPUs, are ignored when counting.  The
CPU utilization algorithm uses a tight arithmetic loop, which should be
entirely register-based on most CPUs, incurring no memory traffic.

* Portability

As of 1.0, lookbusy claims support only for Linux systems.  Most of its
implementation is entirely portable to other UNIX systems; memory and disk
usage should work as-is.  CPU utilization will almost certainly need porting
work, as concerns use of the /proc filesystem and handling of SMP.



$Id$

lookbusy's People

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.