Comments (6)
Could you please try to reproduce using the master branch ? A lot of fixes went into Dstat since our 0.7.2 release.
Also, negative values are normal, that's most likely cause by counter rollovers. See the documentation related to it.
from dstat.
Sorry, but won't be able to do that because of lacking the time right now. I might get back to this issue a couple of weeks later.
Anyway, thanks for your quick respond on this. And thank you for this great tool.
You think it would give proper results if I always took the absolute values of the numbers?
from dstat.
I have also experienced this bug. While using dstat and the similar tool ifstat, I have witnessed some strange behaviour. At corresponding times, ifstat will suddenly log 0 B/s
, while dstat logs a massively negative number, in my case -4282662640 B/s
, while the surrounding measurements produce a median value of 12304656.0 B/s
. Curiously, I found that if 2^32
is added to this negative result, we get the number 12304652.0
, which would be an acceptable value.
As this behaviour coorelates with the zero returns in iperf (another oddity that should never happen in this context), I suspect that the source of data for these methods may be to blame. In either case, I hope that this helps you to fix this issue. While I accidentally overwrote the logs and plots that showed this error, I will be sure to append them if I see it happen again.
from dstat.
These are counter-rollovers. Please read the documentation related to counter-rollovers.
This is less likely to occur on 64bit systems, but common on high-speed interfaces on 32bit systems.
from dstat.
@dagwieers do we not compensate for counter rollovers? I've done it before, it's not that hard:
https://github.com/scottchiefbaker/perl-snmp-monitor/blob/master/snmp_int_watch.pl#L373
from dstat.
We don't. Theoretically with bonded 10Gbit interfaces you can have rollovers every few seconds. So if you have a larger window you can have multiple rollovers in a single time-frame. So if you start compensating, you hide this information with no guarantee or certainty, while if you leave that information in place it is up to the end-user to see how to process this information (either compensate or deem compensation impossible).
I would agree if you can do it correctly in 100% of the cases, but since we cannot be sure, I'd rather not. Besides thanks to 64bit counters this problem is dealt with properly on newer systems.
And that's why we have it documented.
from dstat.
Related Issues (20)
- Incorrect unit in top-mem csv
- Horizontal layout, maybe with bar plots
- Plugin path computed incorrectly when dstat is symlinked
- CSV output to stdout
- output statics in mgb or mgB ?
- [wishlist] ability to change the "blue" color in the header (blue is too dark, can't read) HOT 2
- Add way to supress missed tick output
- Feature request : Total Bytes cumulated on delay X HOT 3
- Infiniband Problem
- Incorrect numbers with raid configuration
- Comma added to end of csv output file when 'Terminal width too small, trimming output' warning seen. HOT 1
- Feature request : extended memory statistics : Huge Pages and Commited pages
- I would like to participate in dstat development and responding to issues. HOT 25
- what's the unit of io?
- MariaDB modules HOT 3
- Fix for freespace plugin errors never merged
- Release a version of dstat with Python 3 support
- Master branch throws an error when you try and use a delay
- linux 2.6, dstat --mem not working HOT 1
- So long and thanks for all the fish.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dstat.