Coder Social home page Coder Social logo

iotop's People

Contributors

analogue avatar dhiltonp avatar guichaz avatar jlec avatar pabs3 avatar toodeeptodip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iotop's Issues

iotop doesn't show small writes

I noticed iotop is not showing me small disk writes. It completely omits them in its report.

Here is a little bash script to illustrate:

#!/bin/bash

sudo echo ''    # ask for the sudo rights before we go to background
sudo iotop -aktbo -qqq -d 5 | grep dd &
for num in {1..5}; do
    echo "Small write #$num"
    dd if=/dev/zero of=tmp.zeros.deleteme bs=65536 count=9 &>/dev/null
    sleep 1
done
echo "Big write #1"
dd if=/dev/zero of=tmp.zeros.deleteme bs=65536 count=9999 &>/dev/null
rm -f tmp.zeros.deleteme

I would expect sudo iotop -aktbo -qqq -d 5 | grep dd will show me both, the five small disk dumps in the loop, as well as the larger one with count=9999 towards the end.

However, it does't show the small five at all. Here is the output of above's script (I called it ddtest.sh) and some information on my system:

[confus@confusion:~] $ ./ddtest.sh 
[sudo] password for confus: 

Small write #1
Small write #2
Small write #3
Small write #4
Small write #5
Big write #1
15:03:20 17589 be/4 confus       28.00 K 210728.00 K  0.00 % 79.61 % dd if=/dev/zero of=tmp.zeros.deleteme bs=65536 count=9999
15:03:25 17589 be/4 confus       28.00 K 210728.00 K  0.00 % 39.75 % dd if=/dev/zero of=tmp.zeros.deleteme bs=65536 count=9999
[confus@confusion:~] $ uname -r
4.9.68-1-MANJARO
[confus@confusion:~] $ iotop --version
iotop 0.6

Unix time

Hi
Is it possible to make iotop to output time in unix time format?
Thanks.

Scroll display one line up on exit

iotop does not create an empty line underneath the displayed values on exit. This causes a minor nuisance: the prompt is printed across the lowest line displayed by iotop.

It would be nice to have a newline printed on exit.
One way to resolve this in ui.py could be:

class IOTopUI(object):
    ...
    def handle_key(self, key):
    ...
        key_bindings = {
            ord('q'):
                lambda: softexit(),
            ord('Q'):
                lambda: softexit(),
            ord('r'):
...

def softexit():
    print("")
    sys.exit(0);

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.