analogue / iotop Goto Github PK
View Code? Open in Web Editor NEWFork of git://repo.or.cz/iotop.git
License: GNU General Public License v2.0
Fork of git://repo.or.cz/iotop.git
License: GNU General Public License v2.0
Hi
Is it possible to make iotop to output time in unix time format?
Thanks.
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);
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
My os is : Manjaro Linux
Python Version: 3.7
The package that installed: https://www.archlinux.org/packages/community/any/iotop/
Console Print screen:
https://postimg.cc/6ThHBMNT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.