Git Product home page Git Product logo

Comments (6)

dagwieers avatar dagwieers commented on May 29, 2024

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.

log69 avatar log69 commented on May 29, 2024

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.

EGYP7IAN avatar EGYP7IAN commented on May 29, 2024

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.

dagwieers avatar dagwieers commented on May 29, 2024

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.

scottchiefbaker avatar scottchiefbaker commented on May 29, 2024

@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.

dagwieers avatar dagwieers commented on May 29, 2024

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)

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.